diff --git a/.stylelintrc.json b/.stylelintrc.json index 64a0abf..3cd2e82 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -5,6 +5,12 @@ "stylelint-config-recess-order", "stylelint-config-html/vue" ], + "overrides": [ + { + "files": ["**/*.(scss|css|vue|html)"], + "customSyntax": "postcss-scss" + } + ], "rules": { "no-descending-specificity": null, "selector-class-pattern": null, @@ -17,204 +23,6 @@ } ], "color-hex-length": null, - "order/properties-order": [ - true, - { - "properties": [ - "position", - "top", - "right", - "bottom", - "left", - "z-index", - "display", - "float", - "width", - "height", - "max-width", - "max-height", - "min-width", - "min-height", - "padding", - "padding-top", - "padding-right", - "padding-bottom", - "padding-left", - "margin", - "margin-top", - "margin-right", - "margin-bottom", - "margin-left", - "margin-collapse", - "margin-top-collapse", - "margin-right-collapse", - "margin-bottom-collapse", - "margin-left-collapse", - "overflow", - "overflow-x", - "overflow-y", - "clip", - "clear", - "font", - "font-family", - "font-size", - "font-smoothing", - "font-style", - "font-weight", - "hyphens", - "src", - "line-height", - "letter-spacing", - "word-spacing", - "color", - "text-align", - "text-decoration", - "text-indent", - "text-overflow", - "text-rendering", - "text-size-adjust", - "text-shadow", - "text-transform", - "word-break", - "word-wrap", - "white-space", - "vertical-align", - "list-style", - "list-style-position", - "list-style-type", - "list-style-image", - "pointer-events", - "cursor", - "background", - "background-attachment", - "background-color", - "background-image", - "background-position", - "background-repeat", - "background-size", - "border", - "border-collapse", - "border-top", - "border-right", - "border-bottom", - "border-left", - "border-color", - "border-image", - "border-top-color", - "border-right-color", - "border-bottom-color", - "border-left-color", - "border-spacing", - "border-style", - "border-width", - "border-top-width", - "border-right-width", - "border-bottom-width", - "border-left-width", - "border-radius", - "border-top-right-radius", - "border-bottom-right-radius", - "border-bottom-left-radius", - "border-top-left-radius", - "border-radius-topright", - "border-radius-bottomright", - "border-radius-bottomleft", - "border-radius-topleft", - "box-shadow", - "transform", - "transform-origin", - "backface-visibility", - "backface-visibility", - "perspective", - "perspective-origin", - "visibility", - "opacity", - "filter", - "isolation", - "object-fit", - "object-position", - "mask", - "mask-image", - "mask-mode", - "mask-position", - "mask-repeat", - "mask-size", - "mask-clip", - "mask-origin", - "mask-composite", - "mask-type", - "mask-border", - "mask-border-source", - "mask-border-slice", - "mask-border-width", - "mask-border-outset", - "mask-border-repeat", - "mask-border-mode", - "mask-box-image", - "mask-box-image-source", - "mask-box-image-slice", - "mask-box-image-width", - "mask-box-image-outset", - "mask-box-image-repeat", - "mask-box-image-mode", - "box-decoration-break", - "background-clip", - "background-origin", - "background-size", - "background-position", - "background-attachment", - "background-repeat", - "background-image", - "box-sizing", - "content", - "quotes", - "counter-reset", - "counter-increment", - "resize", - "user-select", - "nav-index", - "nav-up", - "nav-right", - "nav-down", - "nav-left", - "tab-size", - "outline", - "outline-width", - "outline-style", - "outline-color", - "outline-offset", - "table-layout", - "empty-cells", - "caption-side", - "background-color", - "border-spacing", - "border-collapse", - "speak", - "volume", - "pause", - "pause-before", - "pause-after", - "page-break-before", - "page-break-after", - "page-break-inside", - "orphans", - "widows", - "display", - "flex-direction", - "flex-order", - "flex-grow", - "flex-shrink", - "flex-basis", - "flex-flow", - "flex-wrap", - "flex", - "justify-content", - "align-self", - "align-items", - "align-content" - ] - } - ], "declaration-property-value-no-unknown": [ true, { diff --git a/components/SwitchLoading/SwitchLoading.vue b/components/SwitchLoading/SwitchLoading.vue index ecaf6cc..88cd90f 100644 --- a/components/SwitchLoading/SwitchLoading.vue +++ b/components/SwitchLoading/SwitchLoading.vue @@ -17,7 +17,7 @@ :style="{ width: size * 0.75 - 2 + 'rpx', height: size * 0.75 - 2 + 'rpx' }" > diff --git a/constant/keyType.js b/constant/keyType.js index b72e204..3a681ed 100644 --- a/constant/keyType.js +++ b/constant/keyType.js @@ -1,30 +1,30 @@ export const keysType = { 1: { name: '电子钥匙', - icon: '/static/images/icon_user.png' + icon: 'https://oss-lock.xhjcn.ltd/mp/icon_user.png' }, 2: { name: '密码', - icon: '/static/images/icon_password.png' + icon: 'https://oss-lock.xhjcn.ltd/mp/icon_password.png' }, 3: { name: '指纹', - icon: '/static/images/icon_fingerprint_white.png' + icon: 'https://oss-lock.xhjcn.ltd/mp/icon_fingerprint_white.png' }, 4: { name: '卡', - icon: '/static/images/icon_card_white.png' + icon: 'https://oss-lock.xhjcn.ltd/mp/icon_card_white.png' }, 5: { name: '人脸', - icon: '/static/images/icon_face_white.png' + icon: 'https://oss-lock.xhjcn.ltd/mp/icon_face_white.png' }, 6: { name: '掌静脉', - icon: '/static/images/icon_palm_vein_white.png' + icon: 'https://oss-lock.xhjcn.ltd/mp/icon_palm_vein_white.png' }, 7: { name: '遥控', - icon: '/static/images/icon_remote_white.png' + icon: 'https://oss-lock.xhjcn.ltd/mp/icon_remote_white.png' } } diff --git a/manifest.json b/manifest.json index bbf5df0..d612ddc 100644 --- a/manifest.json +++ b/manifest.json @@ -1,28 +1,30 @@ { - "name" : "wx-starlock", - "appid" : "__UNI__933D519", - "description" : "", - "versionName" : "1.2.0", - "versionCode" : "34", - "transformPx" : false, - /* 小程序特有相关 */ - "mp-weixin" : { - "appid" : "wx9829a39e65550757", - "setting" : { - "urlCheck" : true, - "minified" : true - }, - "permission" : { - "scope.bluetooth" : { - "desc" : "蓝牙将用于控制和管理您的智能门锁" - }, - "scope.userLocation" : { - "desc" : "获取您的位置信息将用于智能门锁的位置服务" - } - }, - "requiredPrivateInfos" : [ "getLocation" ], - "usingComponents" : true, - "lazyCodeLoading" : "requiredComponents" + "name": "wx-starlock", + "appid": "__UNI__933D519", + "description": "", + "versionName": "1.2.0", + "versionCode": "34", + "transformPx": false, + "mp-weixin": { + "appid": "wx9829a39e65550757", + "setting": { + "urlCheck": true, + "minified": true }, - "vueVersion" : "3" + "permission": { + "scope.bluetooth": { + "desc": "蓝牙将用于控制和管理您的智能门锁" + }, + "scope.userLocation": { + "desc": "获取您的位置信息将用于智能门锁的位置服务" + } + }, + "requiredPrivateInfos": ["getLocation"], + "usingComponents": true, + "lazyCodeLoading": "requiredComponents", + "optimization": { + "subPackages": true + } + }, + "vueVersion": "3" } diff --git a/package.json b/package.json index f6fb58f..136b775 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "stylelint-config-standard": "^37.0.0", "unocss": "^65.4.3", "unocss-preset-weapp": "^65.4.1", - "vite-plugin-eslint": "^1.8.1" + "vite-plugin-eslint": "^1.8.1", + "postcss-scss": "^4.0.9" } } diff --git a/pages.json b/pages.json index 6866495..608d6ac 100644 --- a/pages.json +++ b/pages.json @@ -7,520 +7,568 @@ "^u-([^-].*)": "uview-plus/components/u-$1/u-$1.vue" } }, + "subPackages": [ + { + "root": "pages/addDeviceForBluetooth", + "pages": [ + { + "path": "addLockGuid", + "style": { + "navigationBarTitleText": "添加锁", + "disableScroll": true + } + }, + { + "path": "bindLock", + "style": { + "navigationBarTitleText": "添加锁" + } + }, + { + "path": "searchDevice", + "style": { + "disableScroll": true, + "navigationBarTitleText": "附近设备" + } + }, + { + "path": "selectAddress", + "style": { + "navigationBarTitleText": "锁地址", + "disableScroll": true + } + } + ] + }, + { + "root": "pages/user", + "pages": [ + { + "path": "userInfo", + "style": { + "navigationBarTitleText": "个人信息" + } + }, + { + "path": "updateName", + "style": { + "navigationBarTitleText": "修改昵称" + } + }, + { + "path": "updatePassword", + "style": { + "navigationBarTitleText": "重置密码" + } + }, + { + "path": "updateEmail", + "style": { + "navigationBarTitleText": "修改邮箱" + } + }, + { + "path": "verifyEmail", + "style": { + "navigationBarTitleText": "验证邮箱" + } + } + ] + }, + { + "root": "pages/others", + "pages": [ + { + "path": "notificationDetail", + "style": { + "navigationBarTitleText": "消息详情" + } + }, + { + "path": "temporaryDate", + "style": { + "navigationBarTitleText": "修改有效期", + "disableScroll": true + } + }, + { + "path": "webview", + "style": { + "navigationBarTitleText": "介绍" + } + }, + { + "path": "cycleDate", + "style": { + "navigationBarTitleText": "有效期", + "disableScroll": true + } + } + ] + }, + { + "root": "pages/featureForBluetooth", + "pages": [ + { + "path": "createPassword", + "style": { + "disableScroll": true, + "navigationBarTitleText": "获取密码" + } + }, + { + "path": "createPalmVein", + "style": { + "navigationBarTitleText": "添加掌静脉", + "disableScroll": true + } + }, + { + "path": "createFace", + "style": { + "navigationBarTitleText": "添加人脸", + "disableScroll": true + } + }, + { + "path": "createRemote", + "style": { + "navigationBarTitleText": "添加遥控", + "disableScroll": true + } + }, + { + "path": "createFingerprint", + "style": { + "navigationBarTitleText": "添加指纹", + "disableScroll": true + } + }, + { + "path": "createCard", + "style": { + "navigationBarTitleText": "添加卡", + "disableScroll": true + } + }, + { + "path": "typeRecordList", + "style": { + "navigationBarTitleText": "操作记录", + "disableScroll": true + } + }, + { + "path": "recordList", + "style": { + "navigationBarTitleText": "操作记录", + "disableScroll": true + } + }, + { + "path": "cardDetail", + "style": { + "navigationBarTitleText": "卡详情", + "disableScroll": true + } + }, + { + "path": "passwordDetail", + "style": { + "disableScroll": true, + "navigationBarTitleText": "密码详情" + } + }, + { + "path": "palmVeinDetail", + "style": { + "navigationBarTitleText": "掌静脉详情", + "disableScroll": true + } + }, + { + "path": "faceDetail", + "style": { + "navigationBarTitleText": "人脸详情", + "disableScroll": true + } + }, + { + "path": "remoteDetail", + "style": { + "navigationBarTitleText": "遥控详情", + "disableScroll": true + } + }, + { + "path": "fingerprintDetail", + "style": { + "navigationBarTitleText": "指纹详情", + "disableScroll": true + } + }, + { + "path": "palmVeinList", + "style": { + "navigationBarTitleText": "掌静脉", + "disableScroll": true + } + }, + { + "path": "faceList", + "style": { + "navigationBarTitleText": "人脸", + "disableScroll": true + } + }, + { + "path": "remoteList", + "style": { + "navigationBarTitleText": "遥控", + "disableScroll": true + } + }, + { + "path": "fingerprintList", + "style": { + "navigationBarTitleText": "指纹", + "disableScroll": true + } + }, + { + "path": "cardList", + "style": { + "navigationBarTitleText": "卡", + "disableScroll": true + } + }, + { + "path": "bindFace", + "style": { + "navigationBarTitleText": "添加人脸", + "disableScroll": true + } + }, + { + "path": "bindFingerprint", + "style": { + "navigationBarTitleText": "添加指纹", + "disableScroll": true + } + }, + { + "path": "bindCard", + "style": { + "navigationBarTitleText": "添加卡", + "disableScroll": true + } + }, + { + "path": "bindPalmVein", + "style": { + "navigationBarTitleText": "添加掌静脉", + "disableScroll": true + } + }, + { + "path": "bindRemote", + "style": { + "navigationBarTitleText": "添加遥控", + "disableScroll": true + } + }, + { + "path": "passwordList", + "style": { + "disableScroll": true, + "navigationBarTitleText": "密码" + } + }, + { + "path": "recordDetail", + "style": { + "navigationBarTitleText": "操作记录详情", + "disableScroll": true + } + } + ] + }, + { + "root": "pages/settingForBluetooth", + "pages": [ + { + "path": "videoSlot", + "style": { + "navigationBarTitleText": "录像时段", + "disableScroll": true + } + }, + { + "path": "setting", + "style": { + "navigationBarTitleText": "设置" + } + }, + { + "path": "uploadLockData", + "style": { + "navigationBarTitleText": "上传数据", + "disableScroll": true + } + }, + { + "path": "passageMode", + "style": { + "navigationBarTitleText": "常开模式", + "disableScroll": true + } + }, + { + "path": "realTimePicture", + "style": { + "navigationBarTitleText": "实时画面", + "disableScroll": true + } + }, + { + "path": "customCatEye", + "style": { + "navigationBarTitleText": "自定义模式", + "disableScroll": true + } + }, + { + "path": "openDirection", + "style": { + "navigationBarTitleText": "开门方向设置", + "disableScroll": true + } + }, + { + "path": "catEyeMode", + "style": { + "navigationBarTitleText": "猫眼工作模式", + "disableScroll": true + } + }, + { + "path": "catEye", + "style": { + "navigationBarTitleText": "猫眼设置", + "disableScroll": true + } + }, + { + "path": "noticeDetail", + "style": { + "navigationBarTitleText": "家人详情", + "disableScroll": true + } + }, + { + "path": "noticeWay", + "style": { + "navigationBarTitleText": "提醒方式", + "disableScroll": true + } + }, + { + "path": "autoLock", + "style": { + "navigationBarTitleText": "自动闭锁", + "disableScroll": true + } + }, + { + "path": "lockUser", + "style": { + "navigationBarTitleText": "锁用户", + "disableScroll": true + } + }, + { + "path": "lockDate", + "style": { + "navigationBarTitleText": "锁时间", + "disableScroll": true + } + }, + { + "path": "faceSetting", + "style": { + "navigationBarTitleText": "面容开锁设置", + "disableScroll": true + } + }, + { + "path": "lockSound", + "style": { + "navigationBarTitleText": "锁声音", + "disableScroll": true + } + }, + { + "path": "lockInfo", + "style": { + "navigationBarTitleText": "基本信息", + "disableScroll": true + } + }, + { + "path": "notOpenDoor", + "style": { + "navigationBarTitleText": "N天未开门", + "disableScroll": true + } + }, + { + "path": "messageReminder", + "style": { + "navigationBarTitleText": "消息提醒", + "disableScroll": true + } + }, + { + "path": "coercionFingerprint", + "style": { + "navigationBarTitleText": "指纹列表", + "disableScroll": true + } + }, + { + "path": "coercionOpenDoor", + "style": { + "navigationBarTitleText": "胁迫开门", + "disableScroll": true + } + }, + { + "path": "openDoorNotice", + "style": { + "navigationBarTitleText": "家人到家", + "disableScroll": true + } + }, + { + "path": "lowElecNotice", + "style": { + "navigationBarTitleText": "低电量提醒", + "disableScroll": true + } + }, + { + "path": "motorTorsion", + "style": { + "navigationBarTitleText": "电机功率设置", + "disableScroll": true + } + }, + { + "path": "updateSetting", + "style": { + "navigationBarTitleText": "设置", + "disableScroll": true + } + }, + { + "path": "syncElec", + "style": { + "navigationBarTitleText": "电量", + "disableScroll": true + } + }, + { + "path": "selectGroup", + "style": { + "navigationBarTitleText": "选择分组", + "disableScroll": true + } + } + ] + }, + { + "root": "pages/lockUserManage", + "pages": [ + { + "path": "createAdmin", + "style": { + "navigationBarTitleText": "创建授权管理员", + "disableScroll": true + } + }, + { + "path": "keyDetail", + "style": { + "disableScroll": true, + "navigationBarTitleText": "钥匙详情" + } + }, + { + "path": "adminDetail", + "style": { + "navigationBarTitleText": "授权管理员详情", + "disableScroll": true + } + }, + { + "path": "adminList", + "style": { + "navigationBarTitleText": "授权管理员", + "disableScroll": true + } + }, + { + "path": "createKey", + "style": { + "navigationBarTitleText": "发送钥匙" + } + }, + { + "path": "keyList", + "style": { + "disableScroll": true, + "navigationBarTitleText": "电子钥匙" + } + } + ] + } + ], "pages": [ { - "path": "pages/home/home" + "path": "pages/main/home" }, { - "path": "pages/selectAddress/selectAddress", - "style": { - "navigationBarTitleText": "锁地址", - "disableScroll": true - } + "path": "pages/main/mine" }, { - "path": "pages/mine/mine" - }, - { - "path": "pages/userInfo/userInfo", - "style": { - "navigationBarTitleText": "个人信息" - } - }, - { - "path": "pages/updateName/updateName", - "style": { - "navigationBarTitleText": "修改昵称" - } - }, - { - "path": "pages/updatePassword/updatePassword", - "style": { - "navigationBarTitleText": "重置密码" - } - }, - { - "path": "pages/updateEmail/updateEmail", - "style": { - "navigationBarTitleText": "修改邮箱" - } - }, - { - "path": "pages/verifyEmail/verifyEmail", - "style": { - "navigationBarTitleText": "验证邮箱" - } - }, - { - "path": "pages/webview/webview", - "style": { - "navigationBarTitleText": "介绍" - } - }, - { - "path": "pages/lockDetail/lockDetail", - "style": { - "navigationBarTitleText": "星星锁" - } - }, - { - "path": "pages/bindLock/bindLock", - "style": { - "navigationBarTitleText": "添加锁" - } - }, - { - "path": "pages/searchDevice/searchDevice", - "style": { - "disableScroll": true, - "navigationBarTitleText": "附近设备" - } - }, - { - "path": "pages/setting/setting", - "style": { - "navigationBarTitleText": "设置" - } - }, - { - "path": "pages/keyList/keyList", - "style": { - "disableScroll": true, - "navigationBarTitleText": "电子钥匙" - } - }, - { - "path": "pages/createKey/createKey", - "style": { - "navigationBarTitleText": "发送钥匙" - } - }, - { - "path": "pages/passwordList/passwordList", - "style": { - "disableScroll": true, - "navigationBarTitleText": "密码" - } - }, - { - "path": "pages/createPassword/createPassword", - "style": { - "disableScroll": true, - "navigationBarTitleText": "获取密码" - } - }, - { - "path": "pages/passwordDetail/passwordDetail", - "style": { - "disableScroll": true, - "navigationBarTitleText": "密码详情" - } - }, - { - "path": "pages/keyDetail/keyDetail", - "style": { - "disableScroll": true, - "navigationBarTitleText": "钥匙详情" - } - }, - { - "path": "pages/notificationList/notificationList", + "path": "pages/main/notificationList", "style": { "navigationBarTitleText": "通知列表" } }, { - "path": "pages/notificationDetail/notificationDetail", + "path": "pages/main/lockDetail", "style": { - "navigationBarTitleText": "消息详情" - } - }, - { - "path": "pages/addLockGuid/addLockGuid", - "style": { - "navigationBarTitleText": "添加锁", - "disableScroll": true - } - }, - { - "path": "pages/cardList/cardList", - "style": { - "navigationBarTitleText": "卡", - "disableScroll": true - } - }, - { - "path": "pages/createCard/createCard", - "style": { - "navigationBarTitleText": "添加卡", - "disableScroll": true - } - }, - { - "path": "pages/bindCard/bindCard", - "style": { - "navigationBarTitleText": "添加卡", - "disableScroll": true - } - }, - { - "path": "pages/cardDetail/cardDetail", - "style": { - "navigationBarTitleText": "卡详情", - "disableScroll": true - } - }, - { - "path": "pages/fingerprintList/fingerprintList", - "style": { - "navigationBarTitleText": "指纹", - "disableScroll": true - } - }, - { - "path": "pages/createFingerprint/createFingerprint", - "style": { - "navigationBarTitleText": "添加指纹", - "disableScroll": true - } - }, - { - "path": "pages/fingerprintDetail/fingerprintDetail", - "style": { - "navigationBarTitleText": "指纹详情", - "disableScroll": true - } - }, - { - "path": "pages/bindFingerprint/bindFingerprint", - "style": { - "navigationBarTitleText": "添加指纹", - "disableScroll": true - } - }, - { - "path": "pages/faceList/faceList", - "style": { - "navigationBarTitleText": "人脸", - "disableScroll": true - } - }, - { - "path": "pages/createFace/createFace", - "style": { - "navigationBarTitleText": "添加人脸", - "disableScroll": true - } - }, - { - "path": "pages/faceDetail/faceDetail", - "style": { - "navigationBarTitleText": "人脸详情", - "disableScroll": true - } - }, - { - "path": "pages/bindFace/bindFace", - "style": { - "navigationBarTitleText": "添加人脸", - "disableScroll": true - } - }, - { - "path": "pages/remoteList/remoteList", - "style": { - "navigationBarTitleText": "遥控", - "disableScroll": true - } - }, - { - "path": "pages/createRemote/createRemote", - "style": { - "navigationBarTitleText": "添加遥控", - "disableScroll": true - } - }, - { - "path": "pages/remoteDetail/remoteDetail", - "style": { - "navigationBarTitleText": "遥控详情", - "disableScroll": true - } - }, - { - "path": "pages/bindRemote/bindRemote", - "style": { - "navigationBarTitleText": "添加遥控", - "disableScroll": true - } - }, - { - "path": "pages/palmVeinList/palmVeinList", - "style": { - "navigationBarTitleText": "掌静脉", - "disableScroll": true - } - }, - { - "path": "pages/createPalmVein/createPalmVein", - "style": { - "navigationBarTitleText": "添加掌静脉", - "disableScroll": true - } - }, - { - "path": "pages/palmVeinDetail/palmVeinDetail", - "style": { - "navigationBarTitleText": "掌静脉详情", - "disableScroll": true - } - }, - { - "path": "pages/bindPalmVein/bindPalmVein", - "style": { - "navigationBarTitleText": "添加掌静脉", - "disableScroll": true - } - }, - { - "path": "pages/createAdmin/createAdmin", - "style": { - "navigationBarTitleText": "创建授权管理员", - "disableScroll": true - } - }, - { - "path": "pages/adminDetail/adminDetail", - "style": { - "navigationBarTitleText": "授权管理员详情", - "disableScroll": true - } - }, - { - "path": "pages/adminList/adminList", - "style": { - "navigationBarTitleText": "授权管理员", - "disableScroll": true - } - }, - { - "path": "pages/recordList/recordList", - "style": { - "navigationBarTitleText": "操作记录", - "disableScroll": true - } - }, - { - "path": "pages/recordDetail/recordDetail", - "style": { - "navigationBarTitleText": "操作记录详情", - "disableScroll": true - } - }, - { - "path": "pages/typeRecordList/typeRecordList", - "style": { - "navigationBarTitleText": "操作记录", - "disableScroll": true - } - }, - { - "path": "pages/cycleDate/cycleDate", - "style": { - "navigationBarTitleText": "有效期", - "disableScroll": true - } - }, - { - "path": "pages/temporaryDate/temporaryDate", - "style": { - "navigationBarTitleText": "修改有效期", - "disableScroll": true - } - }, - { - "path": "pages/lockInfo/lockInfo", - "style": { - "navigationBarTitleText": "基本信息", - "disableScroll": true - } - }, - { - "path": "pages/syncElec/syncElec", - "style": { - "navigationBarTitleText": "电量", - "disableScroll": true - } - }, - { - "path": "pages/selectGroup/selectGroup", - "style": { - "navigationBarTitleText": "选择分组", - "disableScroll": true - } - }, - { - "path": "pages/updateSetting/updateSetting", - "style": { - "navigationBarTitleText": "设置", - "disableScroll": true - } - }, - { - "path": "pages/lockSound/lockSound", - "style": { - "navigationBarTitleText": "锁声音", - "disableScroll": true - } - }, - { - "path": "pages/autoLock/autoLock", - "style": { - "navigationBarTitleText": "自动闭锁", - "disableScroll": true - } - }, - { - "path": "pages/faceSetting/faceSetting", - "style": { - "navigationBarTitleText": "面容开锁设置", - "disableScroll": true - } - }, - { - "path": "pages/lockDate/lockDate", - "style": { - "navigationBarTitleText": "锁时间", - "disableScroll": true - } - }, - { - "path": "pages/uploadLockData/uploadLockData", - "style": { - "navigationBarTitleText": "上传数据", - "disableScroll": true - } - }, - { - "path": "pages/openDirection/openDirection", - "style": { - "navigationBarTitleText": "开门方向设置", - "disableScroll": true - } - }, - { - "path": "pages/motorTorsion/motorTorsion", - "style": { - "navigationBarTitleText": "电机功率设置", - "disableScroll": true - } - }, - { - "path": "pages/catEye/catEye", - "style": { - "navigationBarTitleText": "猫眼设置", - "disableScroll": true - } - }, - { - "path": "pages/messageReminder/messageReminder", - "style": { - "navigationBarTitleText": "消息提醒", - "disableScroll": true - } - }, - { - "path": "pages/openDoorNotice/openDoorNotice", - "style": { - "navigationBarTitleText": "家人到家", - "disableScroll": true - } - }, - { - "path": "pages/noticeDetail/noticeDetail", - "style": { - "navigationBarTitleText": "家人详情", - "disableScroll": true - } - }, - { - "path": "pages/lockUser/lockUser", - "style": { - "navigationBarTitleText": "锁用户", - "disableScroll": true - } - }, - { - "path": "pages/noticeWay/noticeWay", - "style": { - "navigationBarTitleText": "提醒方式", - "disableScroll": true - } - }, - { - "path": "pages/notOpenDoor/notOpenDoor", - "style": { - "navigationBarTitleText": "N天未开门", - "disableScroll": true - } - }, - { - "path": "pages/lowElecNotice/lowElecNotice", - "style": { - "navigationBarTitleText": "低电量提醒", - "disableScroll": true - } - }, - { - "path": "pages/coercionOpenDoor/coercionOpenDoor", - "style": { - "navigationBarTitleText": "胁迫开门", - "disableScroll": true - } - }, - { - "path": "pages/coercionFingerprint/coercionFingerprint", - "style": { - "navigationBarTitleText": "指纹列表", - "disableScroll": true - } - }, - { - "path": "pages/catEyeMode/catEyeMode", - "style": { - "navigationBarTitleText": "猫眼工作模式", - "disableScroll": true - } - }, - { - "path": "pages/customCatEye/customCatEye", - "style": { - "navigationBarTitleText": "自定义模式", - "disableScroll": true - } - }, - { - "path": "pages/realTimePicture/realTimePicture", - "style": { - "navigationBarTitleText": "实时画面", - "disableScroll": true - } - }, - { - "path": "pages/videoSlot/videoSlot", - "style": { - "navigationBarTitleText": "录像时段", - "disableScroll": true - } - }, - { - "path": "pages/passageMode/passageMode", - "style": { - "navigationBarTitleText": "常开模式", - "disableScroll": true + "navigationBarTitleText": "星星锁" } } ], + "preloadRule": { + "pages/main/home": { + "packages": ["pages/others"] + }, + "pages/main/lockDetail": { + "packages": [ + "pages/lockUserManage", + "pages/featureForBluetooth", + "pages/settingForBluetooth", + "pages/addDeviceForBluetooth" + ] + }, + "pages/main/mine": { + "packages": ["pages/user"] + } + }, "globalStyle": { "navigationBarTextStyle": "white", "navigationBarTitleText": "星星锁", @@ -536,19 +584,19 @@ "position": "bottom", "list": [ { - "pagePath": "pages/home/home", + "pagePath": "pages/main/home", "iconPath": "static/images/tabbar_key_no_select.png", "selectedIconPath": "static/images/tabbar_key_select.png", "text": "设备" }, { - "pagePath": "pages/notificationList/notificationList", + "pagePath": "pages/main/notificationList", "iconPath": "static/images/tabbar_notification_no_select.png", "selectedIconPath": "static/images/tabbar_notification_select.png", "text": "消息" }, { - "pagePath": "pages/mine/mine", + "pagePath": "pages/main/mine", "iconPath": "static/images/tabbar_mine_no_select.png", "selectedIconPath": "static/images/tabbar_mine_select.png", "text": "我的" diff --git a/pages/addLockGuid/addLockGuid.vue b/pages/addDeviceForBluetooth/addLockGuid.vue similarity index 92% rename from pages/addLockGuid/addLockGuid.vue rename to pages/addDeviceForBluetooth/addLockGuid.vue index 4e36266..42e3368 100644 --- a/pages/addLockGuid/addLockGuid.vue +++ b/pages/addDeviceForBluetooth/addLockGuid.vue @@ -1,7 +1,11 @@