af-mobile-client-vue3 1.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/.editorconfig +38 -0
  2. package/.env +7 -0
  3. package/.env.development +4 -0
  4. package/.env.envoiceShow +7 -0
  5. package/.env.production +7 -0
  6. package/.husky/commit-msg +1 -0
  7. package/.husky/pre-commit +1 -0
  8. package/.vscode/extensions.json +7 -0
  9. package/.vscode/settings.json +61 -0
  10. package/LICENSE +21 -0
  11. package/README.md +181 -0
  12. package/af-example-mobile-vue-web.iml +9 -0
  13. package/build/vite/index.ts +91 -0
  14. package/build/vite/vconsole.ts +44 -0
  15. package/eslint.config.js +7 -0
  16. package/index.html +17 -0
  17. package/mock/data.ts +20 -0
  18. package/mock/index.ts +5 -0
  19. package/mock/modules/prose.mock.ts +16 -0
  20. package/mock/modules/user.mock.ts +152 -0
  21. package/netlify.toml +12 -0
  22. package/package.json +107 -0
  23. package/public/favicon-dark.svg +4 -0
  24. package/public/favicon.ico +0 -0
  25. package/public/favicon.svg +4 -0
  26. package/public/pwa-192x192.png +0 -0
  27. package/public/pwa-512x512.png +0 -0
  28. package/public/safari-pinned-tab.svg +32 -0
  29. package/scripts/verifyCommit.js +19 -0
  30. package/src/App.vue +43 -0
  31. package/src/api/mock/index.ts +30 -0
  32. package/src/api/user/index.ts +40 -0
  33. package/src/assets/common/default-user-profile.png +0 -0
  34. package/src/assets/img/apps/apply-web.png +0 -0
  35. package/src/assets/img/apps/example-web.png +0 -0
  36. package/src/assets/img/apps/iot-web.png +0 -0
  37. package/src/assets/img/apps/linepatrol-web.png +0 -0
  38. package/src/assets/img/apps/monitor-web.png +0 -0
  39. package/src/assets/img/apps/oa-web.png +0 -0
  40. package/src/assets/img/apps/revenue-web.png +0 -0
  41. package/src/assets/img/apps/safe-check-web.png +0 -0
  42. package/src/assets/img/component/logo.png +0 -0
  43. package/src/assets/img/home/banner1.png +0 -0
  44. package/src/assets/img/home/banner2.png +0 -0
  45. package/src/assets/img/home/banner3.png +0 -0
  46. package/src/assets/img/home/banner4.png +0 -0
  47. package/src/assets/img/home/notice/icon.png +0 -0
  48. package/src/assets/img/user/login/background-shadow-1.svg +20 -0
  49. package/src/assets/img/user/login/logo-background.svg +20 -0
  50. package/src/assets/img/user/login/logo.png +0 -0
  51. package/src/assets/img/user/my/exit-login.png +0 -0
  52. package/src/assets/img/user/my/setting-arrow.png +0 -0
  53. package/src/assets/img/user/my/setting.png +0 -0
  54. package/src/bootstrap.ts +32 -0
  55. package/src/components/core/App/MicroAppView.vue +59 -0
  56. package/src/components/core/BeautifulLoading/index.vue +47 -0
  57. package/src/components/core/NavBar/index.vue +12 -0
  58. package/src/components/core/SvgIcon/index.vue +61 -0
  59. package/src/components/core/Tabbar/index.vue +38 -0
  60. package/src/components/core/Uploader/index.vue +104 -0
  61. package/src/components/core/XMultiSelect/index.vue +196 -0
  62. package/src/components/core/XSelect/index.vue +130 -0
  63. package/src/components/data/XBadge/index.vue +85 -0
  64. package/src/components/data/XCellDetail/index.vue +106 -0
  65. package/src/components/data/XCellList/index.vue +358 -0
  66. package/src/components/data/XCellListFilter/index.vue +392 -0
  67. package/src/components/data/XForm/index.vue +127 -0
  68. package/src/components/data/XFormItem/index.vue +472 -0
  69. package/src/components/data/XReportForm/XReportFormJsonRender.vue +220 -0
  70. package/src/components/data/XReportForm/index.vue +1058 -0
  71. package/src/components/layout/NormalDataLayout/index.vue +70 -0
  72. package/src/components/layout/TabBarLayout/index.vue +40 -0
  73. package/src/components.d.ts +53 -0
  74. package/src/enums/requestEnum.ts +25 -0
  75. package/src/env.d.ts +16 -0
  76. package/src/font-style/PingFangSC-Regular.woff2 +0 -0
  77. package/src/font-style/font.css +4 -0
  78. package/src/hooks/useCommon.ts +9 -0
  79. package/src/hooks/useLogin.ts +97 -0
  80. package/src/icons/svg/bird.svg +1 -0
  81. package/src/icons/svg/check-in.svg +33 -0
  82. package/src/icons/svg/dark.svg +5 -0
  83. package/src/icons/svg/github.svg +5 -0
  84. package/src/icons/svg/light.svg +5 -0
  85. package/src/icons/svg/link.svg +5 -0
  86. package/src/icons/svg/loadError.svg +1 -0
  87. package/src/icons/svg/notFound.svg +1 -0
  88. package/src/icons/svgo.yml +22 -0
  89. package/src/layout/PageLayout.vue +51 -0
  90. package/src/layout/SingleLayout.vue +35 -0
  91. package/src/locales/en-US.json +25 -0
  92. package/src/locales/zh-CN.json +25 -0
  93. package/src/main.ts +48 -0
  94. package/src/plugins/AppData.ts +38 -0
  95. package/src/plugins/GetLoginInfoService.ts +10 -0
  96. package/src/plugins/index.ts +11 -0
  97. package/src/router/README.md +8 -0
  98. package/src/router/guards.ts +60 -0
  99. package/src/router/index.ts +60 -0
  100. package/src/router/invoiceRoutes.ts +33 -0
  101. package/src/router/routes.ts +84 -0
  102. package/src/services/api/Login.ts +6 -0
  103. package/src/services/api/common.ts +98 -0
  104. package/src/services/api/index.ts +7 -0
  105. package/src/services/api/manage.ts +8 -0
  106. package/src/services/restTools.ts +37 -0
  107. package/src/settings.ts +1 -0
  108. package/src/stores/index.ts +7 -0
  109. package/src/stores/modules/cachedView.ts +31 -0
  110. package/src/stores/modules/counter.ts +19 -0
  111. package/src/stores/modules/routeTransitionName.ts +26 -0
  112. package/src/stores/modules/setting.ts +28 -0
  113. package/src/stores/modules/user.ts +180 -0
  114. package/src/stores/mutation-type.ts +7 -0
  115. package/src/styles/app.less +67 -0
  116. package/src/styles/login.less +81 -0
  117. package/src/typing.ts +3 -0
  118. package/src/utils/Storage.ts +124 -0
  119. package/src/utils/authority-utils.ts +87 -0
  120. package/src/utils/common.ts +41 -0
  121. package/src/utils/crypto.ts +39 -0
  122. package/src/utils/dataUtil.ts +42 -0
  123. package/src/utils/dictUtil.ts +51 -0
  124. package/src/utils/http/index.ts +158 -0
  125. package/src/utils/i18n.ts +41 -0
  126. package/src/utils/indexedDB.ts +180 -0
  127. package/src/utils/local-storage.ts +9 -0
  128. package/src/utils/mobileUtil.ts +26 -0
  129. package/src/utils/progress.ts +19 -0
  130. package/src/utils/routerUtil.ts +271 -0
  131. package/src/utils/set-page-title.ts +7 -0
  132. package/src/utils/validate.ts +6 -0
  133. package/src/views/chat/index.vue +153 -0
  134. package/src/views/common/LoadError.vue +64 -0
  135. package/src/views/common/NotFound.vue +68 -0
  136. package/src/views/component/EvaluateRecordView/index.vue +40 -0
  137. package/src/views/component/XCellDetailView/index.vue +216 -0
  138. package/src/views/component/XCellListView/index.vue +36 -0
  139. package/src/views/component/XFormView/index.vue +478 -0
  140. package/src/views/component/XReportFormIframeView/index.vue +45 -0
  141. package/src/views/component/XReportFormView/index.vue +295 -0
  142. package/src/views/component/index.vue +111 -0
  143. package/src/views/component/menu.vue +117 -0
  144. package/src/views/component/notice.vue +46 -0
  145. package/src/views/component/topNav.vue +36 -0
  146. package/src/views/invoiceShow/index.vue +62 -0
  147. package/src/views/user/login/ForgetPasswordForm.vue +93 -0
  148. package/src/views/user/login/LoginForm.vue +145 -0
  149. package/src/views/user/login/LoginTitle.vue +68 -0
  150. package/src/views/user/login/LoginWave.vue +109 -0
  151. package/src/views/user/login/index.vue +22 -0
  152. package/src/views/user/my/index.vue +230 -0
  153. package/src/vue-router.d.ts +9 -0
  154. package/tsconfig.json +43 -0
  155. package/uno.config.ts +32 -0
  156. package/vite.config.ts +110 -0
