Browse Source

基础框架代码优化/巡更系统迭代更新

fanghuisheng 7 months ago
parent
commit
bb83beb081

+ 3 - 2
package.json

@@ -33,7 +33,8 @@
         "build:quickapp-webview-huawei": "uni build -p quickapp-webview-huawei",
         "build:quickapp-webview-union": "uni build -p quickapp-webview-union",
         "clear": "rimraf node_modules && npm install --force",
-        "clean": "npm cache clean --force"
+        "clean": "npm cache clean --force",
+        "update:setting": "node unpackage/config/setting.js"
     },
     "dependencies": {
         "@amap/amap-jsapi-loader": "^1.0.1",
@@ -75,4 +76,4 @@
         "sass": "1.57.1",
         "vite": "5.2.8"
     }
-}
+}

+ 23 - 7
src/App.vue

@@ -1,28 +1,44 @@
 <script setup>
 /*----------------------------------依赖引入-----------------------------------*/
-import { onLoad, onShow, onHide, onLaunch, onReady } from "@dcloudio/uni-app";
+import { onLoad, onShow, onHide, onLaunch, onReady, onBackPress } from "@dcloudio/uni-app";
 import { defineComponent, getCurrentInstance, inject, nextTick, onMounted, watchEffect, ref } from "vue";
 /*----------------------------------接口引入-----------------------------------*/
 /*----------------------------------组件引入-----------------------------------*/
 /*----------------------------------store引入-----------------------------------*/
 /*----------------------------------公共方法引入-----------------------------------*/
 import config from "./config";
-import JKeyListen from "@/utils/keyListen.js";
 import { storageSystem } from "@/utils/storage";
 /*----------------------------------公共变量-----------------------------------*/
 const { proxy } = getCurrentInstance();
 /*----------------------------------变量声明-----------------------------------*/
-
 function initApp() {
   proxy.$settingStore.initThemeColor(storageSystem.get("themeColor")); //初始化默认主题
   proxy.$settingStore.systemHeightTop(); //初始化获取安全区高度
-
   //#ifdef APP-PLUS
+  stteingInit();
+  //#endif
+}
+
+//设置初始化
+function stteingInit() {
   plus.screen.unlockOrientation(); //解除屏幕方向的锁定,但是不一定是竖屏;
-  plus.screen.lockOrientation("portrait-primary"); //设置屏幕方向(1.竖屏正方向:portrait-primary 2.竖屏反方向:portrait-secondary 3.横屏正方向:landscape-primary 4.横屏反方向:landscape-secondary 5.自然方向:default)
+
+  // 综合智慧云
+  if (config.appInfo.appid === "__UNI__36DE3A0") {
+    plus.screen.lockOrientation("portrait-primary"); //设置屏幕方向(1.竖屏正方向:portrait-primary 2.竖屏反方向:portrait-secondary 3.横屏正方向:landscape-primary 4.横屏反方向:landscape-secondary 5.自然方向:default)
+  }
+  // 智能巡更
+  else if (config.appInfo.appid === "__UNI__BF1A1F0") {
+    plus.screen.lockOrientation("portrait-primary"); //设置屏幕方向(1.竖屏正方向:portrait-primary 2.竖屏反方向:portrait-secondary 3.横屏正方向:landscape-primary 4.横屏反方向:landscape-secondary 5.自然方向:default)
+    proxy.$keyListen.startListen(true); //开启物理按钮监听
+  }
+  // 智能会议
+  else if (config.appInfo.appid === "__UNI__F3963F8") {
+    plus.screen.lockOrientation("landscape-primary"); //设置屏幕方向(1.竖屏正方向:portrait-primary 2.竖屏反方向:portrait-secondary 3.横屏正方向:landscape-primary 4.横屏反方向:landscape-secondary 5.自然方向:default)
+    plus.navigator.hideSystemNavigation(); //隐藏安卓底部虚拟导航键
+  }
+
   proxy.$settingStore.pushListener(); //开启消息推送监听
-  // JKeyListen.startListen(true); //开启物理按钮监听
-  //#endif
 }
 
 // 设置手机通知权限

+ 1 - 1
src/components/oa-scroll/index.vue

