From 5085098c9d794773157b65ab88458d87c599a472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E9=B9=8F?= Date: Thu, 27 Mar 2025 16:57:59 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=88=86=E5=8C=85+=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E5=9B=BE=E7=89=87=E4=B8=BA=E8=BF=9C=E7=A8=8B?= =?UTF-8?q?=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .stylelintrc.json | 204 +--- components/SwitchLoading/SwitchLoading.vue | 2 +- constant/keyType.js | 14 +- manifest.json | 52 +- package.json | 3 +- pages.json | 1052 +++++++++-------- .../addLockGuid.vue | 6 +- .../bindLock.vue | 0 .../searchDevice.vue | 7 +- .../selectAddress.vue | 2 +- .../bindCard.vue | 2 +- .../bindFace.vue | 4 +- .../bindFingerprint.vue | 2 +- .../bindPalmVein.vue | 2 +- .../bindRemote.vue | 2 +- .../cardDetail.vue | 0 .../cardList.vue | 4 +- .../createCard.vue | 0 .../createFace.vue | 0 .../createFingerprint.vue | 0 .../createPalmVein.vue | 0 .../createPassword.vue | 0 .../createRemote.vue | 0 .../faceDetail.vue | 0 .../faceList.vue | 4 +- .../fingerprintDetail.vue | 0 .../fingerprintList.vue | 4 +- .../palmVeinDetail.vue | 0 .../palmVeinList.vue | 4 +- .../passwordDetail.vue | 0 .../passwordList.vue | 4 +- .../recordDetail.vue | 0 .../recordList.vue | 2 +- .../remoteDetail.vue | 0 .../remoteList.vue | 4 +- .../typeRecordList.vue | 4 +- .../adminDetail.vue | 0 .../adminList.vue | 8 +- .../createAdmin.vue | 0 .../createKey.vue | 0 .../keyDetail.vue | 0 pages/{keyList => lockUserManage}/keyList.vue | 10 +- pages/{home => main}/home.vue | 9 +- pages/{lockDetail => main}/lockDetail.vue | 70 +- pages/{mine => main}/mine.vue | 30 +- .../notificationList.vue | 12 +- pages/{cycleDate => others}/cycleDate.vue | 0 .../notificationDetail.vue | 0 .../temporaryDate.vue | 0 pages/{webview => others}/webview.vue | 0 .../autoLock.vue | 0 .../catEye.vue | 0 .../catEyeMode.vue | 0 .../coercionFingerprint.vue | 10 +- .../coercionOpenDoor.vue | 2 +- .../customCatEye.vue | 0 .../faceSetting.vue | 0 .../lockDate.vue} | 0 .../lockInfo.vue | 0 .../lockSound.vue | 0 .../lockUser.vue | 10 +- .../lowElecNotice.vue | 0 .../messageReminder.vue | 0 .../motorTorsion.vue | 0 .../notOpenDoor.vue | 0 .../noticeDetail.vue | 0 .../noticeWay.vue | 0 .../openDirection.vue | 14 +- .../openDoorNotice.vue | 2 +- .../passageMode.vue | 12 +- .../realTimePicture.vue | 0 .../selectGroup.vue | 0 .../setting.vue | 0 .../syncElec.vue | 0 .../updateSetting.vue | 0 .../uploadLockData.vue | 0 .../videoSlot.vue | 0 pages/{updateEmail => user}/updateEmail.vue | 0 pages/{updateName => user}/updateName.vue | 0 .../updatePassword.vue | 0 pages/{userInfo => user}/userInfo.vue | 30 +- pages/{verifyEmail => user}/verifyEmail.vue | 0 static/images/background_close_door.png | Bin 20090 -> 0 bytes static/images/background_empty_list.png | Bin 527 -> 0 bytes static/images/background_main.jpg | Bin 51517 -> 0 bytes static/images/background_open_door.png | Bin 22286 -> 0 bytes static/images/icon_add.png | Bin 198 -> 0 bytes static/images/icon_add_blue.png | Bin 552 -> 0 bytes static/images/icon_add_card.png | Bin 12578 -> 0 bytes static/images/icon_add_face_1.png | Bin 24518 -> 0 bytes static/images/icon_add_face_2.png | Bin 24910 -> 0 bytes static/images/icon_add_palm_vein.png | Bin 108408 -> 0 bytes static/images/icon_add_remote.png | Bin 25180 -> 0 bytes static/images/icon_add_round.png | Bin 1088 -> 0 bytes static/images/icon_address.png | Bin 688 -> 0 bytes static/images/icon_admin.png | Bin 487 -> 0 bytes static/images/icon_admin_black.png | Bin 1494 -> 0 bytes static/images/icon_arrow.png | Bin 204 -> 0 bytes static/images/icon_card.png | Bin 1781 -> 0 bytes static/images/icon_card_white.png | Bin 2486 -> 0 bytes static/images/icon_cloud.png | Bin 683 -> 0 bytes static/images/icon_cloud_active.png | Bin 683 -> 0 bytes static/images/icon_delete.png | Bin 268 -> 0 bytes static/images/icon_door_lock.png | Bin 1147 -> 0 bytes static/images/icon_face.png | Bin 1942 -> 0 bytes static/images/icon_face_white.png | Bin 1962 -> 0 bytes static/images/icon_fingerprint.png | Bin 2974 -> 0 bytes static/images/icon_fingerprint_0.png | Bin 41096 -> 0 bytes static/images/icon_fingerprint_1.png | Bin 58313 -> 0 bytes static/images/icon_fingerprint_2.png | Bin 78514 -> 0 bytes static/images/icon_fingerprint_3.png | Bin 80897 -> 0 bytes static/images/icon_fingerprint_4.png | Bin 89422 -> 0 bytes static/images/icon_fingerprint_5.png | Bin 93920 -> 0 bytes static/images/icon_fingerprint_white.png | Bin 8193 -> 0 bytes static/images/icon_key.png | Bin 1615 -> 0 bytes static/images/icon_lock.png | Bin 1801 -> 0 bytes static/images/icon_lock_touch_screen.png | Bin 13972 -> 0 bytes static/images/icon_lock_transparent.png | Bin 1285 -> 0 bytes static/images/icon_menu.png | Bin 1522 -> 0 bytes static/images/icon_not_select.png | Bin 2018 -> 0 bytes static/images/icon_notification_read.png | Bin 3208 -> 0 bytes static/images/icon_notification_unread.png | Bin 3001 -> 0 bytes static/images/icon_open_direction.png | Bin 68687 -> 0 bytes static/images/icon_palm_vein.png | Bin 2197 -> 0 bytes static/images/icon_palm_vein_white.png | Bin 821 -> 0 bytes static/images/icon_password.png | Bin 3640 -> 0 bytes static/images/icon_password_green.png | Bin 2154 -> 0 bytes static/images/icon_power_1.png | Bin 859 -> 0 bytes static/images/icon_power_2.png | Bin 907 -> 0 bytes static/images/icon_power_3.png | Bin 940 -> 0 bytes static/images/icon_power_4.png | Bin 930 -> 0 bytes static/images/icon_power_5.png | Bin 826 -> 0 bytes static/images/icon_record.png | Bin 1767 -> 0 bytes static/images/icon_remind.png | Bin 1752 -> 0 bytes static/images/icon_remote.png | Bin 2073 -> 0 bytes static/images/icon_remote_unlock.png | Bin 3495 -> 0 bytes static/images/icon_remote_white.png | Bin 929 -> 0 bytes static/images/icon_role.png | Bin 2454 -> 0 bytes static/images/icon_select.png | Bin 2343 -> 0 bytes static/images/icon_setting.png | Bin 3227 -> 0 bytes static/images/icon_sync.png | Bin 923 -> 0 bytes static/images/icon_tips.png | Bin 1809 -> 0 bytes static/images/icon_user.png | Bin 4127 -> 0 bytes static/images/img.png | Bin 1562 -> 0 bytes stores/basic.js | 152 +-- stores/lock.js | 10 +- 146 files changed, 867 insertions(+), 898 deletions(-) rename pages/{addLockGuid => addDeviceForBluetooth}/addLockGuid.vue (92%) rename pages/{bindLock => addDeviceForBluetooth}/bindLock.vue (100%) rename pages/{searchDevice => addDeviceForBluetooth}/searchDevice.vue (95%) rename pages/{selectAddress => addDeviceForBluetooth}/selectAddress.vue (98%) rename pages/{bindCard => featureForBluetooth}/bindCard.vue (98%) rename pages/{bindFace => featureForBluetooth}/bindFace.vue (96%) rename pages/{bindFingerprint => featureForBluetooth}/bindFingerprint.vue (97%) rename pages/{bindPalmVein => featureForBluetooth}/bindPalmVein.vue (97%) rename pages/{bindRemote => featureForBluetooth}/bindRemote.vue (98%) rename pages/{cardDetail => featureForBluetooth}/cardDetail.vue (100%) rename pages/{cardList => featureForBluetooth}/cardList.vue (98%) rename pages/{createCard => featureForBluetooth}/createCard.vue (100%) rename pages/{createFace => featureForBluetooth}/createFace.vue (100%) rename pages/{createFingerprint => featureForBluetooth}/createFingerprint.vue (100%) rename pages/{createPalmVein => featureForBluetooth}/createPalmVein.vue (100%) rename pages/{createPassword => featureForBluetooth}/createPassword.vue (100%) rename pages/{createRemote => featureForBluetooth}/createRemote.vue (100%) rename pages/{faceDetail => featureForBluetooth}/faceDetail.vue (100%) rename pages/{faceList => featureForBluetooth}/faceList.vue (98%) rename pages/{fingerprintDetail => featureForBluetooth}/fingerprintDetail.vue (100%) rename pages/{fingerprintList => featureForBluetooth}/fingerprintList.vue (98%) rename pages/{palmVeinDetail => featureForBluetooth}/palmVeinDetail.vue (100%) rename pages/{palmVeinList => featureForBluetooth}/palmVeinList.vue (98%) rename pages/{passwordDetail => featureForBluetooth}/passwordDetail.vue (100%) rename pages/{passwordList => featureForBluetooth}/passwordList.vue (98%) rename pages/{recordDetail => featureForBluetooth}/recordDetail.vue (100%) rename pages/{recordList => featureForBluetooth}/recordList.vue (99%) rename pages/{remoteDetail => featureForBluetooth}/remoteDetail.vue (100%) rename pages/{remoteList => featureForBluetooth}/remoteList.vue (98%) rename pages/{typeRecordList => featureForBluetooth}/typeRecordList.vue (98%) rename pages/{adminDetail => lockUserManage}/adminDetail.vue (100%) rename pages/{adminList => lockUserManage}/adminList.vue (97%) rename pages/{createAdmin => lockUserManage}/createAdmin.vue (100%) rename pages/{createKey => lockUserManage}/createKey.vue (100%) rename pages/{keyDetail => lockUserManage}/keyDetail.vue (100%) rename pages/{keyList => lockUserManage}/keyList.vue (97%) rename pages/{home => main}/home.vue (98%) rename pages/{lockDetail => main}/lockDetail.vue (88%) rename pages/{mine => main}/mine.vue (91%) rename pages/{notificationList => main}/notificationList.vue (96%) rename pages/{cycleDate => others}/cycleDate.vue (100%) rename pages/{notificationDetail => others}/notificationDetail.vue (100%) rename pages/{temporaryDate => others}/temporaryDate.vue (100%) rename pages/{webview => others}/webview.vue (100%) rename pages/{autoLock => settingForBluetooth}/autoLock.vue (100%) rename pages/{catEye => settingForBluetooth}/catEye.vue (100%) rename pages/{catEyeMode => settingForBluetooth}/catEyeMode.vue (100%) rename pages/{coercionFingerprint => settingForBluetooth}/coercionFingerprint.vue (96%) rename pages/{coercionOpenDoor => settingForBluetooth}/coercionOpenDoor.vue (98%) rename pages/{customCatEye => settingForBluetooth}/customCatEye.vue (100%) rename pages/{faceSetting => settingForBluetooth}/faceSetting.vue (100%) rename pages/{LockDate/LockDate.vue => settingForBluetooth/lockDate.vue} (100%) rename pages/{lockInfo => settingForBluetooth}/lockInfo.vue (100%) rename pages/{lockSound => settingForBluetooth}/lockSound.vue (100%) rename pages/{lockUser => settingForBluetooth}/lockUser.vue (97%) rename pages/{lowElecNotice => settingForBluetooth}/lowElecNotice.vue (100%) rename pages/{messageReminder => settingForBluetooth}/messageReminder.vue (100%) rename pages/{motorTorsion => settingForBluetooth}/motorTorsion.vue (100%) rename pages/{notOpenDoor => settingForBluetooth}/notOpenDoor.vue (100%) rename pages/{noticeDetail => settingForBluetooth}/noticeDetail.vue (100%) rename pages/{noticeWay => settingForBluetooth}/noticeWay.vue (100%) rename pages/{openDirection => settingForBluetooth}/openDirection.vue (89%) rename pages/{openDoorNotice => settingForBluetooth}/openDoorNotice.vue (98%) rename pages/{passageMode => settingForBluetooth}/passageMode.vue (96%) rename pages/{realTimePicture => settingForBluetooth}/realTimePicture.vue (100%) rename pages/{selectGroup => settingForBluetooth}/selectGroup.vue (100%) rename pages/{setting => settingForBluetooth}/setting.vue (100%) rename pages/{syncElec => settingForBluetooth}/syncElec.vue (100%) rename pages/{updateSetting => settingForBluetooth}/updateSetting.vue (100%) rename pages/{uploadLockData => settingForBluetooth}/uploadLockData.vue (100%) rename pages/{videoSlot => settingForBluetooth}/videoSlot.vue (100%) rename pages/{updateEmail => user}/updateEmail.vue (100%) rename pages/{updateName => user}/updateName.vue (100%) rename pages/{updatePassword => user}/updatePassword.vue (100%) rename pages/{userInfo => user}/userInfo.vue (90%) rename pages/{verifyEmail => user}/verifyEmail.vue (100%) delete mode 100755 static/images/background_close_door.png delete mode 100644 static/images/background_empty_list.png delete mode 100644 static/images/background_main.jpg delete mode 100644 static/images/background_open_door.png delete mode 100644 static/images/icon_add.png delete mode 100644 static/images/icon_add_blue.png delete mode 100755 static/images/icon_add_card.png delete mode 100755 static/images/icon_add_face_1.png delete mode 100755 static/images/icon_add_face_2.png delete mode 100755 static/images/icon_add_palm_vein.png delete mode 100644 static/images/icon_add_remote.png delete mode 100644 static/images/icon_add_round.png delete mode 100644 static/images/icon_address.png delete mode 100755 static/images/icon_admin.png delete mode 100644 static/images/icon_admin_black.png delete mode 100644 static/images/icon_arrow.png delete mode 100644 static/images/icon_card.png delete mode 100755 static/images/icon_card_white.png delete mode 100644 static/images/icon_cloud.png delete mode 100644 static/images/icon_cloud_active.png delete mode 100644 static/images/icon_delete.png delete mode 100755 static/images/icon_door_lock.png delete mode 100644 static/images/icon_face.png delete mode 100755 static/images/icon_face_white.png delete mode 100644 static/images/icon_fingerprint.png delete mode 100755 static/images/icon_fingerprint_0.png delete mode 100755 static/images/icon_fingerprint_1.png delete mode 100755 static/images/icon_fingerprint_2.png delete mode 100755 static/images/icon_fingerprint_3.png delete mode 100755 static/images/icon_fingerprint_4.png delete mode 100644 static/images/icon_fingerprint_5.png delete mode 100755 static/images/icon_fingerprint_white.png delete mode 100644 static/images/icon_key.png delete mode 100644 static/images/icon_lock.png delete mode 100755 static/images/icon_lock_touch_screen.png delete mode 100644 static/images/icon_lock_transparent.png delete mode 100644 static/images/icon_menu.png delete mode 100644 static/images/icon_not_select.png delete mode 100755 static/images/icon_notification_read.png delete mode 100755 static/images/icon_notification_unread.png delete mode 100755 static/images/icon_open_direction.png delete mode 100644 static/images/icon_palm_vein.png delete mode 100644 static/images/icon_palm_vein_white.png delete mode 100755 static/images/icon_password.png delete mode 100644 static/images/icon_password_green.png delete mode 100755 static/images/icon_power_1.png delete mode 100755 static/images/icon_power_2.png delete mode 100755 static/images/icon_power_3.png delete mode 100755 static/images/icon_power_4.png delete mode 100755 static/images/icon_power_5.png delete mode 100644 static/images/icon_record.png delete mode 100644 static/images/icon_remind.png delete mode 100644 static/images/icon_remote.png delete mode 100755 static/images/icon_remote_unlock.png delete mode 100644 static/images/icon_remote_white.png delete mode 100644 static/images/icon_role.png delete mode 100644 static/images/icon_select.png delete mode 100644 static/images/icon_setting.png delete mode 100644 static/images/icon_sync.png delete mode 100644 static/images/icon_tips.png delete mode 100755 static/images/icon_user.png delete mode 100644 static/images/img.png 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 @@