@gx-design-vue/create-gx-cli 0.1.19 → 0.1.21

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 (181) hide show
  1. package/README.md +1 -4
  2. package/dist/index.js +36 -48
  3. package/package.json +5 -3
  4. package/template-mobile-vant-cli/.editorconfig +19 -0
  5. package/template-mobile-vant-cli/.env +3 -0
  6. package/template-mobile-vant-cli/.env.development +17 -0
  7. package/template-mobile-vant-cli/.env.pro +28 -0
  8. package/template-mobile-vant-cli/.env.production +31 -0
  9. package/template-mobile-vant-cli/.eslintignore +15 -0
  10. package/template-mobile-vant-cli/.prettierignore +9 -0
  11. package/template-mobile-vant-cli/README.md +1 -0
  12. package/template-mobile-vant-cli/commitlint.config.cjs +32 -0
  13. package/template-mobile-vant-cli/config/default/defaultSettings.ts +70 -0
  14. package/template-mobile-vant-cli/config/default/network.ts +10 -0
  15. package/template-mobile-vant-cli/config/default/proxy.ts +50 -0
  16. package/template-mobile-vant-cli/config/default/theme.ts +3 -0
  17. package/template-mobile-vant-cli/config/index.ts +11 -0
  18. package/template-mobile-vant-cli/eslint.config.js +58 -0
  19. package/template-mobile-vant-cli/index.html +25 -0
  20. package/template-mobile-vant-cli/internal/vite-config/generate/generateModifyVars.ts +7 -0
  21. package/template-mobile-vant-cli/internal/vite-config/rollupOptions/index.ts +22 -0
  22. package/template-mobile-vant-cli/internal/vite-config/util/hash.ts +17 -0
  23. package/template-mobile-vant-cli/internal/vite-config/util/index.ts +132 -0
  24. package/template-mobile-vant-cli/internal/vite-config/vite/cdn.ts +65 -0
  25. package/template-mobile-vant-cli/internal/vite-config/vite/optimizer.ts +26 -0
  26. package/template-mobile-vant-cli/internal/vite-config/vite/plugin/appConfig.ts +91 -0
  27. package/template-mobile-vant-cli/internal/vite-config/vite/plugin/autoImport.ts +28 -0
  28. package/template-mobile-vant-cli/internal/vite-config/vite/plugin/compress.ts +31 -0
  29. package/template-mobile-vant-cli/internal/vite-config/vite/plugin/html.ts +32 -0
  30. package/template-mobile-vant-cli/internal/vite-config/vite/plugin/index.ts +74 -0
  31. package/template-mobile-vant-cli/internal/vite-config/vite/plugin/visualizer.ts +14 -0
  32. package/template-mobile-vant-cli/internal/vite-config/vite/plugin/viteNotice.ts +40 -0
  33. package/template-mobile-vant-cli/mock/config/permissions.ts +15 -0
  34. package/template-mobile-vant-cli/mock/config/user/id.ts +5 -0
  35. package/template-mobile-vant-cli/mock/config/user/index.ts +96 -0
  36. package/template-mobile-vant-cli/mock/index.ts +55 -0
  37. package/template-mobile-vant-cli/mock/routers/table/index.fake.ts +22 -0
  38. package/template-mobile-vant-cli/mock/routers/user/account.fake.ts +52 -0
  39. package/template-mobile-vant-cli/mock/routers/user/index.fake.ts +46 -0
  40. package/template-mobile-vant-cli/mock/utils/crypto.ts +21 -0
  41. package/template-mobile-vant-cli/mock/utils/table.ts +96 -0
  42. package/template-mobile-vant-cli/mock/utils/util.ts +91 -0
  43. package/template-mobile-vant-cli/package.json +74 -0
  44. package/template-mobile-vant-cli/public/css/default.css +54 -0
  45. package/template-mobile-vant-cli/public/favicon.ico +0 -0
  46. package/template-mobile-vant-cli/src/App.vue +8 -0
  47. package/template-mobile-vant-cli/src/assets/logo.png +0 -0
  48. package/template-mobile-vant-cli/src/components/PageContainer/ProSkeleton.tsx +29 -0
  49. package/template-mobile-vant-cli/src/components/PageContainer/index.tsx +207 -0
  50. package/template-mobile-vant-cli/src/components/PageContainer/style.module.less +17 -0
  51. package/template-mobile-vant-cli/src/components/TabsMenu/index.vue +45 -0
  52. package/template-mobile-vant-cli/src/core/gx-design/index.ts +7 -0
  53. package/template-mobile-vant-cli/src/core/index.ts +5 -0
  54. package/template-mobile-vant-cli/src/design/color.less +1 -0
  55. package/template-mobile-vant-cli/src/design/config.less +5 -0
  56. package/template-mobile-vant-cli/src/design/index.less +3 -0
  57. package/template-mobile-vant-cli/src/design/mixin.less +65 -0
  58. package/template-mobile-vant-cli/src/design/reset.less +39 -0
  59. package/template-mobile-vant-cli/src/design/root.less +3 -0
  60. package/template-mobile-vant-cli/src/design/vant/index.less +0 -0
  61. package/template-mobile-vant-cli/src/hooks/web/index.ts +5 -0
  62. package/template-mobile-vant-cli/src/hooks/web/usePageLoading.ts +56 -0
  63. package/template-mobile-vant-cli/src/layout/BasicLayout/index.vue +18 -0
  64. package/template-mobile-vant-cli/src/layout/BasicLayout/style.less +3 -0
  65. package/template-mobile-vant-cli/src/layout/UserLayout/index.vue +18 -0
  66. package/template-mobile-vant-cli/src/layout/UserLayout/style.module.less +36 -0
  67. package/template-mobile-vant-cli/src/main.ts +34 -0
  68. package/template-mobile-vant-cli/src/pages/Account/details.vue +13 -0
  69. package/template-mobile-vant-cli/src/pages/Account/index.vue +102 -0
  70. package/template-mobile-vant-cli/src/pages/Home/index.vue +71 -0
  71. package/template-mobile-vant-cli/src/pages/user/login/index.vue +76 -0
  72. package/template-mobile-vant-cli/src/plugins/dayjs/index.ts +3 -0
  73. package/template-mobile-vant-cli/src/plugins/index.ts +2 -0
  74. package/template-mobile-vant-cli/src/router/guard/index.ts +18 -0
  75. package/template-mobile-vant-cli/src/router/guard/permissions.ts +41 -0
  76. package/template-mobile-vant-cli/src/router/guard/stateGuard.ts +10 -0
  77. package/template-mobile-vant-cli/src/router/index.ts +31 -0
  78. package/template-mobile-vant-cli/src/router/routes/index.ts +46 -0
  79. package/template-mobile-vant-cli/src/router/routes/modules/dataSource.ts +32 -0
  80. package/template-mobile-vant-cli/src/services/index.ts +31 -0
  81. package/template-mobile-vant-cli/src/services/userCenter/account.ts +42 -0
  82. package/template-mobile-vant-cli/src/services/userCenter/index.ts +28 -0
  83. package/template-mobile-vant-cli/src/store/index.ts +20 -0
  84. package/template-mobile-vant-cli/src/store/modules/global.ts +23 -0
  85. package/template-mobile-vant-cli/src/store/modules/user.ts +107 -0
  86. package/template-mobile-vant-cli/src/utils/accessToken.ts +97 -0
  87. package/template-mobile-vant-cli/src/utils/crypto/index.ts +56 -0
  88. package/template-mobile-vant-cli/src/utils/env.ts +50 -0
  89. package/template-mobile-vant-cli/src/utils/pageTitle.ts +20 -0
  90. package/template-mobile-vant-cli/src/utils/request/XHR.ts +137 -0
  91. package/template-mobile-vant-cli/src/utils/request/axiosCancel.ts +69 -0
  92. package/template-mobile-vant-cli/src/utils/request/checkStatus.ts +25 -0
  93. package/template-mobile-vant-cli/src/utils/request/index.ts +155 -0
  94. package/template-mobile-vant-cli/src/utils/request/typings.ts +171 -0
  95. package/template-mobile-vant-cli/src/utils/storage.ts +215 -0
  96. package/template-mobile-vant-cli/src/utils/util.ts +27 -0
  97. package/template-mobile-vant-cli/src/utils/validate.ts +211 -0
  98. package/template-mobile-vant-cli/tsconfig.json +50 -0
  99. package/template-mobile-vant-cli/types/auto-imports.d.ts +80 -0
  100. package/template-mobile-vant-cli/types/components.d.ts +7 -0
  101. package/template-mobile-vant-cli/types/config.d.ts +56 -0
  102. package/template-mobile-vant-cli/types/global.d.ts +80 -0
  103. package/template-mobile-vant-cli/types/mock.d.ts +34 -0
  104. package/template-mobile-vant-cli/types/module.d.ts +61 -0
  105. package/template-mobile-vant-cli/types/response.d.ts +17 -0
  106. package/template-mobile-vant-cli/types/system.d.ts +58 -0
  107. package/template-mobile-vant-cli/types/vant-import.d.ts +25 -0
  108. package/template-mobile-vant-cli/unocss.config.ts +161 -0
  109. package/template-mobile-vant-cli/vite.config.ts +142 -0
  110. package/template-mobile-vant-html/README.md +4 -0
  111. package/template-mobile-vant-html/css/global.css +293 -0
  112. package/template-mobile-vant-html/css/global.css.map +1 -0
  113. package/template-mobile-vant-html/css/global.less +293 -0
  114. package/template-mobile-vant-html/css/index.css +20 -0
  115. package/template-mobile-vant-html/css/index.css.map +1 -0
  116. package/template-mobile-vant-html/css/index.less +21 -0
  117. package/template-mobile-vant-html/image/disconnected.svg +60 -0
  118. package/template-mobile-vant-html/image/empty.svg +52 -0
  119. package/template-mobile-vant-html/image/error.svg +53 -0
  120. package/template-mobile-vant-html/image/loading.svg +1 -0
  121. package/template-mobile-vant-html/index.html +91 -0
  122. package/template-mobile-vant-html/js/index.js +29 -0
  123. package/template-mobile-vant-html/js/plugin/day.min.js +1 -0
  124. package/template-mobile-vant-html/js/plugin/fastclick.js +730 -0
  125. package/template-mobile-vant-html/js/plugin/jquery.min.js +2 -0
  126. package/template-mobile-vant-html/js/plugin/rem.js +28 -0
  127. package/template-mobile-vant-html/js/utils/appUtil.js +70 -0
  128. package/template-mobile-vant-html/js/utils/config.js +3 -0
  129. package/template-mobile-vant-html/js/utils/request.js +61 -0
  130. package/template-mobile-vant-html/js/utils/utils.js +65 -0
  131. package/template-mobile-vant-html/js/utils/validate.js +292 -0
  132. package/template-vite-project/.env +5 -0
  133. package/template-vite-project/.env.development +5 -0
  134. package/template-vite-project/.env.pro +5 -0
  135. package/template-vite-project/.env.production +5 -0
  136. package/template-vite-project/README.md +5 -0
  137. package/template-vite-project/_gitignore +24 -0
  138. package/template-vite-project/index.html +46 -0
  139. package/template-vite-project/internal/proxy/index.ts +47 -0
  140. package/template-vite-project/internal/vite/generate/generateModifyVars.ts +9 -0
  141. package/template-vite-project/internal/vite/rollupOptions/index.ts +18 -0
  142. package/template-vite-project/internal/vite/util/hash.ts +17 -0
  143. package/template-vite-project/internal/vite/util/index.ts +132 -0
  144. package/template-vite-project/internal/vite/vite/cdn.ts +65 -0
  145. package/template-vite-project/internal/vite/vite/plugin/appConfig.ts +91 -0
  146. package/template-vite-project/internal/vite/vite/plugin/autoImport.ts +28 -0
  147. package/template-vite-project/internal/vite/vite/plugin/compress.ts +31 -0
  148. package/template-vite-project/internal/vite/vite/plugin/html.ts +24 -0
  149. package/template-vite-project/internal/vite/vite/plugin/index.ts +72 -0
  150. package/template-vite-project/internal/vite/vite/plugin/visualizer.ts +14 -0
  151. package/template-vite-project/internal/vite/vite/plugin/viteNotice.ts +40 -0
  152. package/template-vite-project/node_modules/.bin/cross-env +21 -0
  153. package/template-vite-project/node_modules/.bin/cross-env-shell +21 -0
  154. package/template-vite-project/node_modules/.bin/esbuild +21 -0
  155. package/template-vite-project/node_modules/.bin/jiti +21 -0
  156. package/template-vite-project/node_modules/.bin/lessc +21 -0
  157. package/template-vite-project/node_modules/.bin/parser +21 -0
  158. package/template-vite-project/node_modules/.bin/rollup +21 -0
  159. package/template-vite-project/node_modules/.bin/terser +21 -0
  160. package/template-vite-project/node_modules/.bin/tsc +21 -0
  161. package/template-vite-project/node_modules/.bin/tsserver +21 -0
  162. package/template-vite-project/node_modules/.bin/vite +21 -0
  163. package/template-vite-project/node_modules/.bin/vue-tsc +21 -0
  164. package/template-vite-project/node_modules/.bin/yaml +21 -0
  165. package/template-vite-project/package.json +38 -0
  166. package/template-vite-project/public/css/index.css +89 -0
  167. package/template-vite-project/public/css/normalize.css +396 -0
  168. package/template-vite-project/public/vite.svg +1 -0
  169. package/template-vite-project/src/App.vue +30 -0
  170. package/template-vite-project/src/assets/vue.svg +1 -0
  171. package/template-vite-project/src/components/HelloWorld.vue +41 -0
  172. package/template-vite-project/src/design/config.less +0 -0
  173. package/template-vite-project/src/design/index.less +0 -0
  174. package/template-vite-project/src/main.ts +14 -0
  175. package/template-vite-project/src/utils/env.ts +50 -0
  176. package/template-vite-project/tsconfig.app.json +59 -0
  177. package/template-vite-project/tsconfig.json +7 -0
  178. package/template-vite-project/tsconfig.node.json +28 -0
  179. package/template-vite-project/types/global.d.ts +33 -0
  180. package/template-vite-project/unocss.config.ts +208 -0
  181. package/template-vite-project/vite.config.ts +88 -0
