From c4c846d44a6c30bd32fb1151893f86d24e748f3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=BF=94=E5=AE=87-=E6=97=85=E7=AE=A1=E5=AE=B6?= <153298343@qq.com> Date: Fri, 20 May 2022 17:30:17 +0800 Subject: [PATCH] up --- .gitignore | 16 +++ App.vue | 4 + main.js | 6 +- manifest.json | 14 ++- package.json | 5 + packageA/pages/generalList/generalList.vue | 22 ++++ .../pages/generalPatrol/generalPatrol.vue | 106 ++++++++++++++++++ pages.json | 28 ++++- pages/index/index.vue | 75 ++++++++----- uni.scss | 4 +- 10 files changed, 248 insertions(+), 32 deletions(-) create mode 100644 .gitignore create mode 100644 package.json create mode 100644 packageA/pages/generalList/generalList.vue create mode 100644 packageA/pages/generalPatrol/generalPatrol.vue diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9ad28d2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ +.DS_Store +node_modules/ +dist/ +npm-debug.log* +yarn-debug.log* +yarn-error.log* +package-lock.json +tests/**/coverage/ + +# Editor directories and files +.idea +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln diff --git a/App.vue b/App.vue index 99f6e28..5f7948d 100644 --- a/App.vue +++ b/App.vue @@ -1,3 +1,7 @@ + + + diff --git a/packageA/pages/generalPatrol/generalPatrol.vue b/packageA/pages/generalPatrol/generalPatrol.vue new file mode 100644 index 0000000..31751a0 --- /dev/null +++ b/packageA/pages/generalPatrol/generalPatrol.vue @@ -0,0 +1,106 @@ + + + + + diff --git a/pages.json b/pages.json index bf32f65..8723b11 100644 --- a/pages.json +++ b/pages.json @@ -1,15 +1,39 @@ { + "easycom": { + "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" + }, "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { "path": "pages/index/index", "style": { - "navigationBarTitleText": "uni-app" + "navigationBarTitleText": "巡查养护", + "navigationStyle": "custom" } } ], + "subPackages": [{ + "root": "packageA/pages", + "pages": [{ + "path": "generalPatrol/generalPatrol", + "style": { + "navigationBarTitleText": "通用巡查", + "enablePullDownRefresh": false, + "navigationStyle": "custom" + } + + }, { + "path": "generalList/generalList", + "style": { + "navigationBarTitleText": "通用巡查", + "enablePullDownRefresh": false, + "navigationStyle": "custom" + } + + }] + }], "globalStyle": { "navigationBarTextStyle": "black", - "navigationBarTitleText": "uni-app", + "navigationBarTitleText": "巡查养护", "navigationBarBackgroundColor": "#F8F8F8", "backgroundColor": "#F8F8F8" } diff --git a/pages/index/index.vue b/pages/index/index.vue index 4ca2b92..1d95a15 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,52 +1,73 @@ - - diff --git a/uni.scss b/uni.scss index a9a742d..06f1183 100644 --- a/uni.scss +++ b/uni.scss @@ -4,7 +4,9 @@ * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App * - */ + */ +/* uni.scss */ +@import 'uview-ui/theme.scss'; /** * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能