@@ -0,0 +1,271 @@
1
+ import type { RouteRecordRaw } from 'vue-router'
2
+ import useUserStore from '@af-mobile-client-vue3/stores/modules/user.js'
3
+ import routes from '@af-mobile-client-vue3/router/routes'
4
+ import router from '@af-mobile-client-vue3/router'
5
+
6
+ /**
7
+ * 根据 路由配置 和 路由组件注册 解析路由
8
+ * @param routesConfig 路由配置
9
+ * @param routerMap 本地路由组件注册配置
10
+ */
11
+ function parseRoutes(routesConfig, routerMap) {
12
+ const routes = []
13
+ routesConfig.forEach((item) => {
14
+ // 获取注册在 routerMap 中的 router,初始化 routeCfg
15
+ let router: any
16
+ let routeCfg: any
17
+ if (typeof item === 'string') {
18
+ router = routerMap[item]
19
+ routeCfg = { path: (router && router.path) || item, router: item }
20
+ }
21
+ else if (typeof item === 'object') {
22
+ // 当没有设置路由对象名或者设置的是blank路由对象时, 给空界面, path为名称
23
+ if (!item.router || item.router === 'blank') {
24
+ router = routerMap.blank
25
+ item.path = encodeURI(item.name)
26
+ }
27
+ else {
28
+ router = routerMap[item.router]
29
+ }
30
+ // 查看是否是单页面
31
+ if (item.meta && item.meta.singlePage) {
32
+ router = routerMap.singlePage
33
+ item.path = encodeURI(item.name)
34
+ }
35
+ // 当没在动态路由对象中找到时, 不添加到路由
36
+ // if (!router) return
37
+ routeCfg = item
38
+ }
39
+ if (!router) {
40
+ console.warn(`can't find register for router ${routeCfg.router}, please register it in advance.`)
41
+ router = typeof item === 'string' ? { path: item, name: item } : item
42
+ }
43
+ // 从 router 和 routeCfg 解析路由
44
+ const meta = {
45
+ authority: router.authority,
46
+ icon: router.icon,
47
+ page: router.page,
48
+ link: router.link,
49
+ params: router.params,
50
+ query: router.query,
51
+ ...router.meta,
52
+ }
53
+ const cfgMeta = {
54
+ authority: routeCfg.authority,
55
+ icon: routeCfg.icon,
56
+ page: routeCfg.page,
57
+ link: routeCfg.link,
58
+ params: routeCfg.params,
59
+ query: routeCfg.query,
60
+ ...routeCfg.meta,
61
+ }
62
+ Object.keys(cfgMeta).forEach((key) => {
63
+ if (cfgMeta[key] === undefined || cfgMeta[key] === null || cfgMeta[key] === '')
64
+ delete cfgMeta[key]
65
+ })
66
+ Object.assign(meta, cfgMeta)
67
+ const route = {
68
+ path: routeCfg.path || router.path || routeCfg.router,
69
+ name: routeCfg.name || router.name,
70
+ component: router.component || router,
71
+ redirect: routeCfg.redirect || router.redirect,
72
+ meta: { ...meta, authority: meta.authority || '*' },
73
+ beforeEnter: undefined,
74
+ children: undefined,
75
+ }
76
+ if (router.beforeEnter)
77
+ route.beforeEnter = router.beforeEnter
78
+
79
+ if (routeCfg.invisible || router.invisible)
80
+ route.meta.invisible = true
81
+
82
+ if (routeCfg.children && routeCfg.children.length > 0)
83
+ route.children = parseRoutes(routeCfg.children, routerMap)
84
+
85
+ // 当没有子并且自己时blank(空界面)时, 不添加到路由
86
+ if (route.component.name === 'blank' && route.children && route.children.length <= 0)
87
+ return
88
+ routes.push(route)
89
+ })
90
+ return routes
91
+ }
92
+
93
+ /**
94
+ * 加载路由
95
+ * @param routesConfig {[{router: string, children: [{router: string, children: string[]}, {router: string, children: string[]}, {router: string, authority: string, name: string, icon: string}, {path: string, router: string, name: string, icon: string, link: string}, {path: string, router: string, name: string, icon: string, link: string}]}]} 路由配置
96
+ */
97
+ function loadRoutes(routesConfig?: any) {
98
+ // 如果 routesConfig 有值,则更新到本地,否则从本地获取
99
+ if (routesConfig)
100
+ useUserStore().setRoutesConfig(routesConfig)
101
+ else
102
+ routesConfig = useUserStore().getRoutesConfig()
103
+
104
+ if (routesConfig && routesConfig.length > 0) {
105
+ const newRoutes = parseRoutes(routesConfig, routes)
106
+ // 设置路由首页
107
+ newRoutes[0].redirect = '/'
108
+ const finalRoutes = mergeRoutes(routes, newRoutes)
109
+ formatRoutes(finalRoutes)
110
+ finalRoutes.forEach((row) => {
111
+ router.addRoute(row)
112
+ })
113
+ }
114
+ }
115
+
116
+ /**
117
+ * 合并路由
118
+ * @param target
119
+ * @param source
120
+ */
121
+ function mergeRoutes(target: Array<RouteRecordRaw>, source: Array<RouteRecordRaw>) {
122
+ const routesMap: RouteRecordRaw = {} as RouteRecordRaw
123
+
124
+ target.forEach(item => routesMap[item.path] = item)
125
+
126
+ source.forEach(item => routesMap[item.path] = item)
127
+ return Object.values(routesMap)
128
+ }
129
+
130
+ /**
131
+ * 格式化路由
132
+ * @param routes 路由配置
133
+ */
134
+ function formatRoutes(routes) {
135
+ routes.forEach((route) => {
136
+ const { path } = route
137
+ if (!path.startsWith('/') && path !== '*')
138
+ route.path = `/${path}`
139
+ })
140
+ formatAuthority(routes)
141
+ }
142
+
143
+ /**
144
+ * 格式化路由的权限配置
145
+ * @param routes 路由
146
+ * @param pAuthorities 父级路由权限配置集合
147
+ */
148
+ function formatAuthority(routes, pAuthorities = []) {
149
+ routes.forEach((route) => {
150
+ const meta = route.meta
151
+ const defaultAuthority = pAuthorities[pAuthorities.length - 1] || { permission: '*' }
152
+ if (meta) {
153
+ let authority: any = {}
154
+ if (!meta.authority) {
155
+ authority = defaultAuthority
156
+ }
157
+ else if (typeof meta.authority === 'string' || Array.isArray(meta.authority)) {
158
+ authority.permission = meta.authority
159
+ }
160
+ else if (typeof meta.authority === 'object') {
161
+ authority = meta.authority
162
+ const { role } = authority
163
+ if (typeof role === 'string')
164
+ authority.role = [role]
165
+
166
+ if (!authority.permission && !authority.role)
167
+ authority = defaultAuthority
168
+ }
169
+ meta.authority = authority
170
+ }
171
+ else {
172
+ const authority = defaultAuthority
173
+ route.meta = { authority }
174
+ }
175
+ route.meta.pAuthorities = pAuthorities
176
+ if (route.children)
177
+ formatAuthority(route.children, [...pAuthorities, route.meta.authority])
178
+ })
179
+ }
180
+
181
+ /**
182
+ * 加载导航守卫
183
+ * @param guards
184
+ */
185
+ function loadGuards(guards, _router) {
186
+ const { beforeEach, afterEach } = guards
187
+ beforeEach.forEach((guard) => {
188
+ if (guard && typeof guard === 'function')
189
+ _router.beforeEach((to, from, next) => guard(to, from, next))
190
+ })
191
+ afterEach.forEach((guard) => {
192
+ if (guard && typeof guard === 'function')
193
+ _router.afterEach((to, from) => guard(to, from))
194
+ })
195
+ }
196
+
197
+ /**
198
+ * 资源服务路由转新路由
199
+ * @param func
200
+ */
201
+ function funcToRouter(func) {
202
+ return [{
203
+ router: 'root',
204
+ children: positionRouter(parsefunc(func)),
205
+ }]
206
+ }
207
+
208
+ function parsefunc(func) {
209
+ const tree = []
210
+ for (const row of func) {
211
+ const route = {
212
+ router: row.link,
213
+ meta: {
214
+ singlePage: row.navigate,
215
+ },
216
+ position: row.position - 1,
217
+ icon: row.icon,
218
+ name: row.name,
219
+ params: undefined,
220
+ children: undefined,
221
+ }
222
+ if (row.link.includes('$')) {
223
+ route.router = row.link.split('$')[1]
224
+ route.params = row.link.split('$')[0]
225
+ }
226
+ if (row.children && row.children.length > 0)
227
+ route.children = parsefunc(row.children)
228
+
229
+ tree.push(route)
230
+ }
231
+ // 如果是 microapp 作为子应用路由应该是平铺的 树状结构由父项目处理
232
+ if (window.__MICRO_APP_ENVIRONMENT__)
233
+ return flattenTree(tree)
234
+
235
+ return tree
236
+ }
237
+
238
+ function flattenTree(tree) {
239
+ let flat = []
240
+ for (const node of tree) {
241
+ const { children, ...rest } = node
242
+ flat.push(rest)
243
+ if (children && children.length > 0)
244
+ flat = flat.concat(flattenTree(children))
245
+ }
246
+ return flat
247
+ }
248
+
249
+ /**
250
+ * 资源服务路由排序
251
+ */
252
+ function positionRouter(r) {
253
+ let router = r.sort((a, b) => a.position - b.position)
254
+ router = arrRemoveEmpty(router)
255
+ return router
256
+ }
257
+
258
+ /**
259
+ * 数组去空值
260
+ */
261
+ function arrRemoveEmpty(arr) {
262
+ for (let i = 0; i < arr.length; i++) {
263
+ if (arr[i] === '' || typeof (arr[i]) == 'undefined') {
264
+ arr.splice(i, 1)
265
+ i--
266
+ }
267
+ }
268
+ return arr
269
+ }
270
+
271
+ export { parseRoutes, loadRoutes, formatAuthority, loadGuards, formatRoutes, funcToRouter }
@@ -0,0 +1,7 @@
1
+ import { pageDefaultTitle } from '@af-mobile-client-vue3/settings'
2
+
3
+ export default function setPageTitle(routerTitle?: any): void {
4
+ window.document.title = routerTitle
5
+ ? `${routerTitle} | ${pageDefaultTitle}`
6
+ : `${pageDefaultTitle}`
7
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @param {string} path
3
+ */
4
+ export function isExternal(path: string) {
5
+ return /^(https?:|mailto:|tel:)/.test(path)
6
+ }
@@ -0,0 +1,153 @@
1
+ <script setup lang="ts">
2
+ import { ref } from 'vue'
3
+ import {
4
+ Button as VanButton,
5
+ Col as VanCol,
6
+ Divider as VanDivider,
7
+ List as VanList,
8
+ Row as VanRow,
9
+ SwipeCell as VanSwipeCell,
10
+ Tab as VanTab,
11
+ Tabs as VanTabs,
12
+ } from 'vant/es'
13
+
14
+ const active = ref(0)
15
+ const list = ref([])
16
+ const loading = ref(false)
17
+ const finished = ref(false)
18
+
19
+ function onLoad() {
20
+ // 异步更新数据
21
+ // setTimeout 仅做示例,真实场景中一般为 ajax 请求
22
+ setTimeout(() => {
23
+ for (let i = 0; i < 10; i++)
24
+ list.value.push(list.value.length + 1)
25
+
26
+ // 加载状态结束
27
+ loading.value = false
28
+
29
+ // 数据全部加载完成
30
+ if (list.value.length >= 20)
31
+ finished.value = true
32
+ }, 500)
33
+ }
34
+ </script>
35
+
36
+ <template>
37
+ <main class="chat_main h-full w-full">
38
+ <div class="header">
39
+ <VanRow class="header_row" justify="space-between">
40
+ <VanCol class="header_title_col">
41
+ <p>消息</p>
42
+ </VanCol>
43
+ <VanCol>
44
+ <van-icon class="header_search_icon" name="search" />
45
+ </VanCol>
46
+ </VanRow>
47
+ </div>
48
+ <div class="content">
49
+ <VanTabs v-model:active="active">
50
+ <VanDivider />
51
+ <VanTab title="消息">
52
+ <VanList
53
+ v-model:loading="loading"
54
+ :finished="finished"
55
+ finished-text="没有更多了"
56
+ @load="onLoad"
57
+ >
58
+ <VanSwipeCell v-for="item in list" :key="item" :title="item">
59
+ <div class="message_card">
60
+ <VanRow :gutter="12" class="message_row">
61
+ <VanCol>
62
+ <img alt="header_img" class="header_img" src="https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg">
63
+ </VanCol>
64
+ <VanCol class="message_card_col">
65
+ <div class="message_card_main">
66
+ <VanRow justify="space-between">
67
+ <VanCol>
68
+ <p class="message_sender_name">
69
+ 测试人
70
+ </p>
71
+ </VanCol>
72
+ <VanCol>
73
+ <span class="message_sender_time">18分钟前</span>
74
+ </VanCol>
75
+ </VanRow>
76
+ <p class="message_content">
77
+ <span>轻舟已过万重山</span>
78
+ </p>
79
+ </div>
80
+ <VanDivider class="content_divider" />
81
+ </VanCol>
82
+ </VanRow>
83
+ </div>
84
+ <template #right>
85
+ <VanButton square text="删除" type="danger" class="delete-button" />
86
+ </template>
87
+ </VanSwipeCell>
88
+ </VanList>
89
+ </VanTab>
90
+ <VanTab title="同事">
91
+ 内容 1
92
+ </VanTab>
93
+ <VanTab title="部门">
94
+ 内容 1
95
+ </VanTab>
96
+ </VanTabs>
97
+ </div>
98
+ </main>
99
+ </template>
100
+
101
+ <style scoped lang="less">
102
+ .chat_main {
103
+ padding: var(--base-interval-1);
104
+ .header {
105
+ p {
106
+ margin: 0;
107
+ font-size: 24px;
108
+ font-weight: bold;
109
+ }
110
+ .header_row {
111
+ align-items: center;
112
+ .header_title_col {
113
+ flex-grow: 1;
114
+ }
115
+ .header_search_icon {
116
+ font-size: 26px;
117
+ }
118
+ }
119
+ }
120
+ .content {
121
+ .message_card {
122
+ .message_row {
123
+ .header_img {
124
+ width: 40px;
125
+ height: 40px;
126
+ border-radius: 5px;
127
+ vertical-align: middle;
128
+ }
129
+ .message_card_col {
130
+ flex-grow: 1;
131
+ .message_sender_name {
132
+ margin: 0 0 3px;
133
+ font-size: 16px;
134
+ font-weight: bold;
135
+ }
136
+ .message_sender_time {
137
+ font-size: 12px;
138
+ color: #999;
139
+ }
140
+ .message_content {
141
+ margin: 0;
142
+ font-size: 12px;
143
+ color: #666;
144
+ }
145
+ }
146
+ }
147
+ .content_divider {
148
+ margin: 12px 0;
149
+ }
150
+ }
151
+ }
152
+ }
153
+ </style>
@@ -0,0 +1,64 @@
1
+ <script setup>
2
+ import SvgIcon from '@af-mobile-client-vue3/components/core/SvgIcon/index.vue'
3
+ </script>
4
+
5
+ <template>
6
+ <div class="load_error_main">
7
+ <div class="container">
8
+ <SvgIcon name="loadError" class="loadError" />
9
+ </div>
10
+ <div class="text">
11
+ 似乎出了点问题,下拉再试试
12
+ </div>
13
+ </div>
14
+ </template>
15
+
16
+ <style lang="less" scoped>
17
+ @keyframes fadeInUp {
18
+ from {
19
+ opacity: 0;
20
+ transform: translateY(30px);
21
+ }
22
+ to {
23
+ opacity: 1;
24
+ transform: translateY(0);
25
+ }
26
+ }
27
+
28
+ @keyframes fadeIn {
29
+ from {
30
+ opacity: 0;
31
+ }
32
+ to {
33
+ opacity: 1;
34
+ }
35
+ }
36
+
37
+ .load_error_main {
38
+ display: flex;
39
+ flex-direction: column;
40
+ align-items: center;
41
+ background-color: var(--van-background-2);
42
+ border-radius: var(--van-radius-lg);
43
+ padding-top: 20vh;
44
+ padding-bottom: 30vh;
45
+ }
46
+
47
+ .container {
48
+ width: 100px;
49
+ height: 100px;
50
+ animation: fadeIn 0.8s ease-in-out;
51
+ .loadError {
52
+ width: 100px;
53
+ height: 100px;
54
+ vertical-align: middle;
55
+ }
56
+ }
57
+
58
+ .text {
59
+ margin-top: 25px;
60
+ font-size: 14px;
61
+ color: #333;
62
+ animation: fadeIn 1.2s ease-in-out;
63
+ }
64
+ </style>
@@ -0,0 +1,68 @@
1
+ <script setup>
2
+ import { Button as VanButton } from 'vant'
3
+ import SvgIcon from '@af-mobile-client-vue3/components/core/SvgIcon/index.vue'
4
+ </script>
5
+
6
+ <template>
7
+ <div class="not_found_main">
8
+ <div class="container">
9
+ <SvgIcon name="notFound" class="notFound" />
10
+ </div>
11
+ <div class="text">
12
+ 本来无一物,何处惹尘埃
13
+ </div>
14
+ <div class="button_group">
15
+ <VanButton type="primary" size="small" @click="$router.replace('/home')">
16
+ 返回首页
17
+ </VanButton>
18
+ </div>
19
+ </div>
20
+ </template>
21
+
22
+ <style lang="less" scoped>
23
+ @keyframes fadeInUp {
24
+ from {
25
+ opacity: 0;
26
+ transform: translateY(30px);
27
+ }
28
+ to {
29
+ opacity: 1;
30
+ transform: translateY(0);
31
+ }
32
+ }
33
+
34
+ @keyframes fadeIn {
35
+ from {
36
+ opacity: 0;
37
+ }
38
+ to {
39
+ opacity: 1;
40
+ }
41
+ }
42
+
43
+ .not_found_main {
44
+ display: flex;
45
+ flex-direction: column;
46
+ align-items: center;
47
+ height: 100vh;
48
+ padding-top: 30vh;
49
+ }
50
+
51
+ .container {
52
+ width: 128px;
53
+ height: 128px;
54
+ animation: fadeInUp 0.8s ease-in-out;
55
+ .notFound {
56
+ width: 128px;
57
+ height: 128px;
58
+ vertical-align: middle;
59
+ }
60
+ }
61
+
62
+ .text {
63
+ margin-bottom: 20px;
64
+ font-size: 14px;
65
+ color: #333;
66
+ animation: fadeIn 1.2s ease-in-out;
67
+ }
68
+ </style>
@@ -0,0 +1,40 @@
1
+ <script setup lang="ts">
2
+ import { ref } from 'vue'
3
+ import {
4
+ Icon as VanIcon,
5
+ } from 'vant'
6
+
7
+ import XCellList from '@af-mobile-client-vue3/components/data/XCellList/index.vue'
8
+ import NormalDataLayout from '@af-mobile-client-vue3/components/layout/NormalDataLayout/index.vue'
9
+
10
+ const configName = ref('get_evaluate_by_id')
11
+ </script>
12
+
13
+ <template>
14
+ <NormalDataLayout title="评价纪录">
15
+ <template #layout_header_row_right_col>
16
+ <VanIcon class="header_row_icon" name="filter-o" />
17
+ </template>
18
+ <template #layout_content>
19
+ <XCellList :config-name="configName" id-key="t_id" service-name="af-revenue" />
20
+ </template>
21
+ </NormalDataLayout>
22
+ </template>
23
+
24
+ <style scoped lang="less">
25
+ .header_row_icon {
26
+ font-size: 18px;
27
+ }
28
+ //.van-tabs {
29
+ // display: flex;
30
+ // flex-flow: column;
31
+ // height: 100%;
32
+ //}
33
+ //:deep(.van-tabs__content) {
34
+ // flex: 1;
35
+ //}
36
+ //:deep(.van-tab__panel) {
37
+ // height: 100%;
38
+ // max-height: 100vh;
39
+ //}
40
+ </style>