@@ -0,0 +1,161 @@
1
+ import presetRemToPx from '@unocss/preset-rem-to-px'
2
+ import {
3
+ defineConfig,
4
+ presetAttributify,
5
+ presetIcons,
6
+ presetMini,
7
+ presetUno,
8
+ transformerDirectives,
9
+ transformerVariantGroup
10
+ } from 'unocss'
11
+
12
+ export default defineConfig({
13
+ presets: [
14
+ presetUno,
15
+ presetAttributify,
16
+ presetIcons(),
17
+ // @ts-ignore
18
+ presetRemToPx({
19
+ baseFontSize: 4
20
+ }),
21
+ presetMini()
22
+ ],
23
+ theme: {
24
+ colors: {
25
+ primary: 'hsl(--van-primary-color)',
26
+ danger: 'hsl(--van-danger-color)',
27
+ }
28
+ },
29
+ transformers: [
30
+ transformerDirectives({
31
+ applyVariable: [ '--at-apply' ]
32
+ }),
33
+ transformerVariantGroup()
34
+ ],
35
+ shortcuts: [
36
+ {
37
+ 'flex-center': 'flex items-center justify-center'
38
+ },
39
+ ],
40
+ rules: [
41
+ [
42
+ /^text-rgba-(.*)$/,
43
+ ([ , str ]) => {
44
+ const regex = /\[([^[\]]*)\]/
45
+ const match = str.match(regex)
46
+
47
+ if (match && match.length > 1) {
48
+ const contentInsideBrackets = match[1]
49
+ return {
50
+ color: `rgba(${contentInsideBrackets.split('-').join(',')})`
51
+ }
52
+ } else {
53
+ return {}
54
+ }
55
+ }
56
+ ],
57
+ [
58
+ /^bg-rgba-(.*)$/,
59
+ ([ , str ]) => {
60
+ const regex = /\[([^[\]]*)\]/
61
+ const match = str.match(regex)
62
+
63
+ if (match && match.length > 1) {
64
+ const contentInsideBrackets = match[1]
65
+ return {
66
+ 'background-color': `rgba(${contentInsideBrackets.split('-').join(',')})`
67
+ }
68
+ } else {
69
+ return {}
70
+ }
71
+ }
72
+ ],
73
+ [
74
+ /^bd-(.*)$/,
75
+ ([, str]) => {
76
+ return {
77
+ 'border': `1px solid ${str === 'main' ? 'var(--van-primary-color)' : str === 'error' ? 'var(--van-danger-color)' : `#${str}`}`
78
+ }
79
+ }
80
+ ],
81
+ [
82
+ /^bd-l-(.*)$/,
83
+ ([, str]) => {
84
+ return {
85
+ 'border-left': `1px solid ${str === 'main' ? 'rgba(5, 5, 5, 0.06)' : `#${str}`}`
86
+ }
87
+ }
88
+ ],
89
+ [
90
+ /^bd-t-(.*)$/,
91
+ ([, str]) => {
92
+ return {
93
+ 'border-top': `1px solid ${str === 'main' ? 'rgba(5, 5, 5, 0.06)' : `#${str}`}`
94
+ }
95
+ }
96
+ ],
97
+ [
98
+ /^bd-b-(.*)$/,
99
+ ([, str]) => {
100
+ return {
101
+ 'border-bottom': `1px solid ${str === 'main' ? 'rgba(5, 5, 5, 0.06)' : `#${str}`}`
102
+ }
103
+ }
104
+ ],
105
+ [
106
+ /^text-hidden-(\d+)$/,
107
+ ([ , d ]) => ({
108
+ overflow: 'hidden',
109
+ 'text-overflow': 'ellipsis',
110
+ display: '-webkit-box',
111
+ '-webkit-line-clamp': d,
112
+ 'line-clamp': d,
113
+ '-webkit-box-orient': 'vertical',
114
+ 'word-break': 'break-word'
115
+ })
116
+ ],
117
+ [ 'hidden-none', { opacity: '0', visibility: 'hidden' } ],
118
+ [
119
+ /^flex-main-(\d+)$/,
120
+ ([ , d ]) => ({
121
+ flex: `0 0 ${d}px`
122
+ })
123
+ ],
124
+ [
125
+ /^shrink-(\d+)$/,
126
+ ([ , d ]) => ({
127
+ 'flex-shrink': d
128
+ })
129
+ ],
130
+ [ 'text-hex-main', { color: 'var(--van-primary-color)' } ],
131
+ [ 'text-hex-error', { color: 'var(--van-danger-color)' } ],
132
+ [ 'bg-hex-main', { background: 'var(--van-primary-color)' } ],
133
+ [ 'word-break-all', { 'word-break': 'break-all' } ],
134
+ [ 'word-break-word', { 'word-break': 'break-word' } ],
135
+ [ 'flex-main', { flex: '1' } ],
136
+ [ 'position-all', { position: 'absolute', top: '0', bottom: '0', left: '0', right: '0' } ],
137
+ [ 'image-event-none', { 'user-select': 'none', 'pointer-events': 'none' } ],
138
+ [
139
+ 'position-center',
140
+ {
141
+ left: '50%',
142
+ top: '50%',
143
+ transform: 'translate(-50%, -50%)'
144
+ }
145
+ ],
146
+ [
147
+ 'position-center-x',
148
+ {
149
+ left: '50%',
150
+ transform: 'translateX(-50%)'
151
+ }
152
+ ],
153
+ [
154
+ 'position-center-y',
155
+ {
156
+ top: '50%',
157
+ transform: 'translateY(-50%)'
158
+ }
159
+ ]
160
+ ]
161
+ })
@@ -0,0 +1,142 @@
1
+ import type { ConfigEnv, UserConfig } from 'vite'
2
+ import autoprefixer from 'autoprefixer'
3
+ import dayjs from 'dayjs'
4
+ import viewport from 'postcss-mobile-forever'
5
+ import { loadEnv } from 'vite'
6
+
7
+ import { createProxy, defaultSettings } from './config'
8
+ import { generateModifyVars } from './internal/vite-config/generate/generateModifyVars'
9
+ import createRollupOptions from './internal/vite-config/rollupOptions'
10
+ import { pathResolve, wrapperEnv } from './internal/vite-config/util'
11
+
12
+ import { createVitePlugins } from './internal/vite-config/vite/plugin'
13
+
14
+ import pkg from './package.json'
15
+
16
+ const { proxy, cdn, build, servive } = defaultSettings
17
+
18
+ const { dependencies, devDependencies, name, version } = pkg
19
+
20
+ const __APP_INFO__ = {
21
+ pkg: { dependencies, devDependencies, name, version },
22
+ lastBuildTime: dayjs().format('YYYY-MM-DD HH:mm:ss')
23
+ }
24
+
25
+ process.env.VUE_APP_VERSION = version
26
+
27
+ export default async ({ command, mode }: ConfigEnv): Promise<UserConfig> => {
28
+ const root = process.cwd()
29
+
30
+ const env = loadEnv(mode, root)
31
+
32
+ const viteEnv = wrapperEnv(env)
33
+
34
+ const { VITE_DROP_CONSOLE, VITE_APP_ENV, VITE_PROXY_PREFIX } = viteEnv
35
+
36
+ const isBuild = command === 'build'
37
+
38
+ return {
39
+ base: build.publicPath,
40
+ root,
41
+ resolve: {
42
+ alias: [
43
+ {
44
+ find: '@',
45
+ replacement: pathResolve('src') + '/'
46
+ },
47
+ {
48
+ find: '@gx-mock',
49
+ replacement: pathResolve('mock') + '/index.ts'
50
+ },
51
+ {
52
+ find: '@gx-mock',
53
+ replacement: pathResolve('mock') + '/'
54
+ },
55
+ {
56
+ find: '@gx-config',
57
+ replacement: pathResolve('config') + '/index.ts'
58
+ },
59
+ {
60
+ find: '@gx-vuex',
61
+ replacement: pathResolve('src/store') + '/index.ts'
62
+ },
63
+ {
64
+ find: '@gx-mobile/hooks',
65
+ replacement: pathResolve('src/hooks')
66
+ },
67
+ {
68
+ find: '@gx-admin/vite-config',
69
+ replacement: pathResolve('internal/vite-config') + '/'
70
+ }
71
+ ]
72
+ },
73
+ server: {
74
+ open: false,
75
+ host: true,
76
+ port: servive.port,
77
+ warmup: {
78
+ // 预热文件
79
+ clientFiles: [
80
+ './index.html',
81
+ './src/{views,layout,router,store,components}/*',
82
+ ],
83
+ },
84
+ proxy: proxy.use ? createProxy(VITE_PROXY_PREFIX)[VITE_APP_ENV] : {}
85
+ },
86
+ esbuild: {
87
+ drop: VITE_DROP_CONSOLE ? [ 'console', 'debugger' ] : []
88
+ },
89
+ build: {
90
+ cssTarget: 'chrome80',
91
+ outDir: build.outputDir,
92
+ assetsDir: build.assetsDir,
93
+ chunkSizeWarningLimit: 4000,
94
+ rollupOptions: createRollupOptions(cdn.use) as any
95
+ },
96
+ define: {
97
+ __INTLIFY_PROD_DEVTOOLS__: false,
98
+ __APP_INFO__: JSON.stringify(__APP_INFO__)
99
+ },
100
+ css: {
101
+ postcss: {
102
+ plugins: [
103
+ autoprefixer({
104
+ grid: true
105
+ }),
106
+ viewport({
107
+ appSelector: '#app',
108
+ viewportWidth: 375,
109
+ maxDisplayWidth: 600,
110
+ rootContainingBlockSelectorList: [
111
+ 'van-tabbar',
112
+ 'van-popup',
113
+ ],
114
+ border: true,
115
+ }),
116
+ ]
117
+ },
118
+ modules: {
119
+ generateScopedName: 'gx-pro-[local]-[hash:base64:5]'
120
+ },
121
+ preprocessorOptions: {
122
+ less: {
123
+ modifyVars: generateModifyVars(),
124
+ javascriptEnabled: true
125
+ }
126
+ }
127
+ },
128
+
129
+ plugins: await createVitePlugins(viteEnv, isBuild),
130
+
131
+ optimizeDeps: {
132
+ include: [
133
+ 'qs',
134
+ 'dayjs',
135
+ 'axios',
136
+ 'pinia',
137
+ 'echarts',
138
+ '@vueuse/core'
139
+ ]
140
+ }
141
+ }
142
+ }
@@ -0,0 +1,4 @@
1
+ # vue-mobile
2
+
3
+ #### 介绍
4
+ 使用vue3.0 + vant 搭建的手机端项目,旨在不用任何构建工具(html+js+less)
@@ -0,0 +1,293 @@
1
+ /****reset****/
2
+ body,
3
+ div,
4
+ table,
5
+ tr,
6
+ td,
7
+ th,
8
+ h1,
9
+ h2,
10
+ h3,
11
+ h4,
12
+ h5,
13
+ h6,
14
+ form,
15
+ input,
16
+ button,
17
+ label,
18
+ select,
19
+ textarea,
20
+ p,
21
+ u,
22
+ i,
23
+ em,
24
+ ul,
25
+ ol,
26
+ li,
27
+ dl,
28
+ dd,
29
+ dt,
30
+ img,
31
+ article,
32
+ aside,
33
+ details,
34
+ figcaption,
35
+ figure,
36
+ footer,
37
+ header,
38
+ menu,
39
+ nav,
40
+ section {
41
+ box-sizing: border-box;
42
+ margin: 0;
43
+ padding: 0;
44
+ font-size: 100%;
45
+ vertical-align: baseline;
46
+ border: 0;
47
+ outline: 0;
48
+ }
49
+ li {
50
+ list-style: none;
51
+ }
52
+ h1,
53
+ h2,
54
+ h3,
55
+ h4,
56
+ h5,
57
+ h6 {
58
+ font-size: 100%;
59
+ }
60
+ table {
61
+ border-collapse: collapse;
62
+ border-spacing: 0;
63
+ width: 100%;
64
+ }
65
+ a,
66
+ input,
67
+ select,
68
+ textarea,
69
+ area,
70
+ button {
71
+ outline: none;
72
+ font-family: inherit;
73
+ font-size: inherit;
74
+ border: none;
75
+ background: none;
76
+ color: inherit;
77
+ }
78
+ a {
79
+ text-decoration: none;
80
+ }
81
+ a:hover {
82
+ text-decoration: none;
83
+ }
84
+ textarea {
85
+ overflow: auto;
86
+ resize: none;
87
+ }
88
+ input[type="button"],
89
+ input[type="submit"],
90
+ input[type="reset"] {
91
+ cursor: pointer;
92
+ -webkit-appearance: none;
93
+ }
94
+ html,
95
+ body {
96
+ overflow-x: hidden;
97
+ width: 100%;
98
+ height: 100%;
99
+ background: #ffffff;
100
+ }
101
+ * {
102
+ -webkit-overflow-scrolling: touch;
103
+ }
104
+ html {
105
+ -webkit-tap-highlight-color: transparent;
106
+ }
107
+ body {
108
+ font: 400 14px/1 microsoft yahei, Tohoma, Arial;
109
+ text-align: left;
110
+ padding-bottom: constant(safe-area-inset-bottom);
111
+ padding-bottom: env(safe-area-inset-bottom);
112
+ }
113
+ .fl {
114
+ float: left;
115
+ }
116
+ .fr {
117
+ float: right;
118
+ }
119
+ .clearfix {
120
+ zoom: 1;
121
+ }
122
+ .clearfix::before,
123
+ .clearfix::after {
124
+ display: table;
125
+ content: " ";
126
+ }
127
+ .clearfix::after {
128
+ clear: both;
129
+ height: 0;
130
+ font-size: 0;
131
+ visibility: hidden;
132
+ }
133
+ .ant-skeleton {
134
+ display: table;
135
+ width: 100%;
136
+ }
137
+ .ant-skeleton.active {
138
+ display: none;
139
+ }
140
+ .ant-skeleton-content {
141
+ display: table-cell;
142
+ width: 100%;
143
+ vertical-align: top;
144
+ }
145
+ .ant-skeleton-content .ant-skeleton-title {
146
+ width: 100%;
147
+ height: 16px;
148
+ margin-top: 16px;
149
+ background: #f2f2f2;
150
+ }
151
+ .ant-skeleton-content .ant-skeleton-title + .ant-skeleton-paragraph {
152
+ margin-top: 24px;
153
+ }
154
+ .ant-skeleton-content .ant-skeleton-paragraph {
155
+ padding: 0;
156
+ }
157
+ .ant-skeleton-content .ant-skeleton-paragraph > li {
158
+ width: 100%;
159
+ height: 16px;
160
+ list-style: none;
161
+ background: #f2f2f2;
162
+ }
163
+ .ant-skeleton-content .ant-skeleton-paragraph > li + li {
164
+ margin-top: 16px;
165
+ }
166
+ .ant-skeleton-content .ant-skeleton-paragraph > li:last-child:not(:first-child):not(:nth-child(2)) {
167
+ width: 61%;
168
+ }
169
+ .ant-skeleton.ant-skeleton-active .ant-skeleton-avatar,
170
+ .ant-skeleton.ant-skeleton-active .ant-skeleton-button,
171
+ .ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph > li,
172
+ .ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title,
173
+ .ant-skeleton.ant-skeleton-active .ant-skeleton-image,
174
+ .ant-skeleton.ant-skeleton-active .ant-skeleton-input {
175
+ background: -webkit-gradient(linear, left top, right top, color-stop(25%, #f2f2f2), color-stop(37%, #e6e6e6), color-stop(63%, #f2f2f2));
176
+ background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
177
+ background-size: 400% 100%;
178
+ animation: ant-skeleton-loading 1.4s ease infinite;
179
+ }
180
+ @keyframes ant-skeleton-loading {
181
+ 0% {
182
+ background-position: 100% 50%;
183
+ }
184
+ 100% {
185
+ background-position: 0 50%;
186
+ }
187
+ }
188
+ @keyframes spinner-anime {
189
+ 100% {
190
+ transform: rotate(360deg);
191
+ }
192
+ }
193
+ .toast-loading {
194
+ position: fixed;
195
+ top: 0;
196
+ left: 0;
197
+ width: 100%;
198
+ height: 100%;
199
+ display: flex;
200
+ justify-content: center;
201
+ align-items: center;
202
+ text-align: center;
203
+ z-index: 9999999999;
204
+ }
205
+ .toast-loading.active {
206
+ display: none;
207
+ }
208
+ .toast-loading.none {
209
+ display: none;
210
+ }
211
+ .toast-loading .loading-cont {
212
+ display: flex;
213
+ flex-direction: column;
214
+ justify-content: center;
215
+ align-items: center;
216
+ padding: 15px 15px;
217
+ border-radius: 7px;
218
+ background-clip: padding-box;
219
+ color: #fff;
220
+ background-color: rgba(58, 58, 58, 0.9);
221
+ font-size: 15px;
222
+ line-height: 20px;
223
+ }
224
+ .toast-loading .loading-cont .svg {
225
+ margin: 0;
226
+ width: 32px;
227
+ height: 32px;
228
+ display: inline-block;
229
+ width: 20px;
230
+ height: 20px;
231
+ background-image: url("../image/loading.svg");
232
+ background-position: 50%;
233
+ background-size: 100%;
234
+ background-repeat: no-repeat;
235
+ animation: spinner-anime 1s linear infinite;
236
+ }
237
+ .toast-loading .loading-cont .svg-text {
238
+ display: inline-block;
239
+ position: relative;
240
+ top: 4px;
241
+ }
242
+ .skeleton-loading {
243
+ display: block;
244
+ padding: 0.25rem;
245
+ }
246
+ .skeleton-loading.active {
247
+ display: none;
248
+ }
249
+ .skeleton-loading.none {
250
+ display: none;
251
+ }
252
+ .error-block {
253
+ display: none;
254
+ box-sizing: border-box;
255
+ text-align: center;
256
+ padding-top: calc(50vh - 200px);
257
+ }
258
+ .error-block.active {
259
+ display: block;
260
+ }
261
+ .error-block .error-block-image {
262
+ width: auto;
263
+ height: 200px;
264
+ }
265
+ .error-block .error-block-image img {
266
+ height: 100%;
267
+ }
268
+ .error-block .error-block-description {
269
+ margin-top: 20px;
270
+ font-size: 13px;
271
+ color: #999;
272
+ line-height: 1.4;
273
+ }
274
+ .error-block .error-block-description-title {
275
+ font-size: 20px;
276
+ color: #333;
277
+ }
278
+ .error-block .error-block-description-subtitle {
279
+ margin-top: 8px;
280
+ }
281
+ #app {
282
+ display: none;
283
+ }
284
+ #app.active {
285
+ display: block;
286
+ }
287
+ .refresh-content {
288
+ height: 100%;
289
+ }
290
+ .refresh-content .van-pull-refresh {
291
+ height: 100%;
292
+ }
293
+ /*# sourceMappingURL=global.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["global.less"],"names":[],"mappings":";AACA;AAAM;AAAK;AAAO;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAM;AAAO;AAAQ;AAAO;AAAQ;AAAU;AAAG;AAAG;AAAG;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAK;AAAS;AAAO;AAAS;AAAY;AAAQ;AAAQ;AAAQ;AAAM;AAAK;EACpN,sBAAA;EACA,SAAA;EACA,UAAA;EACA,eAAA;EACA,wBAAA;EACA,SAAA;EACA,UAAA;;AAGF;EACE,gBAAA;;AAGF;AAAI;AAAI;AAAI;AAAI;AAAI;EAClB,eAAA;;AAGF;EACE,yBAAA;EACA,iBAAA;EACA,WAAA;;AAGF;AAAG;AAAO;AAAQ;AAAU;AAAM;EAChC,aAAA;EACA,oBAAA;EACA,kBAAA;EACA,YAAA;EACA,gBAAA;EACA,cAAA;;AAGF;EACE,qBAAA;;AAGF,CAAC;EACC,qBAAA;;AAGF;EACE,cAAA;EACA,YAAA;;AAGF,KAAK;AAAiB,KAAK;AAAiB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