Skip to content

Commit f14ea9f

Browse files
committed
feat(custom): 添加登录页更换ui(有瑕疵)
1 parent 114816f commit f14ea9f

File tree

41 files changed

+4939
-458
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+4939
-458
lines changed

.env.development

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,8 @@ VITE_APP_API_BASEURL = 'https://jsonplaceholder.typicode.com'
66

77
# storage前缀
88
VITE_APP_PREFIX = 'storage'
9+
10+
# 是否去除console 和 debugger
11+
VITE_DELETE_CONSOLE = false
12+
# 是否开启sourcemap
13+
VITE_SHOW_SOURCEMAP = true

.env.production

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,8 @@ VITE_APP_API_BASEURL = 'https://jsonplaceholder.typicode.com'
66

77
# storage前缀
88
VITE_APP_PREFIX = 'storage'
9+
10+
# 是否去除console 和 debugger
11+
VITE_DELETE_CONSOLE = false
12+
# 是否开启sourcemap
13+
VITE_SHOW_SOURCEMAP = false

.eslintrc-auto-import.json

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,30 @@
33
"Component": true,
44
"ComponentPublicInstance": true,
55
"ComputedRef": true,
6+
"DirectiveBinding": true,
67
"EffectScope": true,
78
"ExtractDefaultPropTypes": true,
89
"ExtractPropTypes": true,
910
"ExtractPublicPropTypes": true,
1011
"InjectionKey": true,
12+
"MaybeRef": true,
13+
"MaybeRefOrGetter": true,
1114
"PropType": true,
1215
"Ref": true,
16+
"Slot": true,
17+
"Slots": true,
1318
"VNode": true,
1419
"WritableComputedRef": true,
1520
"acceptHMRUpdate": true,
21+
"addRouterMethodAlias": true,
1622
"computed": true,
1723
"createApp": true,
1824
"createPinia": true,
25+
"createRouter": true,
1926
"customRef": true,
2027
"defineAsyncComponent": true,
2128
"defineComponent": true,
29+
"defineMiddleware": true,
2230
"defineStore": true,
2331
"effectScope": true,
2432
"getActivePinia": true,
@@ -74,6 +82,7 @@
7482
"onUnload": true,
7583
"onUnmounted": true,
7684
"onUpdated": true,
85+
"onWatcherCleanup": true,
7786
"provide": true,
7887
"reactive": true,
7988
"readonly": true,
@@ -91,21 +100,27 @@
91100
"toValue": true,
92101
"triggerRef": true,
93102
"unref": true,
103+
"useAppStore": true,
94104
"useAttrs": true,
105+
"useCountStore": true,
95106
"useCssModule": true,
96107
"useCssVars": true,
108+
"useId": true,
109+
"useModel": true,
110+
"useOutsideAppStore": true,
111+
"useOutsideCountStore": true,
112+
"useOutsideUserStore": true,
97113
"useRequest": true,
114+
"useRoute": true,
115+
"useRouter": true,
98116
"useSlots": true,
117+
"useTemplateRef": true,
118+
"useUserStore": true,
119+
"useWebView": true,
120+
"useWebview": true,
99121
"watch": true,
100122
"watchEffect": true,
101123
"watchPostEffect": true,
102-
"watchSyncEffect": true,
103-
"onWatcherCleanup": true,
104-
"useId": true,
105-
"useModel": true,
106-
"useTemplateRef": true,
107-
"DirectiveBinding": true,
108-
"MaybeRef": true,
109-
"MaybeRefOrGetter": true
124+
"watchSyncEffect": true
110125
}
111126
}

.eslintrc.cjs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
const autoImport = require('./.eslintrc-auto-import.json')
12
module.exports = {
23
env: {
34
browser: true,
45
es2021: true,
5-
node: true,
6+
node: true
67
},
78
extends: [
89
'eslint:recommended',
@@ -13,24 +14,24 @@ module.exports = {
1314
'standard',
1415
// 1. 接入 prettier 的规则
1516
'prettier',
16-
'plugin:prettier/recommended',
17+
'plugin:prettier/recommended'
1718
],
1819
overrides: [
1920
{
2021
env: {
21-
node: true,
22+
node: true
2223
},
2324
files: ['.eslintrc.{js,cjs}'],
2425
parserOptions: {
25-
sourceType: 'script',
26-
},
27-
},
26+
sourceType: 'script'
27+
}
28+
}
2829
],
2930

