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开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能