@@ -116,7 +116,7 @@ const props = defineProps({
   //距离顶部下拉刷新距离
   refresherThreshold: {
     type: Number,
-    default: 45,
+    default: 44,
   },
   //是否使用默认下拉刷新样式(支持设置 black、white、none/none 表示不使用默认样式)
   refresherDefaultStyle: {

+ 6 - 2
src/config.js

@@ -1,3 +1,5 @@
+import manifest from './manifest.json'
+
 // 应用全局配置
 export default {
   //#ifdef APP-PLUS || MP-WEIXIN
@@ -11,8 +13,10 @@ export default {
   websiteUrl: "https://qhome.usky.cn",
   // 应用信息
   appInfo: {
+    // 应用id
+    appid: manifest.appid,
     // 应用名称
-    name: "usky-app-mobile",
+    name: manifest.name,
     // 应用版本
     version: uni.getSystemInfoSync().appWgtVersion || uni.getSystemInfoSync().appVersion,
     // 应用logo
@@ -44,4 +48,4 @@ export default {
       },
     ],
   },
-};
+};

+ 158 - 149
src/manifest.json

@@ -1,46 +1,46 @@
 {
-    "name" : "综合智慧云",
-    "appid" : "__UNI__36DE3A0",
-    "description" : "综合智慧云APP,是一款助力于企业数字化的应用平台,帮助企业提升办公效率,实现组织数字化和业务数字化。",
-    "versionName" : "2.1.9",
-    "versionCode" : 19,
-    "transformPx" : false,
-    "app-plus" : {
-        "compatible" : {
-            "ignoreVersion" : true
+    "name": "综合智慧云",
+    "appid": "__UNI__36DE3A0",
+    "description": "综合智慧云APP,是一款助力于企业数字化的应用平台,帮助企业提升办公效率,实现组织数字化和业务数字化。",
+    "versionName": "2.1.9",
+    "versionCode": 19,
+    "transformPx": false,
+    "app-plus": {
+        "compatible": {
+            "ignoreVersion": true
         },
-        "kernel" : {
-            "ios" : "WKWebview"
+        "kernel": {
+            "ios": "WKWebview"
         },
-        "usingComponents" : true,
-        "nvueStyleCompiler" : "uni-app",
-        "compilerVersion" : 3,
-        "splashscreen" : {
-            "alwaysShowBeforeRender" : true,
-            "waiting" : true,
-            "autoclose" : true,
-            "delay" : 0
+        "usingComponents": true,
+        "nvueStyleCompiler": "uni-app",
+        "compilerVersion": 3,
+        "splashscreen": {
+            "alwaysShowBeforeRender": true,
+            "waiting": true,
+            "autoclose": true,
+            "delay": 0
         },
-        "screenOrientation" : [
+        "screenOrientation": [
             "portrait-primary",
             "portrait-secondary",
             "landscape-primary",
             "landscape-secondary"
         ],
-        "modules" : {
-            "VideoPlayer" : {},
-            "iBeacon" : {},
-            "Geolocation" : {},
-            "Maps" : {},
-            "Barcode" : {},
-            "Fingerprint" : {},
-            "Push" : {},
-            "Camera" : {},
-            "LivePusher" : {}
+        "modules": {
+            "VideoPlayer": {},
+            "iBeacon": {},
+            "Geolocation": {},
+            "Maps": {},
+            "Barcode": {},
+            "Fingerprint": {},
+            "Push": {},
+            "Camera": {},
+            "LivePusher": {}
         },
-        "distribute" : {
-            "android" : {
-                "permissions" : [
+        "distribute": {
+            "android": {
+                "permissions": [
                     "<uses-feature android:name=\"android.hardware.camera\"/>",
                     "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
                     "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
@@ -80,156 +80,165 @@
                     "<uses-permission android:name=\"android.permission.RECEIVE_BOOT_COMPLETED\"/>",
                     "<uses-permission android:name=\"android.permission.SYSTEM_ALERT_WINDOW\"/>"
                 ],
-                "minSdkVersion" : "",
-                "abiFilters" : [ "armeabi-v7a", "arm64-v8a" ],
-                "targetSdkVersion" : 30
+                "minSdkVersion": "",
+                "abiFilters": [
+                    "armeabi-v7a",
+                    "arm64-v8a"
+                ],
+                "targetSdkVersion": 30
             },
-            "ios" : {
-                "dSYMs" : false,
-                "privacyDescription" : {
-                    "NSPhotoLibraryUsageDescription" : "该应用需要读取你的相册,用于上传头像",
-                    "NSPhotoLibraryAddUsageDescription" : "该应用需要读取你的相册,用于拍照保存图片",
-                    "NSCameraUsageDescription" : "该应用需要你的相机,用于你拍摄上传头像信息",
-                    "NSMicrophoneUsageDescription" : "该应用需要使用你的麦克风,用于语音播放",
-                    "NSLocationWhenInUseUsageDescription" : "该应用需要你的地理位置,用于天气、签到等功能",
-                    "NSLocationAlwaysUsageDescription" : "该应用需要持续获取用户地理位置,用于天气、签到等功能",
-                    "NSLocationAlwaysAndWhenInUseUsageDescription" : "该应用需要你的地理位置,用于天气、签到等功能",
-                    "NSCalendarsUsageDescription" : "该应用需要获取你的日历,以便更好的体验",
-                    "NSContactsUsageDescription" : "该应用需要读取你的通讯录,以便联系同事",
-                    "NSBluetoothPeripheralUsageDescription" : "该应用需要你的蓝牙,以便读取相关蓝牙设备",
-                    "NFCReaderUsageDescription" : "",
-                    "NSBluetoothAlwaysUsageDescription" : "该应用需要你的蓝牙,以便读取相关蓝牙设备"
+            "ios": {
+                "dSYMs": false,
+                "privacyDescription": {
+                    "NSPhotoLibraryUsageDescription": "该应用需要读取你的相册,用于上传头像",
+                    "NSPhotoLibraryAddUsageDescription": "该应用需要读取你的相册,用于拍照保存图片",
+                    "NSCameraUsageDescription": "该应用需要你的相机,用于你拍摄上传头像信息",
+                    "NSMicrophoneUsageDescription": "该应用需要使用你的麦克风,用于语音播放",
+                    "NSLocationWhenInUseUsageDescription": "该应用需要你的地理位置,用于天气、签到等功能",
+                    "NSLocationAlwaysUsageDescription": "该应用需要持续获取用户地理位置,用于天气、签到等功能",
+                    "NSLocationAlwaysAndWhenInUseUsageDescription": "该应用需要你的地理位置,用于天气、签到等功能",
+                    "NSCalendarsUsageDescription": "该应用需要获取你的日历,以便更好的体验",
+                    "NSContactsUsageDescription": "该应用需要读取你的通讯录,以便联系同事",
+                    "NSBluetoothPeripheralUsageDescription": "该应用需要你的蓝牙,以便读取相关蓝牙设备",
+                    "NFCReaderUsageDescription": "",
+                    "NSBluetoothAlwaysUsageDescription": "该应用需要你的蓝牙,以便读取相关蓝牙设备"
                 },
-                "UIBackgroundModes" : ""
+                "UIBackgroundModes": ""
             },
-            "sdkConfigs" : {
-                "ad" : {},
-                "maps" : {
-                    "amap" : {
-                        "appkey_ios" : "fb35d03fbb17cbf7a8743a522da3c7fc",
-                        "appkey_android" : "ffc71dfd4e576596027f8f45a1b8fb2f",
-                        "name" : "amapBOujshtbA"
+            "sdkConfigs": {
+                "ad": {},
+                "maps": {
+                    "amap": {
+                        "appkey_ios": "fb35d03fbb17cbf7a8743a522da3c7fc",
+                        "appkey_android": "ffc71dfd4e576596027f8f45a1b8fb2f",
+                        "name": "amapBOujshtbA"
                     }
                 },
-                "geolocation" : {
-                    "system" : {
-                        "__platform__" : [ "ios", "android" ]
+                "geolocation": {
+                    "system": {
+                        "__platform__": [
+                            "ios",
+                            "android"
+                        ]
                     },
-                    "amap" : {
-                        "__platform__" : [ "ios", "android" ],
-                        "appkey_ios" : "fb35d03fbb17cbf7a8743a522da3c7fc",
-                        "appkey_android" : "ffc71dfd4e576596027f8f45a1b8fb2f",
-                        "name" : "amapBOujshtbA"
+                    "amap": {
+                        "__platform__": [
+                            "ios",
+                            "android"
+                        ],
+                        "appkey_ios": "fb35d03fbb17cbf7a8743a522da3c7fc",
+                        "appkey_android": "ffc71dfd4e576596027f8f45a1b8fb2f",
+                        "name": "amapBOujshtbA"
                     }
                 },
-                "push" : {
-                    "unipush" : {
-                        "version" : "2",
-                        "offline" : true,
-                        "icons" : {
-                            "small" : {
-                                "hdpi" : "unpackage/res/push/36x36.png",
-                                "ldpi" : "unpackage/res/push/18x18.png",
-                                "mdpi" : "unpackage/res/push/24x24.png",
-                                "xhdpi" : "unpackage/res/push/48x48.png",
-                                "xxhdpi" : "unpackage/res/push/72x72.png"
+                "push": {
+                    "unipush": {
+                        "version": "2",
+                        "offline": true,
+                        "icons": {
+                            "small": {
+                                "hdpi": "unpackage/res/push/36x36.png",
+                                "ldpi": "unpackage/res/push/18x18.png",
+                                "mdpi": "unpackage/res/push/24x24.png",
+                                "xhdpi": "unpackage/res/push/48x48.png",
+                                "xxhdpi": "unpackage/res/push/72x72.png"
                             }
                         }
                     }
                 }
             },
-            "icons" : {
-                "android" : {
-                    "hdpi" : "unpackage/res/icons/72x72.png",
-                    "xhdpi" : "unpackage/res/icons/96x96.png",
-                    "xxhdpi" : "unpackage/res/icons/144x144.png",
-                    "xxxhdpi" : "unpackage/res/icons/192x192.png"
+            "icons": {
+                "android": {
+                    "hdpi": "unpackage/res/icons/72x72.png",
+                    "xhdpi": "unpackage/res/icons/96x96.png",
+                    "xxhdpi": "unpackage/res/icons/144x144.png",
+                    "xxxhdpi": "unpackage/res/icons/192x192.png"
                 },
-                "ios" : {
-                    "appstore" : "unpackage/res/icons/1024x1024.png",
-                    "ipad" : {
-                        "app" : "unpackage/res/icons/76x76.png",
-                        "app@2x" : "unpackage/res/icons/152x152.png",
-                        "notification" : "unpackage/res/icons/20x20.png",
-                        "notification@2x" : "unpackage/res/icons/40x40.png",
-                        "proapp@2x" : "unpackage/res/icons/167x167.png",
-                        "settings" : "unpackage/res/icons/29x29.png",
-                        "settings@2x" : "unpackage/res/icons/58x58.png",
-                        "spotlight" : "unpackage/res/icons/40x40.png",
-                        "spotlight@2x" : "unpackage/res/icons/80x80.png"
+                "ios": {
+                    "appstore": "unpackage/res/icons/1024x1024.png",
+                    "ipad": {
+                        "app": "unpackage/res/icons/76x76.png",
+                        "app@2x": "unpackage/res/icons/152x152.png",
+                        "notification": "unpackage/res/icons/20x20.png",
+                        "notification@2x": "unpackage/res/icons/40x40.png",
+                        "proapp@2x": "unpackage/res/icons/167x167.png",
+                        "settings": "unpackage/res/icons/29x29.png",
+                        "settings@2x": "unpackage/res/icons/58x58.png",
+                        "spotlight": "unpackage/res/icons/40x40.png",
+                        "spotlight@2x": "unpackage/res/icons/80x80.png"
                     },
-                    "iphone" : {
-                        "app@2x" : "unpackage/res/icons/120x120.png",
-                        "app@3x" : "unpackage/res/icons/180x180.png",
-                        "notification@2x" : "unpackage/res/icons/40x40.png",
-                        "notification@3x" : "unpackage/res/icons/60x60.png",
-                        "settings@2x" : "unpackage/res/icons/58x58.png",
-                        "settings@3x" : "unpackage/res/icons/87x87.png",
-                        "spotlight@2x" : "unpackage/res/icons/80x80.png",
-                        "spotlight@3x" : "unpackage/res/icons/120x120.png"
+                    "iphone": {
+                        "app@2x": "unpackage/res/icons/120x120.png",
+                        "app@3x": "unpackage/res/icons/180x180.png",
+                        "notification@2x": "unpackage/res/icons/40x40.png",
+                        "notification@3x": "unpackage/res/icons/60x60.png",
+                        "settings@2x": "unpackage/res/icons/58x58.png",
+                        "settings@3x": "unpackage/res/icons/87x87.png",
+                        "spotlight@2x": "unpackage/res/icons/80x80.png",
+                        "spotlight@3x": "unpackage/res/icons/120x120.png"
                     }
                 }
             },
-            "splashscreen" : {
-                "androidStyle" : "default",
-                "android" : {
-                    "hdpi" : "src/static/images/wt/bg.png"
+            "splashscreen": {
+                "androidStyle": "default",
+                "android": {
+                    "hdpi": "src/static/images/wt/bg.png"
                 },
-                "iosStyle" : "common"
+                "iosStyle": "common"
             }
         },
-        "nativePlugins" : {},
-        "safearea" : {
-            "offset" : "none"
+        "nativePlugins": {},
+        "safearea": {
+            "offset": "none"
         }
     },
-    "quickapp" : {},
-    "mp-weixin" : {
-        "appid" : "",
-        "setting" : {
-            "urlCheck" : false,
-            "checkSiteMap" : false
+    "quickapp": {},
+    "mp-weixin": {
+        "appid": "",
+        "setting": {
+            "urlCheck": false,
+            "checkSiteMap": false
         },
-        "usingComponents" : true
+        "usingComponents": true
     },
-    "mp-alipay" : {
-        "usingComponents" : true
+    "mp-alipay": {
+        "usingComponents": true
     },
-    "mp-baidu" : {
-        "usingComponents" : true
+    "mp-baidu": {
+        "usingComponents": true
     },
-    "mp-toutiao" : {
-        "usingComponents" : true
+    "mp-toutiao": {
+        "usingComponents": true
     },
-    "uniStatistics" : {
-        "enable" : false
+    "uniStatistics": {
+        "enable": false
     },
-    "h5" : {
-        "publicPath" : "./",
-        "title" : "综合智慧云",
-        "router" : {
-            "mode" : "hash"
+    "h5": {
+        "publicPath": "./",
+        "title": "综合智慧云",
+        "router": {
+            "mode": "hash"
         },
-        "devServer" : {
-            "https" : false,
-            "proxy" : {}
+        "devServer": {
+            "https": false,
+            "proxy": {}
         },
-        "sdkConfigs" : {
-            "maps" : {
-                "amap" : {
-                    "key" : "d4d73a7d572b6ff6028d5f67de62029a",
-                    "securityJsCode" : "be916fcd16d0b33d228c49f0ff096b17",
-                    "serviceHost" : ""
+        "sdkConfigs": {
+            "maps": {
+                "amap": {
+                    "key": "d4d73a7d572b6ff6028d5f67de62029a",
+                    "securityJsCode": "be916fcd16d0b33d228c49f0ff096b17",
+                    "serviceHost": ""
                 }
             }
         },
-        "optimization" : {
-            "treeShaking" : {
-                "enable" : true
+        "optimization": {
+            "treeShaking": {
+                "enable": true
             }
         },
-        "template" : "index.html"
+        "template": "index.html"
     },
-    "vueVersion" : "3",
-    "locale" : "zh-Hans"
-}
+    "vueVersion": "3",
+    "locale": "zh-Hans"
+}

+ 771 - 783
src/pages.json

@@ -1,809 +1,797 @@
 {
-  "pages": [
-    {
-      "path": "pages/index",
-      "style": {
-        "navigationStyle": "custom",
-        "navigationBarTitleText": "工作台",
-        "app-plus": {
-          "bounce": "none",
-          "titleNView": false
-        }
-      }
-    },
-    {
-      "path": "pages/login",
-      "style": {
-        "navigationBarTitleText": "登录",
-        "navigationStyle": "custom",
-        "navigationBarTextStyle": "black" // 仅支持 black/white
-      }
-    },
-    {
-      "path": "pages/register",
-      "style": {
-        "navigationBarTitleText": "注册",
-        "navigationStyle": "custom",
-        "navigationBarTextStyle": "black" // 仅支持 black/white
-      }
-    },
-    {
-      "path": "pages/serveConfigSelect",
-      "style": {
-        "navigationBarTitleText": "服务器配置",
-        "navigationStyle": "custom",
-        "navigationBarTextStyle": "black" // 仅支持 black/white
-      }
-    },
-    {
-      "path": "pages/serveConfig",
-      "style": {
-        "navigationBarTitleText": "服务器配置",
-        "navigationStyle": "custom",
-        "navigationBarTextStyle": "black" // 仅支持 black/white
-      }
-    },
-    {
-      "path": "pages/info",
-      "style": {
-        "navigationBarTitleText": "消息",
-        "navigationStyle": "custom",
-        "enablePullDownRefresh": false,
-        "app-plus": {
-          "bounce": "none",
-          "titleNView": false
-        }
-      }
-    },
-    {
-      "path": "pages/mine",
-      "style": {
-        // "disableScroll": true,
-        "navigationBarTitleText": "我的",
-        "navigationStyle": "custom",
-        "app-plus": {
-          "bounce": "none",
-          "titleNView": false
-        }
-      }
-    }
-  ],
-  "subPackages": [
-    // 公共
-    {
-      "root": "pages/common",
-      "pages": [
-        {
-          "path": "webview/index",
-          "style": {
-            "navigationBarTitleText": "浏览网页"
-          }
-        },
-        {
-          "path": "textview/index",
-          "style": {
-            "navigationBarTitleText": "浏览文本"
-          }
-        },
-        {
-          "path": "square/index",
-          "style": {
-            "navigationBarTitleText": "",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "invoicing/index",
-          "style": {
-            "navigationBarTitleText": "续费提醒",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "phoneVerify/index",
-          "style": {
-            "navigationBarTitleText": "",
-            "navigationBarTextStyle": "black",
-            "navigationBarBackgroundColor": "#FFFFFF"
-          }
-        },
-        {
-          "path": "success/index",
-          "style": {
-            "navigationBarTitleText": "提交成功",
-            "navigationStyle": "custom",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "appMessage/index",
-          "style": {
-            "navigationBarTitleText": "消息列表",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "appMessage/details",
-          "style": {
-            "navigationBarTitleText": "消息详情",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "alarmMessage/index",
-          "style": {
-            "navigationBarTitleText": "告警通知",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "evaluate/index",
-          "style": {
-            "navigationBarTitleText": "服务评价",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "nfc/index",
-          "style": {
-            "navigationBarTitleText": "NFC读取",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "searchSelect/index",
-          "style": {
-            "navigationBarTitleText": "搜索",
-            "navigationStyle": "custom",
-            "enablePullDownRefresh": false,
-            "app-plus": {
-              "bounce": "none",
-              "titleNView": false
+    "pages": [
+        {
+            "path": "pages/index",
+            "style": {
+                "navigationStyle": "custom",
+                "navigationBarTitleText": "工作台",
+                "app-plus": {
+                    "bounce": "none",
+                    "titleNView": false
+                }
             }
-          }
         },
         {
-          "path": "face/index",
-          "style": {
-            "navigationBarTitleText": "人脸识别",
-            "enablePullDownRefresh": false,
-            "navigationStyle": "custom",
-            "app-plus": {
-              "bounce": "none",
-              "titleNView": false
+            "path": "pages/login",
+            "style": {
+                "navigationBarTitleText": "登录",
+                "navigationStyle": "custom",
+                "navigationBarTextStyle": "black"
             }
-          }
-        }
-      ]
-    },
-    // 我的
-    {
-      "root": "pages/mine",
-      "pages": [
-        {
-          "path": "info/index",
-          "style": {
-            "navigationBarTitleText": "我的信息"
-          }
-        },
-        {
-          "path": "msg/index",
-          "style": {
-            "navigationBarTitleText": "消息设置"
-          }
-        },
-        {
-          "path": "secure/index",
-          "style": {
-            "navigationBarTitleText": "账号与安全"
-          }
-        },
-        {
-          "path": "secure/loginLog/index",
-          "style": {
-            "navigationBarTitleText": "登录日志",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "secure/fingerprint/index",
-          "style": {
-            "navigationBarTitleText": "",
-            "navigationBarTextStyle": "black",
-            "navigationBarBackgroundColor": "#FFFFFF"
-          }
         },
         {
-          "path": "avatar/index",
-          "style": {
-            "navigationBarTitleText": "修改头像"
-          }
-        },
-        {
-          "path": "help/index",
-          "style": {
-            "navigationBarTitleText": "常见问题",
-            "navigationStyle": "custom",
-            "app-plus": {
-              "bounce": "none",
-              "titleNView": false
+            "path": "pages/register",
+            "style": {
+                "navigationBarTitleText": "注册",
+                "navigationStyle": "custom",
+                "navigationBarTextStyle": "black"
             }
-          }
         },
         {
-          "path": "about/index",
-          "style": {
-            "navigationBarTitleText": "关于我们",
-            "navigationStyle": "custom",
-            "app-plus": {
-              "bounce": "none",
-              "titleNView": false
+            "path": "pages/serveConfigSelect",
+            "style": {
+                "navigationBarTitleText": "服务器配置",
+                "navigationStyle": "custom",
+                "navigationBarTextStyle": "black"
             }
-          }
-        },
-        {
-          "path": "setting/index",
-          "style": {
-            "navigationBarTitleText": "设置",
-            "enablePullDownRefresh": false
-          }
-        }
-      ]
-    },
-    // 消息
-    {
-      "root": "pages/info",
-      "pages": []
-    },
-    // 智慧安防
-    {
-      "root": "pages/business/zhaf/",
-      "pages": [
-        //巡检模块 开始
-        {
-          "path": "xunJian/xunJian",
-          "style": {
-            "navigationBarTitleText": "巡检",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "xunJian/plan/index",
-          "style": {
-            "navigationBarTitleText": "巡检计划",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "xunJian/plan/components/siteDetails",
-          "style": {
-            "navigationBarTitleText": "站点详情",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "xunJian/plan/components/content",
-          "style": {
-            "navigationBarTitleText": "巡检内容",
-            "enablePullDownRefresh": false
-          }
         },
         {
-          "path": "xunJian/plan/components/report",
-          "style": {
-            "navigationBarTitleText": "巡检上报",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "xunJian/record/index",
-          "style": {
-            "navigationBarTitleText": "巡检记录",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "xunJian/record/recordDetail/index",
-          "style": {
-            "navigationBarTitleText": "巡检记录详情",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "xunJian/collect/index",
-          "style": {
-            "navigationBarTitleText": "点位采集",
-            "navigationStyle": "custom",
-            "enablePullDownRefresh": false,
-            "app-plus": {
-              "bounce": "none",
-              "titleNView": false
+            "path": "pages/serveConfig",
+            "style": {
+                "navigationBarTitleText": "服务器配置",
+                "navigationStyle": "custom",
+                "navigationBarTextStyle": "black"
             }
-          }
-        },
-        {
-          "path": "xunJian/collect/components/collectDetail",
-          "style": {
-            "navigationBarTitleText": "采集上报",
-            "enablePullDownRefresh": false
-          }
         },
         {
-          "path": "xunJian/collect/components/collectRecord",
-          "style": {
-            "navigationBarTitleText": "采集记录",
-            "navigationStyle": "custom",
-            "enablePullDownRefresh": false,
-            "app-plus": {
-              "bounce": "none",
-              "titleNView": false
+            "path": "pages/info",
+            "style": {
+                "navigationBarTitleText": "消息",
+                "navigationStyle": "custom",
+                "enablePullDownRefresh": false,
+                "app-plus": {
+                    "bounce": "none",
+                    "titleNView": false
+                }
             }
-          }
-        },
-        {
-          "path": "xunJian/error/index",
-          "style": {
-            "navigationBarTitleText": "异常上报",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "xunJian/error/errorList",
-          "style": {
-            "navigationBarTitleText": "异常列表",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "xunJian/error/errorListDetail",
-          "style": {
-            "navigationBarTitleText": "事件详情",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "xunJian/error/errorDisposition",
-          "style": {
-            "navigationBarTitleText": "处置内容",
-            "enablePullDownRefresh": false
-          }
-        },
-        //巡检模块 结束
-        //人员签到 开始
-        {
-          "path": "signIn/index",
-          "style": {
-            "navigationBarTitleText": "人员签到",
-            "enablePullDownRefresh": false
-          }
-        }
-        //人员签到 签退
-      ]
-    },
-    // 闵行消防
-    {
-      "root": "pages/business/mhxf/",
-      "pages": [
-        {
-          "path": "informationSelect/index",
-          "style": {
-            "navigationBarTitleText": "信息查询",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "deviceManage/index",
-          "style": {
-            "navigationBarTitleText": "设备管理",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "coordination/index",
-          "style": {
-            "navigationBarTitleText": "协同作战地图",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "unitInfoCollection/index",
-          "style": {
-            "navigationBarTitleText": "单位信息采集",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "fireReport/index",
-          "style": {
-            "navigationBarTitleText": "消防报告",
-            "enablePullDownRefresh": false
-          }
         },
         {
-          "path": "fireReport/components/detailed",
-          "style": {
-            "navigationBarTitleText": "消防报告",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "fireReport/components/detailedPath",
-          "style": {
-            "navigationBarTitleText": "消防报告",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "needMatter/index",
-          "style": {
-            "navigationBarTitleText": "待办事项",
-            "enablePullDownRefresh": false
-          }
-        }
-      ]
-    },
-    // 智慧消防
-    {
-      "root": "pages/business/zhxf/",
-      "pages": [
-        {
-          "path": "messagePush/index",
-          "style": {
-            "navigationBarTitleText": "消息推送设置",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "building/index",
-          "style": {
-            "navigationBarTitleText": "建筑管理",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "fireInspect/index",
-          "style": {
-            "navigationBarTitleText": "消防督察单",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "fireInspect/inspectDetailsList/index",
-          "style": {
-            "navigationBarTitleText": "",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "fireInspect/inspectDetails/index",
-          "style": {
-            "navigationBarTitleText": "消防督察单处理",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "funReport/index",
-          "style": {
-            "navigationBarTitleText": "功能报备",
-            "enablePullDownRefresh": false,
-            "onReachBottomDistance": 100 //距离底部多远时触发 单位px
-          }
-        },
-        {
-          "path": "funReport/funcAdd/index",
-          "style": {
-            "navigationBarTitleText": "功能报备新增",
-            "enablePullDownRefresh": false
-          }
+            "path": "pages/mine",
+            "style": {
+                "navigationBarTitleText": "我的",
+                "navigationStyle": "custom",
+                "app-plus": {
+                    "bounce": "none",
+                    "titleNView": false
+                }
+            }
         }
-      ]
-    },
-    // 消防物联网
-    {
-      "root": "pages/business/fireIot/",
-      "pages": [
-        {
-          "path": "deviceManage/index",
-          "style": {
-            "navigationBarTitleText": "设备管理",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "deviceManage/components/deviceDetailsList",
-          "style": {
-            "navigationBarTitleText": "",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "deviceManage/components/deviceDetails",
-          "style": {
-            "navigationBarTitleText": "设备详情",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "facilitiesGather/index",
-          "style": {
-            "navigationBarTitleText": "设施采集",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "facilitiesGather/mapGather",
-          "style": {
-            "navigationBarTitleText": "地图采集",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "facilitiesManage/index",
-          "style": {
-            "navigationBarTitleText": "设施管理",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "facilitiesManage/mapFacilitiesView",
-          "style": {
-            "navigationBarTitleText": "设施查看",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "facilitiesManage/facilitiesDetailsList",
-          "style": {
-            "navigationBarTitleText": "",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "facilitiesManage/facilitiesDetails",
-          "style": {
-            "navigationBarTitleText": "设施详情",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "alarmManage/index",
-          "style": {
-            "navigationBarTitleText": "告警管理",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "alarmManage/alarmDetailsList/index",
-          "style": {
-            "navigationBarTitleText": "",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "alarmManage/alarmDetails/index",
-          "style": {
-            "navigationBarTitleText": "告警处理",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "repairManage/repairDetailsList",
-          "style": {
-            "navigationBarTitleText": "报修列表",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "repairManage/repairDetails",
-          "style": {
-            "navigationBarTitleText": "报修处理",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "customManage/index",
-          "style": {
-            "navigationBarTitleText": "客户管理",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "repairReport/index",
-          "style": {
-            "navigationBarTitleText": "报修申请",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "repairReport/record",
-          "style": {
-            "navigationBarTitleText": "报修历史",
-            "enablePullDownRefresh": false
-          }
+    ],
+    "subPackages": [
+        {
+            "name": "公共模块",
+            "root": "pages/common",
+            "pages": [
+                {
+                    "path": "webview/index",
+                    "style": {
+                        "navigationBarTitleText": "浏览网页"
+                    }
+                },
+                {
+                    "path": "textview/index",
+                    "style": {
+                        "navigationBarTitleText": "浏览文本"
+                    }
+                },
+                {
+                    "path": "square/index",
+                    "style": {
+                        "navigationBarTitleText": "",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "invoicing/index",
+                    "style": {
+                        "navigationBarTitleText": "续费提醒",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "phoneVerify/index",
+                    "style": {
+                        "navigationBarTitleText": "",
+                        "navigationBarTextStyle": "black",
+                        "navigationBarBackgroundColor": "#FFFFFF"
+                    }
+                },
+                {
+                    "path": "success/index",
+                    "style": {
+                        "navigationBarTitleText": "提交成功",
+                        "navigationStyle": "custom",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "appMessage/index",
+                    "style": {
+                        "navigationBarTitleText": "消息列表",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "appMessage/details",
+                    "style": {
+                        "navigationBarTitleText": "消息详情",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "alarmMessage/index",
+                    "style": {
+                        "navigationBarTitleText": "告警通知",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "evaluate/index",
+                    "style": {
+                        "navigationBarTitleText": "服务评价",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "nfc/index",
+                    "style": {
+                        "navigationBarTitleText": "NFC读取",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "searchSelect/index",
+                    "style": {
+                        "navigationBarTitleText": "搜索",
+                        "navigationStyle": "custom",
+                        "enablePullDownRefresh": false,
+                        "app-plus": {
+                            "bounce": "none",
+                            "titleNView": false
+                        }
+                    }
+                },
+                {
+                    "path": "face/index",
+                    "style": {
+                        "navigationBarTitleText": "人脸识别",
+                        "enablePullDownRefresh": false,
+                        "navigationStyle": "custom",
+                        "app-plus": {
+                            "bounce": "none",
+                            "titleNView": false
+                        }
+                    }
+                }
+            ]
+        },
+        {
+            "name": "我的",
+            "root": "pages/mine",
+            "pages": [
+                {
+                    "path": "info/index",
+                    "style": {
+                        "navigationBarTitleText": "我的信息"
+                    }
+                },
+                {
+                    "path": "msg/index",
+                    "style": {
+                        "navigationBarTitleText": "消息设置"
+                    }
+                },
+                {
+                    "path": "secure/index",
+                    "style": {
+                        "navigationBarTitleText": "账号与安全"
+                    }
+                },
+                {
+                    "path": "secure/loginLog/index",
+                    "style": {
+                        "navigationBarTitleText": "登录日志",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "secure/fingerprint/index",
+                    "style": {
+                        "navigationBarTitleText": "",
+                        "navigationBarTextStyle": "black",
+                        "navigationBarBackgroundColor": "#FFFFFF"
+                    }
+                },
+                {
+                    "path": "avatar/index",
+                    "style": {
+                        "navigationBarTitleText": "修改头像"
+                    }
+                },
+                {
+                    "path": "help/index",
+                    "style": {
+                        "navigationBarTitleText": "常见问题",
+                        "navigationStyle": "custom",
+                        "app-plus": {
+                            "bounce": "none",
+                            "titleNView": false
+                        }
+                    }
+                },
+                {
+                    "path": "about/index",
+                    "style": {
+                        "navigationBarTitleText": "关于我们",
+                        "navigationStyle": "custom",
+                        "app-plus": {
+                            "bounce": "none",
+                            "titleNView": false
+                        }
+                    }
+                },
+                {
+                    "path": "setting/index",
+                    "style": {
+                        "navigationBarTitleText": "设置",
+                        "enablePullDownRefresh": false
+                    }
+                }
+            ]
+        },
+        {
+            "name": "智慧安防",
+            "root": "pages/business/zhaf/",
+            "pages": [
+                {
+                    "path": "xunJian/xunJian",
+                    "style": {
+                        "navigationBarTitleText": "巡检",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "xunJian/plan/index",
+                    "style": {
+                        "navigationBarTitleText": "巡检计划",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "xunJian/plan/components/siteDetails",
+                    "style": {
+                        "navigationBarTitleText": "站点详情",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "xunJian/plan/components/content",
+                    "style": {
+                        "navigationBarTitleText": "巡检内容",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "xunJian/plan/components/report",
+                    "style": {
+                        "navigationBarTitleText": "巡检上报",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "xunJian/record/index",
+                    "style": {
+                        "navigationBarTitleText": "巡检记录",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "xunJian/record/recordDetail/index",
+                    "style": {
+                        "navigationBarTitleText": "巡检记录详情",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "xunJian/collect/index",
+                    "style": {
+                        "navigationBarTitleText": "点位采集",
+                        "navigationStyle": "custom",
+                        "enablePullDownRefresh": false,
+                        "app-plus": {
+                            "bounce": "none",
+                            "titleNView": false
+                        }
+                    }
+                },
+                {
+                    "path": "xunJian/collect/components/collectDetail",
+                    "style": {
+                        "navigationBarTitleText": "采集上报",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "xunJian/collect/components/collectRecord",
+                    "style": {
+                        "navigationBarTitleText": "采集记录",
+                        "navigationStyle": "custom",
+                        "enablePullDownRefresh": false,
+                        "app-plus": {
+                            "bounce": "none",
+                            "titleNView": false
+                        }
+                    }
+                },
+                {
+                    "path": "xunJian/error/index",
+                    "style": {
+                        "navigationBarTitleText": "异常上报",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "xunJian/error/errorList",
+                    "style": {
+                        "navigationBarTitleText": "异常列表",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "xunJian/error/errorListDetail",
+                    "style": {
+                        "navigationBarTitleText": "事件详情",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "xunJian/error/errorDisposition",
+                    "style": {
+                        "navigationBarTitleText": "处置内容",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "signIn/index",
+                    "style": {
+                        "navigationBarTitleText": "人员签到",
+                        "enablePullDownRefresh": false
+                    }
+                }
+            ]
+        },
+        {
+            "name": "闵行消防",
+            "root": "pages/business/mhxf/",
+            "pages": [
+                {
+                    "path": "informationSelect/index",
+                    "style": {
+                        "navigationBarTitleText": "信息查询",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "deviceManage/index",
+                    "style": {
+                        "navigationBarTitleText": "设备管理",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "coordination/index",
+                    "style": {
+                        "navigationBarTitleText": "协同作战地图",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "unitInfoCollection/index",
+                    "style": {
+                        "navigationBarTitleText": "单位信息采集",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "fireReport/index",
+                    "style": {
+                        "navigationBarTitleText": "消防报告",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "fireReport/components/detailed",
+                    "style": {
+                        "navigationBarTitleText": "消防报告",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "fireReport/components/detailedPath",
+                    "style": {
+                        "navigationBarTitleText": "消防报告",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "needMatter/index",
+                    "style": {
+                        "navigationBarTitleText": "待办事项",
+                        "enablePullDownRefresh": false
+                    }
+                }
+            ]
+        },
+        {
+            "name": "智慧消防",
+            "root": "pages/business/zhxf/",
+            "pages": [
+                {
+                    "path": "messagePush/index",
+                    "style": {
+                        "navigationBarTitleText": "消息推送设置",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "building/index",
+                    "style": {
+                        "navigationBarTitleText": "建筑管理",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "fireInspect/index",
+                    "style": {
+                        "navigationBarTitleText": "消防督察单",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "fireInspect/inspectDetailsList/index",
+                    "style": {
+                        "navigationBarTitleText": "",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "fireInspect/inspectDetails/index",
+                    "style": {
+                        "navigationBarTitleText": "消防督察单处理",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "funReport/index",
+                    "style": {
+                        "navigationBarTitleText": "功能报备",
+                        "enablePullDownRefresh": false,
+                        "onReachBottomDistance": 100
+                    }
+                },
+                {
+                    "path": "funReport/funcAdd/index",
+                    "style": {
+                        "navigationBarTitleText": "功能报备新增",
+                        "enablePullDownRefresh": false
+                    }
+                }
+            ]
+        },
+        {
+            "name": "消防物联网",
+            "root": "pages/business/fireIot/",
+            "pages": [
+                {
+                    "path": "deviceManage/index",
+                    "style": {
+                        "navigationBarTitleText": "设备管理",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "deviceManage/components/deviceDetailsList",
+                    "style": {
+                        "navigationBarTitleText": "",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "deviceManage/components/deviceDetails",
+                    "style": {
+                        "navigationBarTitleText": "设备详情",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "facilitiesGather/index",
+                    "style": {
+                        "navigationBarTitleText": "设施采集",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "facilitiesGather/mapGather",
+                    "style": {
+                        "navigationBarTitleText": "地图采集",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "facilitiesManage/index",
+                    "style": {
+                        "navigationBarTitleText": "设施管理",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "facilitiesManage/mapFacilitiesView",
+                    "style": {
+                        "navigationBarTitleText": "设施查看",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "facilitiesManage/facilitiesDetailsList",
+                    "style": {
+                        "navigationBarTitleText": "",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "facilitiesManage/facilitiesDetails",
+                    "style": {
+                        "navigationBarTitleText": "设施详情",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "alarmManage/index",
+                    "style": {
+                        "navigationBarTitleText": "告警管理",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "alarmManage/alarmDetailsList/index",
+                    "style": {
+                        "navigationBarTitleText": "",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "alarmManage/alarmDetails/index",
+                    "style": {
+                        "navigationBarTitleText": "告警处理",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "repairManage/repairDetailsList",
+                    "style": {
+                        "navigationBarTitleText": "报修列表",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "repairManage/repairDetails",
+                    "style": {
+                        "navigationBarTitleText": "报修处理",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "customManage/index",
+                    "style": {
+                        "navigationBarTitleText": "客户管理",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "repairReport/index",
+                    "style": {
+                        "navigationBarTitleText": "报修申请",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "repairReport/record",
+                    "style": {
+                        "navigationBarTitleText": "报修历史",
+                        "enablePullDownRefresh": false
+                    }
+                }
+            ]
+        },
+        {
+            "name": "业务公共模块",
+            "root": "pages/business/common/",
+            "pages": [
+                {
+                    "path": "fastMail/index",
+                    "style": {
+                        "navigationBarTitleText": "我的快递",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "videoMonitor/videoList",
+                    "style": {
+                        "navigationBarTitleText": "视频监测列表",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "videoMonitor/videoDetail",
+                    "style": {
+                        "navigationBarTitleText": "实时监控",
+                        "enablePullDownRefresh": false
+                    }
+                },
+                {
+                    "path": "projectMange/record/index",
+                    "style": {
+                        "navigationBarTitleText": "工作报告",
+                        "enablePullDownRefresh": false,
+                        "navigationStyle": "custom",
+                        "app-plus": {
+                            "bounce": "none",
+                            "titleNView": false
+                        }
+                    }
+                },
+                {
+                    "path": "projectMange/record/details",
+                    "style": {
+                        "navigationBarTitleText": "报告详情",
+                        "enablePullDownRefresh": false,
+                        "navigationStyle": "custom",
+                        "app-plus": {
+                            "bounce": "none",
+                            "titleNView": false
+                        }
+                    }
+                },
+                {
+                    "path": "projectMange/overview/index",
+                    "style": {
+                        "navigationBarTitleText": "项目概览",
+                        "enablePullDownRefresh": false,
+                        "navigationStyle": "custom",
+                        "app-plus": {
+                            "bounce": "none",
+                            "titleNView": false
+                        }
+                    }
+                },
+                {
+                    "path": "projectMange/record/timingLog",
+                    "style": {
+                        "navigationBarTitleText": "定时日志",
+                        "enablePullDownRefresh": false,
+                        "navigationStyle": "custom",
+                        "app-plus": {
+                            "bounce": "none",
+                            "titleNView": false
+                        }
+                    }
+                },
+                {
+                    "path": "projectMange/write/index",
+                    "style": {
+                        "navigationBarTitleText": "报告填写",
+                        "enablePullDownRefresh": false,
+                        "navigationStyle": "custom",
+                        "app-plus": {
+                            "bounce": "none",
+                            "titleNView": false
+                        }
+                    }
+                },
+                {
+                    "path": "projectMange/write/insert",
+                    "style": {
+                        "navigationBarTitleText": "",
+                        "enablePullDownRefresh": false,
+                        "navigationStyle": "custom",
+                        "app-plus": {
+                            "bounce": "none",
+                            "titleNView": false
+                        }
+                    }
+                },
+                {
+                    "path": "projectMange/list/index",
+                    "style": {
+                        "navigationBarTitleText": "项目列表",
+                        "enablePullDownRefresh": false,
+                        "navigationStyle": "custom",
+                        "app-plus": {
+                            "bounce": "none",
+                            "titleNView": false
+                        }
+                    }
+                },
+                {
+                    "path": "projectMange/list/addEdit",
+                    "style": {
+                        "navigationBarTitleText": "",
+                        "enablePullDownRefresh": false,
+                        "navigationStyle": "custom",
+                        "app-plus": {
+                            "bounce": "none",
+                            "titleNView": false
+                        }
+                    }
+                },
+                {
+                    "path": "projectMange/mall/index",
+                    "style": {
+                        "navigationBarTitleText": "选择接收人",
+                        "enablePullDownRefresh": false,
+                        "navigationStyle": "custom",
+                        "app-plus": {
+                            "bounce": "none",
+                            "titleNView": false
+                        }
+                    }
+                }
+            ]
         }
-      ]
+    ],
+    "globalStyle": {
+        "navigationBarTextStyle": "white",
+        "navigationBarTitleText": "uni-app",
+        "backgroundColor": "#F8F8F8"
     },
-    // 业务公共模块
-    {
-      "root": "pages/business/common/",
-      "pages": [
-        {
-          "path": "fastMail/index",
-          "style": {
-            "navigationBarTitleText": "我的快递",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "videoMonitor/videoList",
-          "style": {
-            "navigationBarTitleText": "视频监测列表",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "videoMonitor/videoDetail",
-          "style": {
-            "navigationBarTitleText": "实时监控",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
-          "path": "projectMange/record/index",
-          "style": {
-            "navigationBarTitleText": "工作报告",
-            "enablePullDownRefresh": false,
-            "navigationStyle": "custom",
-            "app-plus": {
-              "bounce": "none",
-              "titleNView": false
+    "tabBar": {
+        "fontSize": "12px",
+        "color": "#a9a9a9",
+        "selectedColor": "#000000",
+        "borderStyle": "white",
+        "backgroundColor": "#ffffff",
+        "list": [
+            {
+                "pagePath": "pages/index",
+                "iconPath": "/static/images/tabBar/tab-home.png",
+                "selectedIconPath": "/static/images/tabBar/tab-home-blue.png",
+                "text": "工作台",
+                "visible": false
+            },
+            {
+                "pagePath": "pages/info",
+                "iconPath": "/static/images/tabBar/tab-info.png",
+                "selectedIconPath": "/static/images/tabBar/tab-info-blue.png",
+                "text": "消息",
+                "visible": false
+            },
+            {
+                "pagePath": "pages/mine",
+                "iconPath": "/static/images/tabBar/tab-my.png",
+                "selectedIconPath": "/static/images/tabBar/tab-my-blue.png",
+                "text": "我的",
+                "visible": false
             }
-          }
-        },
-        {
-          "path": "projectMange/record/details",
-          "style": {
-            "navigationBarTitleText": "报告详情",
-            "enablePullDownRefresh": false,
-            "navigationStyle": "custom",
-            "app-plus": {
-              "bounce": "none",
-              "titleNView": false
-            }
-          }
-        },
-        {
-          "path": "projectMange/overview/index",
-          "style": {
-            "navigationBarTitleText": "项目概览",
-            "enablePullDownRefresh": false,
-            "navigationStyle": "custom",
-            "app-plus": {
-              "bounce": "none",
-              "titleNView": false
-            }
-          }
-        },
-        {
-          "path": "projectMange/record/timingLog",
-          "style": {
-            "navigationBarTitleText": "定时日志",
-            "enablePullDownRefresh": false,
-            "navigationStyle": "custom",
-            "app-plus": {
-              "bounce": "none",
-              "titleNView": false
-            }
-          }
-        },
-        {
-          "path": "projectMange/write/index",
-          "style": {
-            "navigationBarTitleText": "报告填写",
-            "enablePullDownRefresh": false,
-            "navigationStyle": "custom",
-            "app-plus": {
-              "bounce": "none",
-              "titleNView": false
-            }
-          }
-        },
-        {
-          "path": "projectMange/write/insert",
-          "style": {
-            "navigationBarTitleText": "",
-            "enablePullDownRefresh": false,
-            "navigationStyle": "custom",
-            "app-plus": {
-              "bounce": "none",
-              "titleNView": false
-            }
-          }
-        },
-        {
-          "path": "projectMange/list/index",
-          "style": {
-            "navigationBarTitleText": "项目列表",
-            "enablePullDownRefresh": false,
-            "navigationStyle": "custom",
-            "app-plus": {
-              "bounce": "none",
-              "titleNView": false
-            }
-          }
-        },
-        {
-          "path": "projectMange/list/addEdit",
-          "style": {
-            "navigationBarTitleText": "",
-            "enablePullDownRefresh": false,
-            "navigationStyle": "custom",
-            "app-plus": {
-              "bounce": "none",
-              "titleNView": false
-            }
-          }
-        },
-        {
-          "path": "projectMange/mall/index",
-          "style": {
-            "navigationBarTitleText": "选择接收人",
-            "enablePullDownRefresh": false,
-            "navigationStyle": "custom",
-            "app-plus": {
-              "bounce": "none",
-              "titleNView": false
+        ]
+    },
+    "condition": {
+        "current": 0,
+        "list": [
+            {
+                "name": "",
+                "path": "pages/login",
+                "query": ""
             }
-          }
-        }
-      ]
+        ]
     }
-  ],
-  "globalStyle": {
-    "navigationBarTextStyle": "white",
-    "navigationBarTitleText": "uni-app",
-    // "navigationBarBackgroundColor": "#000000",
-    "backgroundColor": "#F8F8F8"
-  },
-  "tabBar": {
-    "fontSize": "12px",
-    "color": "#a9a9a9",
-    "selectedColor": "#000000",
-    "borderStyle": "white",
-    "backgroundColor": "#ffffff",
-    "list": [
-      {
-        "pagePath": "pages/index",
-        "iconPath": "/static/images/tabBar/tab-home.png",
-        "selectedIconPath": "/static/images/tabBar/tab-home-blue.png",
-        "text": "工作台",
-        "visible": false
-      },
-      {
-        "pagePath": "pages/info",
-        "iconPath": "/static/images/tabBar/tab-info.png",
-        "selectedIconPath": "/static/images/tabBar/tab-info-blue.png",
-        "text": "消息",
-        "visible": false
-      },
-      {
-        "pagePath": "pages/mine",
-        "iconPath": "/static/images/tabBar/tab-my.png",
-        "selectedIconPath": "/static/images/tabBar/tab-my-blue.png",
-        "text": "我的",
-        "visible": false
-      }
-    ]
-  },
-  "condition": {
-    //模式配置,仅开发期间生效
-    "current": 0, //当前激活的模式(list 的索引项)
-    "list": [
-      {
-        "name": "", //模式名称
-        "path": "pages/login", //启动页面,必选
-        "query": "" //启动参数,在页面的onLoad函数里面得到
-      }
-    ]
-  }
 }

+ 2 - 2
src/pages/common/face/index.vue

@@ -102,7 +102,7 @@ const { webviewStyles, meetingRoomList, modal, picker, form } = toRefs(state);
 
 // 初始化
 function init() {
-  var storage = uni.getStorageSync("faceStorage");
+  var storage = uni.getStorageSync("storage_face");
   if (storage) {
     state.form.linkUrl = storage.linkUrl.indexOf(":") != -1 ? storage.linkUrl.split(":")[0] : storage.linkUrl;
     state.form.port = storage.port ? storage.port : "";
@@ -344,7 +344,7 @@ function modalConfirm() {
     return;
   }
 
-  uni.setStorageSync("faceStorage", state.form);
+  uni.setStorageSync("storage_face", state.form);
   getMeetingRoomReservationList();
   state.modal.show = false;
 }

+ 28 - 1
src/pages/login.vue

@@ -73,6 +73,24 @@
       </view>
     </view>
   </u-modal>
+
+  <u-modal
+    :show="xunJianStore.modal.show"
+    title="提醒"
+    :zoom="false"
+    :showConfirmButton="true"
+    :showCancelButton="true"
+    :closeOnClickOverlay="true"
+    @confirm="xunJianStore.modalConfirm"
+    @cancel="xunJianStore.modal.show = false"
+    @close="xunJianStore.modal.show = false"
+  >
+    <view class="slot-content">
+      <view class="mb20">
+        <u-input v-model="xunJianStore.modal.exitPassword" placeholder="霸屏退出密码(必填)" border="bottom" style="padding: 6px 0px" />
+      </view>
+    </view>
+  </u-modal>
 </template>
 
 <script setup>
@@ -82,7 +100,7 @@ import { reactive, getCurrentInstance, toRefs, inject, nextTick } from "vue";
 /*----------------------------------接口引入-----------------------------------*/
 /*----------------------------------组件引入-----------------------------------*/
 /*----------------------------------store引入-----------------------------------*/
-import { useStores, commonStores } from "@/store/modules/index";
+import { useStores, commonStores, xunJianStores } from "@/store/modules/index";
 /*----------------------------------公共方法引入-----------------------------------*/
 import config from "@/config";
 import { storageSystem } from "@/utils/storage";
@@ -90,6 +108,7 @@ import { storageSystem } from "@/utils/storage";
 const { proxy } = getCurrentInstance();
 const useStore = useStores();
 const commonStore = commonStores();
+const xunJianStore = xunJianStores();
 /*----------------------------------变量声明-----------------------------------*/
 const state = reactive({
   /** login数据 */
@@ -283,6 +302,14 @@ onLoad((options) => {});
 </script>
 
 <style lang="scss" scoped>
+:deep() {
+  .u-modal {
+    .slot-content {
+      font-size: 16px;
+      width: 100%;
+    }
+  }
+}
 .login-container {
   position: fixed;
   top: 0;

+ 1 - 0
src/permission.js

@@ -21,6 +21,7 @@ const whiteList = [
   "/pages/common/evaluate/record",//服务评价
   "/pages/common/NFC/index",//NFC读取
   "/pages/common/appMessage/details",//消息详情
+  "/pages/common/face/index",//人脸识别
 ];
 
 // 检查地址白名单

+ 18 - 21
src/plugins/common.plugins.js

@@ -71,31 +71,28 @@ export default {
       }
     });
   },
-
-
-    /**
+  /**
    * 树结构过滤
    * @param {*} treeData 
    * @param {*} ids 
    * @returns 
    */
-    findTreeNodes(treeData, ids) {
-      const result = [];
-      const findNodes_ = (nodes, idArray) => {
-        nodes.forEach(node => {
-          if (idArray.includes(node.id)) {
-            result.push(node);
-          }
-          if (node.children && node.children.length > 0) {
-            findNodes_(node.children, idArray);
-          }
-        });
-      };
-     
-      findNodes_(treeData, ids);
-      return result;
-    },
-  
+  findTreeNodes(treeData, ids) {
+    const result = [];
+    const findNodes_ = (nodes, idArray) => {
+      nodes.forEach(node => {
+        if (idArray.includes(node.id)) {
+          result.push(node);
+        }
+        if (node.children && node.children.length > 0) {
+          findNodes_(node.children, idArray);
+        }
+      });
+    };
+
+    findNodes_(treeData, ids);
+    return result;
+  },
   /**
    * @复制粘贴板
    * @param {传入值} content 
@@ -305,5 +302,5 @@ export default {
     if (data && data.length > 0) {
       uni.previewImage(param)
     }
-  }
+  },
 };

+ 5 - 0
src/plugins/index.js

@@ -6,6 +6,7 @@ import setting from "./setting.plugins";
 import time from "./time.plugins.js";
 import constData from "./constData.plugins.js";
 import nfc from "./nfc.plugins.js";
+import keyListen from "./keyListen.plugins.js";
 
 import config from "@/config"; // config
 import { useDict } from '@/utils/dict'
@@ -59,5 +60,9 @@ export default {
     app.config.globalProperties.$dayjs = dayjs;
     // 公共字典模块
     app.config.globalProperties.useDict = useDict
+    // 公共物理按钮监听
+    app.provide("$keyListen", keyListen);
+    app.config.globalProperties.$keyListen = keyListen;
+
   },
 };

+ 134 - 0
src/plugins/keyListen.plugins.js

@@ -0,0 +1,134 @@
+import { xunJianStores } from "@/store/modules/index";
+
+const SYSTEM_REASON = "reason";
+//Home键
+const SYSTEM_HOME_KEY = "homekey";
+//最近使用的应用键
+const SYSTEM_RECENT_APPS = "recentapps";
+
+let receiver, Intent = false;
+export default {
+    startListen: function (needStopSystem = false) {//开始监听,初始化
+        //参数needStopSystem默认不阻止系统响应,如需阻止调用startListen(true)
+        /*特别提醒,全面屏手势Home和recent部分机型是监听不到的,自行测试,如遇卡死电脑控制台直接重新运行项目即可解决!*/
+        let that = this;
+        let main = plus.android.runtimeMainActivity();
+        that.openListen();
+        if (needStopSystem) {
+            plus.key.addEventListener("backbutton", function (e) {
+                // main.stopLockTask()//按返回键恢复
+                // main.startLockTask()//阻止系统home建和近期任务键
+                // main.unregisterReceiver(receiver); //同时停止接收home和recent点击
+                const pages = getCurrentPages(); // 获取当前页面栈
+                const currentPage = pages[pages.length - 1]; // 最后一个元素即为当前页面
+                xunJianStores().modal.show = currentPage.route === 'pages/login' ? true : false
+                console.log('监听返回')
+                e.preventDefault();
+            });
+        } else {
+        }
+
+    },
+    openListen: function () {//注册监听
+        let that = this;
+        try {
+            let main = plus.android.runtimeMainActivity();
+            Intent = plus.android.importClass('android.content.Intent');
+            let IntentFilter = plus.android.importClass('android.content.IntentFilter');
+            var filter = new IntentFilter();
+            filter.addAction(Intent.ACTION_SCREEN_ON);
+            filter.addAction(Intent.ACTION_SCREEN_OFF);
+            filter.addAction(Intent.ACTION_USER_PRESENT);
+            filter.addAction(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
+            filter.addAction('android.intent.action.MEDIA_BUTTON');
+            receiver = plus.android.implements('io.dcloud.feature.internal.reflect.BroadcastReceiver', {
+                onReceive: function (context, intent) { //实现onReceiver回调函数  
+                    let act = intent.getAction();
+                    if (act == Intent.ACTION_SCREEN_ON) {
+                        console.log('开屏')
+                    } else if (act == Intent.ACTION_SCREEN_OFF) {
+                        console.log('锁屏')
+                    } else if (act == Intent.ACTION_USER_PRESENT) {
+                        console.log('解锁')
+                    } else if (act == Intent.ACTION_CLOSE_SYSTEM_DIALOGS) {
+                        let systemReason = intent.getStringExtra(SYSTEM_REASON);
+                        console.log("关闭原因", systemReason);
+                        if (systemReason != null) {
+                            if (systemReason == SYSTEM_HOME_KEY) {
+                                // System.out.println("按下HOME键");
+                                console.log('按下HOME键')
+                                that.launchApp();//启动APP
+
+                            } else if (systemReason == SYSTEM_RECENT_APPS) {
+                                // System.out.println("按下多任务键");
+                                console.log('按下多任务键')
+                                that.launchApp();//启动APP
+                            }
+                        }
+                    }
+                    // main.unregisterReceiver(receiver);
+                    /*在这里取消会出现第二次监听无效,可根据不同业务要求
+                    在不同时刻停止接收两个按键的广播,我的处理是在返回的时候停*/
+                    // context.unregisterReceiver(receiver);
+                }
+            });
+            main.registerReceiver(receiver, filter); //注册监听  
+        } catch (e) {
+            console.error(e);
+            that.toast('初始化错误');
+        }
+    },
+    // 全屏函数
+    fullScreen() {
+        // Android全屏
+        if (uni.getSystemInfoSync().platform === "android") {
+            plus.android.invoke("setFullScreen", true);
+        }
+
+        // iOS全屏
+        if (uni.getSystemInfoSync().platform === "ios") {
+            // iOS无法通过API直接全屏,可以尝试隐藏所有导航栏
+            plus.navigator.hideSystemBar();
+        }
+    },
+    // 进入固定屏幕模式
+    stopHomeEmit() {
+        let main = plus.android.runtimeMainActivity();
+        main.stopLockTask()//按返回键恢复
+        main.startLockTask()//阻止系统home建和近期任务键
+    },
+    // 启动APP
+    launchApp() {
+        var isApp = plus.runtime.isApplicationExist({
+            //查看安卓系统手机有没有下载这款app
+            pname: 'android.dcloud.uskyMobile' //本地浏览器的包名
+        })
+
+        if (isApp) {
+            //安装了app则运行
+            plus.runtime.launchApplication(
+                {
+                    pname: "android.dcloud.uskyMobile",
+                    newTask: false
+                },
+                (e) => {
+                    console.log("e", e);
+                }
+            );
+        }
+        plus.runtime.launcher('shortcut');
+        plus.runtime.restart();
+    },
+    // 退出APP
+    quitApp() {
+        plus.runtime.quit();
+    },
+    // 提示
+    toast(content) {
+        uni.showToast({
+            title: content,
+            icon: 'none'
+
+        })
+    }
+}

+ 14 - 1
src/store/modules/setting.js

@@ -294,9 +294,22 @@ const settingStores = defineStore("storage-setting", {
             let platform = uni.getSystemInfoSync().platform; //手机平台
             let data = {
                 _api_key: "fba7440cd37400b6ff46e303896af4df",
-                appKey: platform === "android" ? "cbd3508235d03365f4253f6aae6b68ab" : "4b858fce6367652f5c0959a0444a4bea",
+                appKey: "",
                 buildVersion: config.appInfo.version,
             };
+
+            // 综合智慧云
+            if (config.appInfo.appid === "__UNI__36DE3A0") {
+                data.appKey = platform === "android" ? "cbd3508235d03365f4253f6aae6b68ab" : "4b858fce6367652f5c0959a0444a4bea"
+            }
+            // 智能巡更
+            else if (config.appInfo.appid === "__UNI__BF1A1F0") {
+                data.appKey = platform === "android" ? "d67e04ab2f4b8a1fa01a773692fc666c" : "d67e04ab2f4b8a1fa01a773692fc666c"
+            }
+            // 智能会议
+            else if (config.appInfo.appid === "__UNI__F3963F8") {
+            }
+
             modal.loading("加载中");
             checkUpdates(data).then((res) => {
                 if (res.code == 0) {

+ 25 - 1
src/store/modules/xunJian.js

@@ -5,7 +5,7 @@ import { updatePlan } from "@/api/business/zhaf/xunJian/plan.js";
 // 公共方法引用
 import modal from "@/plugins/modal.plugins.js";
 import common from "@/plugins/common.plugins.js";
-import { storage, storageSystem } from "@/utils/storage";
+import keyListen from "@/plugins/keyListen.plugins.js";
 
 const xunJianStores = defineStore(`storage-xunJian`, {
   state: () => ({
@@ -20,6 +20,12 @@ const xunJianStores = defineStore(`storage-xunJian`, {
 
     collectDataList: [], //巡检点位采集数据存储
     planDataList: [],//巡检计划采集数据存储
+
+    modal: {
+      show: false,
+      exitPassword: "",
+      newExitPassword: "Usky-1707",//系统退出密码
+    }
   }),
   unistorage: true,
   actions: {
@@ -44,6 +50,24 @@ const xunJianStores = defineStore(`storage-xunJian`, {
           }, 1000);
         });
       }
+    },
+    modalConfirm() {
+      //#ifdef APP-PLUS
+      if (!this.modal.exitPassword) {
+        modal.showToast("密码不能为空");
+        return;
+      }
+
+      if (this.modal.exitPassword != this.modal.newExitPassword) {
+        modal.showToast("密码错误");
+        this.modal.show = true;
+        return;
+      }
+
+      this.modal.exitPassword = ""
+      this.modal.show = false;
+      keyListen.quitApp(); //退出APP
+      //#endif
     }
   },
 });

+ 0 - 130
src/utils/keyListen.js

@@ -1,130 +0,0 @@
-// 包路径
-// const package_Activity = 'android.app.Activity'; 
-// const package_Bundle = 'android.os.Bundle'; 
-// const package_MotionEvent = 'android.view.MotionEvent'; 
-// const package_KeyEvent = 'android.view.KeyEvent'; 
-
-
-const SYSTEM_REASON = "reason";
-//Home键
-const SYSTEM_HOME_KEY = "homekey";
-//最近使用的应用键
-const SYSTEM_RECENT_APPS = "recentapps";
-
-let receiver, Intent = false;
-export default {
-	startListen: function (needStopSystem = false) {//开始监听,初始化
-		//参数needStopSystem默认不阻止系统响应,如需阻止调用startListen(true)
-		/*特别提醒,全面屏手势Home和recent部分机型是监听不到的,自行测试,如遇卡死电脑控制台直接重新运行项目即可解决!*/
-		let that = this;
-		let main = plus.android.runtimeMainActivity();
-		that.openListen();
-		if (needStopSystem) {
-			plus.key.addEventListener("backbutton", function (e) {
-				// main.stopLockTask()//按返回键恢复
-				// main.startLockTask()//阻止系统home建和近期任务键
-				// main.unregisterReceiver(receiver); //同时停止接收home和recent点击
-				console.log('监听返回')
-				e.preventDefault();
-			});
-		} else {
-		}
-
-	},
-	openListen: function () {//注册监听
-		let that = this;
-		try {
-			let main = plus.android.runtimeMainActivity();
-			Intent = plus.android.importClass('android.content.Intent');
-			let IntentFilter = plus.android.importClass('android.content.IntentFilter');
-			var filter = new IntentFilter();
-			filter.addAction(Intent.ACTION_SCREEN_ON);
-			filter.addAction(Intent.ACTION_SCREEN_OFF);
-			filter.addAction(Intent.ACTION_USER_PRESENT);
-			filter.addAction(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
-			filter.addAction('android.intent.action.MEDIA_BUTTON');
-			receiver = plus.android.implements('io.dcloud.feature.internal.reflect.BroadcastReceiver', {
-				onReceive: function (context, intent) { //实现onReceiver回调函数  
-					let act = intent.getAction();
-					if (act == Intent.ACTION_SCREEN_ON) {
-						console.log('开屏')
-					} else if (act == Intent.ACTION_SCREEN_OFF) {
-						console.log('锁屏')
-					} else if (act == Intent.ACTION_USER_PRESENT) {
-						console.log('解锁')
-					} else if (act == Intent.ACTION_CLOSE_SYSTEM_DIALOGS) {
-						let systemReason = intent.getStringExtra(SYSTEM_REASON);
-						console.log("关闭原因", systemReason);
-						if (systemReason != null) {
-							if (systemReason == SYSTEM_HOME_KEY) {
-								// System.out.println("按下HOME键");
-								console.log('按下HOME键')
-								that.launchApp();//启动APP
-
-							} else if (systemReason == SYSTEM_RECENT_APPS) {
-								// System.out.println("按下多任务键");
-								console.log('按下多任务键')
-								that.launchApp();//启动APP
-							}
-						}
-					} else if (act == Intent.GLOBAL_ACTION_BACK) {
-						console.log('返回')
-					}
-					// main.unregisterReceiver(receiver);
-					/*在这里取消会出现第二次监听无效,可根据不同业务要求
-					在不同时刻停止接收两个按键的广播,我的处理是在返回的时候停*/
-					// context.unregisterReceiver(receiver);
-				}
-			});
-			main.registerReceiver(receiver, filter); //注册监听  
-		} catch (e) {
-			console.error(e);
-			toast('初始化错误');
-		}
-	},
-	// 全屏函数
-	fullScreen() {
-		// Android全屏
-		if (uni.getSystemInfoSync().platform === "android") {
-			plus.android.invoke("setFullScreen", true);
-		}
-
-		// iOS全屏
-		if (uni.getSystemInfoSync().platform === "ios") {
-			// iOS无法通过API直接全屏,可以尝试隐藏所有导航栏
-			plus.navigator.hideSystemBar();
-		}
-	},
-	stopHomeEmit() {
-		let main = plus.android.runtimeMainActivity();
-		main.stopLockTask()//按返回键恢复
-		main.startLockTask()//阻止系统home建和近期任务键
-	},
-	launchApp() {
-		var isApp = plus.runtime.isApplicationExist({
-			//查看安卓系统手机有没有下载这款app
-			pname: 'android.dcloud.uskyMobile' //本地浏览器的包名
-		})
-
-		if (isApp) {
-			//安装了app则运行
-			plus.runtime.launchApplication(
-				{
-					pname: "android.dcloud.uskyMobile",
-					newTask: false
-				},
-				(e) => {
-					console.log("e", e);
-				}
-			);
-		}
-		plus.runtime.launcher('shortcut');
-		plus.runtime.restart();
-	}
-}
-function toast(content) {
-	uni.showToast({
-		title: content,
-		icon: 'none'
-	})
-}

+ 115 - 0
unpackage/config/setting.js

@@ -0,0 +1,115 @@
+const fs = require('fs');
+
+const args = process.argv.slice(2)[0];
+const filesToModify = ['./src/manifest.json', './src/pages.json'];
+filesToModify.forEach((file) => {
+    fs.readFile(file, 'utf8', function (err, data) {
+        if (err) throw err;
+        let cleanedData = data.replace(/\/\/.*|\/\*[\s\S]*?\*\//g, '');// 使用正则表达式去除单行注释
+        let state = JSON.parse(cleanedData);// 解析JSON数据
+
+        if (file == './src/manifest.json') {
+            if (args === 'zhiHuiYun') {
+                state.name = '综合智慧云'
+                state.appid = '__UNI__36DE3A0'
+                state.description = '综合智慧云APP,是一款助力于企业数字化的应用平台,帮助企业提升办公效率,实现组织数字化和业务数字化。'
+                state.versionName = "2.1.9"
+                state.versionCode = 19
+                state.h5.title = '综合智慧云'
+            } else if (args === 'xunJian') {
+                state.name = '智能巡更'
+                state.appid = '__UNI__BF1A1F0'
+                state.description = '智能巡更app,是一款用于监督和记录巡逻人员按照预定路线和时间进行巡逻的系统。'
+                state.versionName = "2.2.0"
+                state.versionCode = 20
+                state.h5.title = '智能巡更'
+            } else if (args === 'huiYi') {
+                state.name = '智能会议'
+                state.appid = '__UNI__F3963F8'
+                state.description = '智能会议APP,是一款集成了现代信息技术和智能化管理功能的移动应用程序,旨在提升会议体验和管理效率。'
+                state.versionName = "2.0.1"
+                state.versionCode = 1
+                state.h5.title = '智能会议'
+            }
+        } else if ('./src/pages.json') {
+            state.pages = [
+                {
+                    "path": "pages/index",
+                    "style": {
+                        "navigationStyle": "custom",
+                        "navigationBarTitleText": "工作台",
+                        "app-plus": {
+                            "bounce": "none",
+                            "titleNView": false
+                        }
+                    }
+                },
+                {
+                    "path": "pages/login",
+                    "style": {
+                        "navigationBarTitleText": "登录",
+                        "navigationStyle": "custom",
+                        "navigationBarTextStyle": "black"
+                    }
+                },
+                {
+                    "path": "pages/register",
+                    "style": {
+                        "navigationBarTitleText": "注册",
+                        "navigationStyle": "custom",
+                        "navigationBarTextStyle": "black"
+                    }
+                },
+                {
+                    "path": "pages/serveConfigSelect",
+                    "style": {
+                        "navigationBarTitleText": "服务器配置",
+                        "navigationStyle": "custom",
+                        "navigationBarTextStyle": "black"
+                    }
+                },
+                {
+                    "path": "pages/serveConfig",
+                    "style": {
+                        "navigationBarTitleText": "服务器配置",
+                        "navigationStyle": "custom",
+                        "navigationBarTextStyle": "black"
+                    }
+                },
+                {
+                    "path": "pages/info",
+                    "style": {
+                        "navigationBarTitleText": "消息",
+                        "navigationStyle": "custom",
+                        "enablePullDownRefresh": false,
+                        "app-plus": {
+                            "bounce": "none",
+                            "titleNView": false
+                        }
+                    }
+                },
+                {
+                    "path": "pages/mine",
+                    "style": {
+                        "navigationBarTitleText": "我的",
+                        "navigationStyle": "custom",
+                        "app-plus": {
+                            "bounce": "none",
+                            "titleNView": false
+                        }
+                    }
+                }
+            ]
+        }
+
+        // 将修改后的对象转换回JSON字符串
+        const updated = JSON.stringify(state, null, 4);
+
+        // 写入新的配置到manifest.json
+        fs.writeFile(file, updated, 'utf8', function (err) {
+            if (err) throw err;
+            console.log(file + ' updated successfully');
+        });
+    });
+})
+