diff --git a/wuye-manager-uniapp/manifest.json b/wuye-manager-uniapp/manifest.json index e30c89f..7e1047a 100644 --- a/wuye-manager-uniapp/manifest.json +++ b/wuye-manager-uniapp/manifest.json @@ -1,72 +1,78 @@ { - "name" : "wuye-uniapp-project", - "appid" : "__UNI__E4ECDAB", - "description" : "", - "versionName" : "1.0.0", - "versionCode" : "100", - "transformPx" : false, - /* 5+App特有相关 */ - "app-plus" : { - "usingComponents" : true, - "nvueStyleCompiler" : "uni-app", - "compilerVersion" : 3, - "splashscreen" : { - "alwaysShowBeforeRender" : true, - "waiting" : true, - "autoclose" : true, - "delay" : 0 - }, - /* 模块配置 */ - "modules" : {}, - /* 应用发布信息 */ - "distribute" : { - /* android打包配置 */ - "android" : { - "permissions" : [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - /* ios打包配置 */ - "ios" : {}, - /* SDK配置 */ - "sdkConfigs" : {} - } - }, - /* 快应用特有相关 */ - "quickapp" : {}, - /* 小程序特有相关 */ - "mp-weixin" : { - "appid" : "wx4a49ad94e2b25927", - "setting" : { - "urlCheck" : false - }, - "usingComponents" : true - }, - "mp-alipay" : { - "usingComponents" : true - }, - "mp-baidu" : { - "usingComponents" : true - }, - "mp-toutiao" : { - "usingComponents" : true - }, - "uniStatistics" : { - "enable" : false - }, - "vueVersion" : "3" -} + "name": "wuye-uniapp-project", + "appid": "__UNI__E4ECDAB", + "description": "", + "versionName": "1.0.0", + "versionCode": "100", + "transformPx": false, + /* 5+App特有相关 */ + "app-plus": { + "usingComponents": true, + "nvueStyleCompiler": "uni-app", + "compilerVersion": 3, + "splashscreen": { + "alwaysShowBeforeRender": true, + "waiting": true, + "autoclose": true, + "delay": 0 + }, + /* 模块配置 */ + "modules": {}, + /* 应用发布信息 */ + "distribute": { + /* android打包配置 */ + "android": { + "permissions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] + }, + /* ios打包配置 */ + "ios": {}, + /* SDK配置 */ + "sdkConfigs": {} + } + }, + /* 快应用特有相关 */ + "quickapp": {}, + /* 小程序特有相关 */ + "mp-weixin": { + "appid": "wx4a49ad94e2b25927", + "setting": { + "urlCheck": false, + "postcss": false, + "minified": false + }, + "mp-weixin": { + "hotReload": true, + "lazyCodeLoading": "requiredComponents" + }, + "usingComponents": true + }, + "mp-alipay": { + "usingComponents": true + }, + "mp-baidu": { + "usingComponents": true + }, + "mp-toutiao": { + "usingComponents": true + }, + "uniStatistics": { + "enable": false + }, + "vueVersion": "3" +} \ No newline at end of file diff --git a/wuye-manager-uniapp/pageSubPack/inspection/toDays_inscpection.vue b/wuye-manager-uniapp/pageSubPack/inspection/toDays_inscpection.vue new file mode 100644 index 0000000..5610fbf --- /dev/null +++ b/wuye-manager-uniapp/pageSubPack/inspection/toDays_inscpection.vue @@ -0,0 +1,216 @@ + + + + + \ No newline at end of file diff --git a/wuye-manager-uniapp/pages.json b/wuye-manager-uniapp/pages.json index aec39fb..171d6be 100644 --- a/wuye-manager-uniapp/pages.json +++ b/wuye-manager-uniapp/pages.json @@ -1,6 +1,5 @@ { - "pages": [ - { + "pages": [{ "path": "pages/guide/guide", "style": { "navigationBarTitleText": "引导页", @@ -22,101 +21,102 @@ } } ], - "subPackages": [ - { + "subPackages": [{ "root": "pageSubPack/loginSub", - "pages": [ - { + "pages": [{ "path": "pwd-login", "style": { "navigationBarTitleText": "账号登录", "navigationStyle": "custom" } }, - { - "path": "login", - "style": { + { + "path": "login", + "style": { "navigationBarTitleText": "手机号登录", "navigationStyle": "custom" - } - }, + } + }, { - "path": "register-new-user", - "style": { + "path": "register-new-user", + "style": { "navigationBarTitleText": "注册新用户", "navigationStyle": "custom" - } + } }, { - "path": "forget-pwd", - "style": { + "path": "forget-pwd", + "style": { "navigationBarTitleText": "忘记密码", "navigationStyle": "custom" - } + } }, { - "path": "change-pwd", - "style": { + "path": "change-pwd", + "style": { "navigationBarTitleText": "修改密码", "navigationStyle": "custom" - } + } } - - + + ] }, { "root": "pageSubPack/notice-list", - "pages": [ - { + "pages": [{ "path": "select-community", "style": { "navigationBarTitleText": "选择小区" } }, - { - "path": "notice-list", - "style": { - "navigationBarTitleText": "通知公告" - } - }, { - "path": "noticeListDetails", - "style": { + "path": "notice-list", + "style": { + "navigationBarTitleText": "通知公告" + } + }, + { + "path": "noticeListDetails", + "style": { "navigationBarTitleText": "公告详情" - } + } } - + ] }, + { + "root": "pageSubPack/inspection", + "pages": [{ + "path": "toDays_inscpection", + "style": { + "navigationBarTitleText": "今日巡检" + } + }] + }, { "root": "pageSubPack/oneClickOpen", - "pages": [ - { - "path": "oneClickOpen", - "style": { - "navigationBarTitleText": "一键开门", - "navigationStyle": "custom" - } + "pages": [{ + "path": "oneClickOpen", + "style": { + "navigationBarTitleText": "一键开门", + "navigationStyle": "custom" } - ] + }] }, { "root": "pageSubPack/report-record", - "pages": [ - { - "path": "report-record", - "style": { - "navigationBarTitleText": "上报记录", - "navigationStyle": "custom" - } + "pages": [{ + "path": "report-record", + "style": { + "navigationBarTitleText": "上报记录", + "navigationStyle": "custom" } - ] + }] }, { "root": "pageSubPack/setting", - "pages": [ - { + "pages": [{ "path": "setting", "style": { "navigationBarTitleText": "设置", @@ -127,34 +127,41 @@ "path": "change-phone", "style": { "navigationBarTitleText": "更改手机号码" - + } }, { "path": "change -password", "style": { "navigationBarTitleText": "修改密码" - + } - }, + } ] } - - + + ], - "easycom": { - "autoscan": true, - "custom": { - "^uni-(.*)": "@/components/uni-$1.vue" - } - }, + "easycom": { + "autoscan": true, + "custom": { + "^uni-(.*)": "@/components/uni-$1.vue" + } + }, + "condition": { + "list": [ + { + "name": "今日巡检", + "path": "pageSubPack/inspection/toDays_inscpection" + } + ] + }, "tabBar": { "color": "#333333", "backgroundColor": "#F5F6F6", "borderStyle": "white", "selectedColor": "#666666", - "list": [ - { + "list": [{ "pagePath": "pages/index/index", "iconPath": "/static/imgs/index.png", "selectedIconPath": "/static/imgs/index-lan.png", @@ -175,4 +182,4 @@ "backgroundColor": "#F8F8F8" }, "uniIdRouter": {} -} +} \ No newline at end of file diff --git a/wuye-manager-uniapp/pages/index/index.vue b/wuye-manager-uniapp/pages/index/index.vue index 13ccec3..b570374 100644 --- a/wuye-manager-uniapp/pages/index/index.vue +++ b/wuye-manager-uniapp/pages/index/index.vue @@ -60,7 +60,7 @@ - + 25 巡检点 @@ -121,8 +121,7 @@ onLoad, onUnload } from '@dcloudio/uni-app' - - + // 列表数据状态 const current = ref(0) @@ -138,6 +137,9 @@ ]) const noticeText = ref('公告公告本小区今天安装了摄像头') + + + // =======方法======= // 跳转小区 const navigateToPage =() =>{ @@ -157,6 +159,17 @@ url: "/pageSubPack/oneClickOpen/oneClickOpen" }) } + + + // 跳转到 今日巡检 + const goToDaysInspection = () => { + uni.navigateTo({ + url: "/pageSubPack/inspection/toDays_inscpection" + }) + } + + + // 接收选择小区返回的参数 const slelctHomeData = (data) => { // console.log('收到B页面返回的数据:', data)