3031
plugins: [
3132
'vue',
3233
// 2. 加入 prettier 的 eslint 插件
33-
'prettier',
34+
'prettier'
3435
],
3536
rules: {
3637
// 3. 注意要加上这一句,开启 prettier 自动修复的功能
@@ -52,7 +53,7 @@ module.exports = {
5253
'no-use-before-define': 'off',
5354
'no-undef': 'off',
5455
'no-unused-vars': 'off',
55-
'no-param-reassign': 'off',
56+
'no-param-reassign': 'off'
5657
},
5758
globals: {
5859
$t: true,
@@ -65,5 +66,6 @@ module.exports = {
6566
Page: true,
6667
App: true,
6768
NodeJS: true,
68-
},
69+
...autoImport.globals
70+
}
6971
}

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
# UniApp、Vite、Vue3、Pinia、Unocss 小程序、H5 项目模板
22

3-
入门简单、开发简单、接近原生,适用于了解或不熟悉uniapp的开发人员去快速使用uniapp开发小程序、h5
3+
入门简单、开发简单、接近原生,适用于了解或不熟悉uniapp的开发人员去快速使用uniapp开发小程序、H5
44

55
## 特色
66

77
- ⚡️[uni-app](https://github.com/dcloudio/uni-app), [Vue 3](https://github.com/vuejs/core), [Vite](https://github.com/vitejs/vite), [pnpm](https://pnpm.io/)
88

99
- 📦 [组件自动化引入](https://github.com/antfu/unplugin-vue-components)
1010

11+
- 🛣 类 VueRouter 路由: 使用 [uniapp-router-next](https://www.npmjs.com/package/uniapp-router-next) 并进行了增强,如拦截器、中间件和路由别名,提供熟悉的 API 体验。
12+
1113
- 🍍 [使用 Pinia 的状态管理](https://pinia.vuejs.org)
1214

15+
- 👇 内置 Z-Paging: 集成了高性能、易用的下拉分页组件,轻松实现下拉刷新和上拉加载更多等功能。
16+
1317
- 🎨 [UnoCSS](https://github.com/unocss/unocss) - 高性能且极具灵活性的即时原子化 CSS 引擎
1418

1519
- 😃 [各种图标集为你所用](https://icon-sets.iconify.design/)

package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "uni-preset-vue",
33
"type": "commonjs",
4-
"version": "0.0.0",
4+
"version": "1.0.0",
55
"scripts": {
66
"dev:app": "uni -p app",
77
"dev:app-android": "uni -p app-android",
@@ -67,8 +67,11 @@
6767
"pinia": "2.0.32",
6868
"pinia-plugin-persistedstate": "^3.2.1",
6969
"uni-preset-vue": "link:",
70+
"uniapp-router-next": "^1.2.7",
7071
"vue": "3.5.13",
71-
"vue-i18n": "^9.14.4"
72+
"vue-i18n": "^9.14.4",
73+
"wot-design-uni": "^1.9.1",
74+
"z-paging": "^2.8.7"
7275
},
7376
"devDependencies": {
7477
"@babel/core": "^7.24.7",
@@ -84,6 +87,7 @@
8487
"@uni-helper/vite-plugin-uni-components": "^0.1.0",
8588
"@uni-helper/vite-plugin-uni-layouts": "^0.1.10",
8689
"@uni-helper/vite-plugin-uni-manifest": "^0.2.6",
90+
"@uni-helper/vite-plugin-uni-pages": "^0.2.28",
8791
"@unocss/preset-legacy-compat": "^0.59.4",
8892
"@unocss/preset-uno": "^0.59.4",
8993
"@vue/runtime-core": "^3.5.13",
@@ -108,7 +112,8 @@
108112
"stylelint-scss": "^6.2.1",
109113
"unocss": "^0.58.9",
110114
"unocss-applet": "^0.7.8",
111-
"unplugin-auto-import": "^0.17.5",
115+
"unplugin-auto-import": "^19.2.0",
116+
"unplugin-uni-router": "^1.2.7",
112117
"vite": "5.2.8",
113118
"vue-global-api": "^0.4.1"
114119
},

0 commit comments

Comments
 (0)