From 58e630cf6da00c2fe5162ad6e59a5ee5fe6064db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=B2=E9=B8=BD?= <1020103647@qq.com> Date: Sun, 12 May 2024 10:26:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=81=9A=E6=B5=8B=E8=AF=95=EF=BC=8C?= =?UTF-8?q?=E6=94=BE=E5=BC=80=E9=83=A8=E5=88=86ignore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 +-- .prettierignore | 7 ++++ src/manifest.json | 79 +++++++++++++++++++++++++++++++++++++++++ src/pages.json | 89 +++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 177 insertions(+), 2 deletions(-) create mode 100644 src/manifest.json create mode 100644 src/pages.json diff --git a/.gitignore b/.gitignore index 4815e0c..4fd1279 100644 --- a/.gitignore +++ b/.gitignore @@ -30,8 +30,8 @@ dist uni-pages.d.ts # 插件生成的文件 -src/pages.json -src/manifest.json +# src/pages.json +# src/manifest.json # lock 文件还是不要了,我主要的版本写死就好了 pnpm-lock.yaml diff --git a/.prettierignore b/.prettierignore index 4917b0e..301d974 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1,9 @@ # unplugin-auto-import 生成的类型文件,每次提交都改变,所以加入这里吧,与 .gitignore 配合使用 auto-import.d.ts + +# vite-plugin-uni-pages 生成的类型文件,每次切换分支都一堆不同的,所以直接 .gitignore +uni-pages.d.ts + +# 插件生成的文件 +src/pages.json +src/manifest.json diff --git a/src/manifest.json b/src/manifest.json new file mode 100644 index 0000000..f6ad007 --- /dev/null +++ b/src/manifest.json @@ -0,0 +1,79 @@ +{ + "name": "unibest-base", + "appid": "H57F2ACE4", + "description": "", + "versionName": "1.0.0", + "versionCode": "100", + "transformPx": false, + "app-plus": { + "usingComponents": true, + "nvueStyleCompiler": "uni-app", + "compilerVersion": 3, + "splashscreen": { + "alwaysShowBeforeRender": true, + "waiting": true, + "autoclose": true, + "delay": 0 + }, + "modules": {}, + "distribute": { + "android": { + "permissions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "minSdkVersion": 30, + "targetSdkVersion": 30, + "abiFilters": [ + "armeabi-v7a", + "arm64-v8a" + ] + }, + "ios": {}, + "sdkConfigs": {}, + "icons": { + "android": {}, + "ios": {} + } + } + }, + "quickapp": {}, + "mp-weixin": { + "appid": "wxa2abb91f64032a2b", + "setting": { + "urlCheck": false + }, + "usingComponents": true + }, + "mp-alipay": { + "usingComponents": true + }, + "mp-baidu": { + "usingComponents": true + }, + "mp-toutiao": { + "usingComponents": true + }, + "uniStatistics": { + "enable": false + }, + "vueVersion": "3", + "h5": { + "router": { + "base": "/" + } + } +} \ No newline at end of file diff --git a/src/pages.json b/src/pages.json new file mode 100644 index 0000000..468dc66 --- /dev/null +++ b/src/pages.json @@ -0,0 +1,89 @@ +{ + "globalStyle": { + "navigationStyle": "default", + "navigationBarTitleText": "unibest", + "navigationBarBackgroundColor": "#f8f8f8", + "navigationBarTextStyle": "black", + "backgroundColor": "#FFFFFF" + }, + "easycom": { + "autoscan": true, + "custom": { + "^wd-(.*)": "wot-design-uni/components/wd-$1/wd-$1.vue" + } + }, + "tabBar": { + "color": "#999999", + "selectedColor": "#018d71", + "backgroundColor": "#F8F8F8", + "borderStyle": "black", + "height": "50px", + "fontSize": "10px", + "iconWidth": "24px", + "spacing": "3px", + "list": [ + { + "iconPath": "static/tabbar/home.png", + "selectedIconPath": "static/tabbar/homeHL.png", + "pagePath": "pages/index/index", + "text": "首页" + }, + { + "iconPath": "static/tabbar/example.png", + "selectedIconPath": "static/tabbar/exampleHL.png", + "pagePath": "pages/index/about", + "text": "关于" + } + ] + }, + "pages": [ + { + "path": "pages/index/index", + "type": "home", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "首页" + } + }, + { + "path": "pages/index/about", + "type": "page", + "style": { + "navigationBarTitleText": "关于" + } + }, + { + "path": "pages/index/request", + "type": "page", + "layout": "demo", + "style": { + "navigationBarTitleText": "请求" + } + }, + { + "path": "pages/index/request2", + "type": "page", + "layout": "demo", + "style": { + "navigationBarTitleText": "请求-状态一体化" + } + }, + { + "path": "pages/index/upload", + "type": "page", + "layout": "default", + "style": { + "navigationBarTitleText": "上传" + } + }, + { + "path": "pages/index/upload2", + "type": "page", + "layout": "default", + "style": { + "navigationBarTitleText": "上传-状态一体化" + } + } + ], + "subPackages": [] +} \ No newline at end of file