From e4276b0853a903906ae0323b1aef0e583a1d4a47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BC=8A=E5=B8=86?= <15818603+Osborn-lyf@user.noreply.gitee.com> Date: Wed, 21 Oct 2026 17:09:53 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=9C=80=E6=96=B0=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 1 + .env.production | 6 + package-lock.json | 871 ++++++++---------- package.json | 49 +- src/App.vue | 23 +- src/api/cs-auth.ts | 25 +- src/api/home.ts | 185 ++-- src/api/request.ts | 110 ++- src/components/page-scroll-view/index.vue | 36 + src/config/app-env.ts | 52 ++ src/hooks/use-page-scroll-height.ts | 79 ++ src/manifest.json | 56 +- src/pages.json | 14 +- src/pages/add-device/add-device.scss | 3 +- src/pages/add-device/complete/complete.scss | 3 +- src/pages/add-device/complete/index.vue | 4 +- src/pages/add-device/index.vue | 4 +- src/pages/add-device/pair/index.vue | 4 +- src/pages/add-device/pair/pair.scss | 3 +- src/pages/add-device/scan/index.vue | 4 +- src/pages/add-device/scan/scan.scss | 3 +- src/pages/agreement/index.vue | 7 +- src/pages/change-password/index.vue | 5 +- .../change-password/use-change-password.ts | 7 +- src/pages/device/detail/device-detail.scss | 3 +- src/pages/device/detail/index.vue | 8 +- src/pages/device/device.scss | 13 + src/pages/device/home-manage/detail/index.vue | 4 +- src/pages/device/home-manage/home-manage.scss | 10 +- src/pages/device/home-manage/index.vue | 9 +- .../home-manage/location/use-home-location.ts | 41 +- .../device/home-manage/use-home-manage.ts | 50 +- src/pages/device/index.vue | 5 +- .../device/settings/device-settings.scss | 3 +- src/pages/device/settings/index.vue | 4 +- src/pages/device/use-device.ts | 5 + src/pages/login/index.vue | 20 +- src/pages/login/use-login.ts | 11 +- src/pages/mine/edit/edit.scss | 3 +- src/pages/mine/edit/index.vue | 4 +- src/pages/mine/edit/use-edit-profile.ts | 46 +- src/pages/mine/notify/index.vue | 5 +- src/pages/mine/notify/notify.scss | 3 +- .../cancel-account-dialog/index.vue | 197 ++++ src/pages/mine/privacy/index.vue | 18 +- src/pages/mine/privacy/privacy.scss | 3 +- src/pages/mine/privacy/use-privacy.ts | 40 +- src/pages/mine/set-password/index.vue | 5 +- src/pages/mine/storage/index.vue | 4 +- src/pages/mine/storage/storage.scss | 3 +- src/pages/mine/support/cs-chat-socket.ts | 27 +- src/pages/mine/support/support.api.ts | 54 +- src/pages/mine/support/use-support.ts | 10 +- src/pages/register/index.vue | 13 + src/pages/register/use-register.ts | 11 +- ...226@2x.png => device-detail-hero-bg@2x.png} | Bin ...组 41@2x.png => icon-bind-complete@2x.png} | Bin ...»„ 281@2x.png => icon-bind-discover@2x.png} | Bin .../{组 286@2x.png => icon-bind-pair@2x.png} | Bin ...{组 291@2x.png => icon-bind-secure@2x.png} | Bin src/static/{蓝牙-F.png => icon-bluetooth.png} | Bin ...chevron.left.png => icon-chevron-left.png} | Bin .../{图标 8.png => icon-device-empty.png} | Bin .../{图标 9.png => icon-device-name-edit.png} | Bin .../{路径1.png => icon-device-settings.png} | Bin .../{图标 13.png => icon-generic-13.png} | Bin src/static/{组 27.png => icon-generic-27.png} | Bin src/static/{组 9.png => icon-home-arrow.png} | Bin ...{完成@2x.png => icon-home-selected@2x.png} | Bin .../{图标 4.png => icon-home-selector.png} | Bin ...„ 14923@2x.png => icon-mine-address@2x.png} | Bin ...{优惠券@2x.png => icon-mine-coupon@2x.png} | Bin ...»„ 14919@2x.png => icon-mine-notify@2x.png} | Bin .../{订单@2x.png => icon-mine-order@2x.png} | Bin src/static/{通知 (1).png => icon-notify.png} | Bin src/static/{路径.png => icon-password.png} | Bin ... 15227@2x.png => icon-run-mode-info@2x.png} | Bin ...=> icon-scan-device-action-disabled@2x.png} | Bin ...8@2x.png => icon-scan-device-action@2x.png} | Bin ...{组 600@2x.png => icon-scan-device@2x.png} | Bin .../{组 134.png => icon-support-mic.png} | Bin .../{图片.png => icon-support-photo.png} | Bin ...组 98@2x.png => icon-support-queue@2x.png} | Bin .../{图标 14.png => icon-support-send.png} | Bin src/types/location.ts | 11 + src/utils/message-socket.ts | 286 ++++-- src/utils/static-assets.ts | 85 +- src/utils/validate.ts | 8 +- unpackage/res/icons/1024x1024.png | Bin 0 -> 105532 bytes unpackage/res/icons/120x120.png | Bin 0 -> 4613 bytes unpackage/res/icons/144x144.png | Bin 0 -> 6063 bytes unpackage/res/icons/152x152.png | Bin 0 -> 6511 bytes unpackage/res/icons/167x167.png | Bin 0 -> 7695 bytes unpackage/res/icons/180x180.png | Bin 0 -> 8624 bytes unpackage/res/icons/192x192.png | Bin 0 -> 9497 bytes unpackage/res/icons/20x20.png | Bin 0 -> 577 bytes unpackage/res/icons/29x29.png | Bin 0 -> 879 bytes unpackage/res/icons/40x40.png | Bin 0 -> 1155 bytes unpackage/res/icons/58x58.png | Bin 0 -> 1936 bytes unpackage/res/icons/60x60.png | Bin 0 -> 2051 bytes unpackage/res/icons/72x72.png | Bin 0 -> 2489 bytes unpackage/res/icons/76x76.png | Bin 0 -> 2705 bytes unpackage/res/icons/80x80.png | Bin 0 -> 2361 bytes unpackage/res/icons/87x87.png | Bin 0 -> 3206 bytes unpackage/res/icons/96x96.png | Bin 0 -> 3740 bytes vite.config.ts | 3 +- 106 files changed, 1587 insertions(+), 992 deletions(-) create mode 100644 .env.production create mode 100644 src/components/page-scroll-view/index.vue create mode 100644 src/config/app-env.ts create mode 100644 src/hooks/use-page-scroll-height.ts create mode 100644 src/pages/mine/privacy/components/cancel-account-dialog/index.vue rename src/static/{组 15226@2x.png => device-detail-hero-bg@2x.png} (100%) rename src/static/{组 41@2x.png => icon-bind-complete@2x.png} (100%) rename src/static/{组 281@2x.png => icon-bind-discover@2x.png} (100%) rename src/static/{组 286@2x.png => icon-bind-pair@2x.png} (100%) rename src/static/{组 291@2x.png => icon-bind-secure@2x.png} (100%) rename src/static/{蓝牙-F.png => icon-bluetooth.png} (100%) rename src/static/{chevron.left.png => icon-chevron-left.png} (100%) rename src/static/{图标 8.png => icon-device-empty.png} (100%) rename src/static/{图标 9.png => icon-device-name-edit.png} (100%) rename src/static/{路径1.png => icon-device-settings.png} (100%) rename src/static/{图标 13.png => icon-generic-13.png} (100%) rename src/static/{组 27.png => icon-generic-27.png} (100%) rename src/static/{组 9.png => icon-home-arrow.png} (100%) rename src/static/{完成@2x.png => icon-home-selected@2x.png} (100%) rename src/static/{图标 4.png => icon-home-selector.png} (100%) rename src/static/{组 14923@2x.png => icon-mine-address@2x.png} (100%) rename src/static/{优惠券@2x.png => icon-mine-coupon@2x.png} (100%) rename src/static/{组 14919@2x.png => icon-mine-notify@2x.png} (100%) rename src/static/{订单@2x.png => icon-mine-order@2x.png} (100%) rename src/static/{通知 (1).png => icon-notify.png} (100%) rename src/static/{路径.png => icon-password.png} (100%) rename src/static/{组 15227@2x.png => icon-run-mode-info@2x.png} (100%) rename src/static/{组 476@2x.png => icon-scan-device-action-disabled@2x.png} (100%) rename src/static/{组 468@2x.png => icon-scan-device-action@2x.png} (100%) rename src/static/{组 600@2x.png => icon-scan-device@2x.png} (100%) rename src/static/{组 134.png => icon-support-mic.png} (100%) rename src/static/{图片.png => icon-support-photo.png} (100%) rename src/static/{组 98@2x.png => icon-support-queue@2x.png} (100%) rename src/static/{图标 14.png => icon-support-send.png} (100%) create mode 100644 unpackage/res/icons/1024x1024.png create mode 100644 unpackage/res/icons/120x120.png create mode 100644 unpackage/res/icons/144x144.png create mode 100644 unpackage/res/icons/152x152.png create mode 100644 unpackage/res/icons/167x167.png create mode 100644 unpackage/res/icons/180x180.png create mode 100644 unpackage/res/icons/192x192.png create mode 100644 unpackage/res/icons/20x20.png create mode 100644 unpackage/res/icons/29x29.png create mode 100644 unpackage/res/icons/40x40.png create mode 100644 unpackage/res/icons/58x58.png create mode 100644 unpackage/res/icons/60x60.png create mode 100644 unpackage/res/icons/72x72.png create mode 100644 unpackage/res/icons/76x76.png create mode 100644 unpackage/res/icons/80x80.png create mode 100644 unpackage/res/icons/87x87.png create mode 100644 unpackage/res/icons/96x96.png diff --git a/.env.example b/.env.example index 23a38f4..525fd37 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,5 @@ # 接口根地址(App / 小程序 / H5 直连) +# 正式打包读 .env.production;未配置时 src/config/app-env.ts 有兜底地址 VITE_API_BASE_URL=http://192.168.0.222:8082 # H5 开发:BASE_URL 留空时可走 vite 代理 /app diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..486f4fd --- /dev/null +++ b/.env.production @@ -0,0 +1,6 @@ +# 正式打包(npm run build:* / HBuilderX 发行)读取 +VITE_API_BASE_URL=http://192.168.0.222:8082 +VITE_API_PROXY_TARGET=http://192.168.0.222:8082 +VITE_CS_API_BASE_URL=http://192.168.0.212:8082 +VITE_MESSAGE_WS_URL=ws://192.168.0.222:8082/app/ws/message +VITE_API_CLIENT_ID=428a8310cd442757ae699df5d894f051 diff --git a/package-lock.json b/package-lock.json index 0a16b22..7114b42 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,34 +8,35 @@ "name": "uni-preset-vue", "version": "0.0.0", "dependencies": { - "@dcloudio/uni-app": "3.0.0-5020420260813003", - "@dcloudio/uni-app-harmony": "3.0.0-5020420260813003", - "@dcloudio/uni-app-plus": "3.0.0-5020420260813003", - "@dcloudio/uni-components": "3.0.0-5020420260813003", - "@dcloudio/uni-h5": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-alipay": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-baidu": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-harmony": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-jd": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-kuaishou": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-lark": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-qq": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-toutiao": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-weixin": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-xhs": "3.0.0-5020420260813003", - "@dcloudio/uni-quickapp-webview": "3.0.0-5020420260813003", + "@dcloudio/uni-app": "3.0.0-5020620260917001", + "@dcloudio/uni-app-harmony": "3.0.0-5020620260917001", + "@dcloudio/uni-app-plus": "3.0.0-5020620260917001", + "@dcloudio/uni-components": "3.0.0-5020620260917001", + "@dcloudio/uni-h5": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-alipay": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-baidu": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-harmony": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-jd": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-kuaishou": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-lark": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-qq": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-toutiao": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-weixin": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-xhs": "3.0.0-5020620260917001", + "@dcloudio/uni-quickapp-webview": "3.0.0-5020620260917001", "element-china-area-data": "^6.1.0", - "vue": "^3.4.21", - "vue-i18n": "^9.1.9" + "vue": "3.4.21", + "vue-i18n": "9.14.5" }, "devDependencies": { - "@dcloudio/types": "^3.4.8", - "@dcloudio/uni-automator": "3.0.0-5020420260813003", - "@dcloudio/uni-cli-shared": "3.0.0-5020420260813003", - "@dcloudio/uni-stacktracey": "3.0.0-5020420260813003", - "@dcloudio/vite-plugin-uni": "3.0.0-5020420260813003", - "@vue/runtime-core": "^3.4.21", + "@dcloudio/types": "3.4.31", + "@dcloudio/uni-automator": "3.0.0-5020620260917001", + "@dcloudio/uni-cli-shared": "3.0.0-5020620260917001", + "@dcloudio/uni-stacktracey": "3.0.0-5020620260917001", + "@dcloudio/vite-plugin-uni": "3.0.0-5020620260917001", + "@vue/runtime-core": "3.5.44", "@vue/tsconfig": "^0.1.3", + "rollup": "4.14.3", "sass": "^1.105.1", "typescript": "^4.9.4", "vite": "5.2.8", @@ -2133,23 +2134,23 @@ }, "node_modules/@dcloudio/types": { "version": "3.4.31", - "resolved": "https://registry.npmmirror.com/@dcloudio/types/-/types-3.4.31.tgz", + "resolved": "https://registry.npmjs.org/@dcloudio/types/-/types-3.4.31.tgz", "integrity": "sha512-YAqOfJpcAwMs4Fagv2oP+iRHSCJOJoN8JUYyoRD6gwfANhsI9QaYj4/j22FzSopfHkqjX50B7YkG/VRAyz9OnA==", "license": "Apache-2.0" }, "node_modules/@dcloudio/uni-app": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-app/-/uni-app-3.0.0-5020420260813003.tgz", - "integrity": "sha512-EQq23FHexCA8VrLMRgCed5LZFMF8VE23Zom9OcjkKULdcgbRMaFJ4aPAAmOB1teOV3Bi1KgneqjaAWwyVR3AQQ==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-app/-/uni-app-3.0.0-5020620260917001.tgz", + "integrity": "sha512-VKhrNv2J66/Bh0N/bru1MOfTP380ChP/MRkFR32qs/T7ORfnnAGZjHhaVcMhVxfRcehjZFBXYIYPO/GG4cSflA==", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cloud": "3.0.0-5020420260813003", - "@dcloudio/uni-components": "3.0.0-5020420260813003", - "@dcloudio/uni-console": "3.0.0-5020420260813003", - "@dcloudio/uni-i18n": "3.0.0-5020420260813003", - "@dcloudio/uni-push": "3.0.0-5020420260813003", - "@dcloudio/uni-shared": "3.0.0-5020420260813003", - "@dcloudio/uni-stat": "3.0.0-5020420260813003", + "@dcloudio/uni-cloud": "3.0.0-5020620260917001", + "@dcloudio/uni-components": "3.0.0-5020620260917001", + "@dcloudio/uni-console": "3.0.0-5020620260917001", + "@dcloudio/uni-i18n": "3.0.0-5020620260917001", + "@dcloudio/uni-push": "3.0.0-5020620260917001", + "@dcloudio/uni-shared": "3.0.0-5020620260917001", + "@dcloudio/uni-stat": "3.0.0-5020620260917001", "@vue/shared": "3.4.21" }, "peerDependencies": { @@ -2157,13 +2158,13 @@ } }, "node_modules/@dcloudio/uni-app-harmony": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-app-harmony/-/uni-app-harmony-3.0.0-5020420260813003.tgz", - "integrity": "sha512-sHrc3bp9YTgoSl7eIbXV3fpgEfle9GmaRJXmErBRu66W0AhPBhwUuPqfXip+l+M5WexsMtnmaGRtQKld+oh4Vg==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-app-harmony/-/uni-app-harmony-3.0.0-5020620260917001.tgz", + "integrity": "sha512-BAinn7oOA4lxb8n7ze90BcgFs7x9Aght6CIcu3ITKnYoGpDUNfspwVzntoKYwueZDyOOPL5KThBzhsGhsuH20g==", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-app-uts": "3.0.0-5020420260813003", - "@dcloudio/uni-app-vite": "3.0.0-5020420260813003", + "@dcloudio/uni-app-uts": "3.0.0-5020620260917001", + "@dcloudio/uni-app-vite": "3.0.0-5020620260917001", "debug": "4.3.7", "fs-extra": "10.1.0", "licia": "1.41.1", @@ -2171,14 +2172,14 @@ } }, "node_modules/@dcloudio/uni-app-plus": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-app-plus/-/uni-app-plus-3.0.0-5020420260813003.tgz", - "integrity": "sha512-hjwCRSxg2N5GWnAPnTW8EpFZ8tK3jP5QCWl4IKio0KQnbavIt6YzskSDeIczwuYchJeN7m40cuE4Sn+8U1SLsw==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-app-plus/-/uni-app-plus-3.0.0-5020620260917001.tgz", + "integrity": "sha512-EO6DDnMIQ/4t5OjOgwIfE/qtvJHIqDTGmu/Ui549TmQ488pAErM9i5WJTOjhOhX2xe1cOUEi6sP9yYETG/u+DQ==", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-app-uts": "3.0.0-5020420260813003", - "@dcloudio/uni-app-vite": "3.0.0-5020420260813003", - "@dcloudio/uni-app-vue": "3.0.0-5020420260813003", + "@dcloudio/uni-app-uts": "3.0.0-5020620260917001", + "@dcloudio/uni-app-vite": "3.0.0-5020620260917001", + "@dcloudio/uni-app-vue": "3.0.0-5020620260917001", "debug": "4.3.7", "fs-extra": "10.1.0", "licia": "1.41.1", @@ -2186,18 +2187,18 @@ } }, "node_modules/@dcloudio/uni-app-uts": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-app-uts/-/uni-app-uts-3.0.0-5020420260813003.tgz", - "integrity": "sha512-SXomryZJiH+KCYMokIVlmaPcmjsEDGHJNEufF3TwoDsc75wrnMKTRNwy/yED6p4Jjnw+0YJfml1Ab7SoNaxTNQ==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-app-uts/-/uni-app-uts-3.0.0-5020620260917001.tgz", + "integrity": "sha512-DbeJww1g89ABUB+XBEN3Cru8n+QKtei/i7mtJLEac+Ko1Mi0EeZNMoYIDf011MAsdqyS3XMQ76DXvHT8GGgt+g==", "license": "Apache-2.0", "dependencies": { "@babel/parser": "7.25.6", "@babel/types": "7.25.6", - "@dcloudio/uni-cli-shared": "3.0.0-5020420260813003", - "@dcloudio/uni-console": "3.0.0-5020420260813003", - "@dcloudio/uni-i18n": "3.0.0-5020420260813003", - "@dcloudio/uni-nvue-styler": "3.0.0-5020420260813003", - "@dcloudio/uni-shared": "3.0.0-5020420260813003", + "@dcloudio/uni-cli-shared": "3.0.0-5020620260917001", + "@dcloudio/uni-console": "3.0.0-5020620260917001", + "@dcloudio/uni-i18n": "3.0.0-5020620260917001", + "@dcloudio/uni-nvue-styler": "3.0.0-5020620260917001", + "@dcloudio/uni-shared": "3.0.0-5020620260917001", "@jridgewell/gen-mapping": "^0.3.3", "@jridgewell/trace-mapping": "^0.3.19", "@rollup/pluginutils": "5.1.0", @@ -2218,15 +2219,15 @@ } }, "node_modules/@dcloudio/uni-app-vite": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-app-vite/-/uni-app-vite-3.0.0-5020420260813003.tgz", - "integrity": "sha512-+R/sOmKebt4lZKDeq7/HGiLY8vgkNAhbtnJMZTylxsvDQlZP6C/PJA+pb2Cqf2DpURcQSiekFkXyY+CzoAHwAw==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-app-vite/-/uni-app-vite-3.0.0-5020620260917001.tgz", + "integrity": "sha512-Y2BfXC69jyrkWh7jDoFh9lCyyzp1TozEBG23EU4ytEUGF7YzwwHxE19pHZYYAULKpVGem8pQT4pLfMtG2C5ySA==", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-5020420260813003", - "@dcloudio/uni-i18n": "3.0.0-5020420260813003", - "@dcloudio/uni-nvue-styler": "3.0.0-5020420260813003", - "@dcloudio/uni-shared": "3.0.0-5020420260813003", + "@dcloudio/uni-cli-shared": "3.0.0-5020620260917001", + "@dcloudio/uni-i18n": "3.0.0-5020620260917001", + "@dcloudio/uni-nvue-styler": "3.0.0-5020620260917001", + "@dcloudio/uni-shared": "3.0.0-5020620260917001", "@rollup/pluginutils": "5.1.0", "@vitejs/plugin-vue": "5.2.4", "@vue/compiler-dom": "3.4.21", @@ -2237,19 +2238,19 @@ } }, "node_modules/@dcloudio/uni-app-vue": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-app-vue/-/uni-app-vue-3.0.0-5020420260813003.tgz", - "integrity": "sha512-lXS1NKsTGCjAP+hfbwE4X+4ssZ7VwOs/+JPhTksdhHy/PUwEbx3unmZsgIKMFK1ffAQiVgqa47A2B9Cia4WA5w==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-app-vue/-/uni-app-vue-3.0.0-5020620260917001.tgz", + "integrity": "sha512-IKEe0RWivbcR8V2X6TbjT2VKap48ktEmxmKc9CRr1Xtp9jRa4Sy+odi5WE2rE1yoJY2wCCcXevWjL58gw0B67A==", "license": "Apache-2.0" }, "node_modules/@dcloudio/uni-automator": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-automator/-/uni-automator-3.0.0-5020420260813003.tgz", - "integrity": "sha512-WesOU05kpPBQdC94LjrXvtFOeaCScVJtpQQUifwi5D33HcNkyiQf4mMXM11jWDC/a1jzmKmcRIJJw9UoFtxATQ==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-automator/-/uni-automator-3.0.0-5020620260917001.tgz", + "integrity": "sha512-SwRRGrUASHO8Wyjf6+VaVojrpG2n6b654foeQL2vAYuocZB0NsUS8MibjwR6df/v0/yTTGqW7PVNs4O0WXSKFg==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-5020420260813003", + "@dcloudio/uni-cli-shared": "3.0.0-5020620260917001", "address": "^1.1.2", "cross-env": "^7.0.3", "debug": "4.3.7", @@ -2268,9 +2269,9 @@ } }, "node_modules/@dcloudio/uni-cli-shared": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-cli-shared/-/uni-cli-shared-3.0.0-5020420260813003.tgz", - "integrity": "sha512-Legir++K7FjIiDiZ+aN7LrzFCaRJxYc+5VFKCzg3loECHEeWgUJ9fx3mZSamsz+6h5/VB3v6AEuefe88tNkMVg==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-cli-shared/-/uni-cli-shared-3.0.0-5020620260917001.tgz", + "integrity": "sha512-9qzRa7Xav4rEOt3Ixmj8E7Gm+m+L5tQ01KHAajEJptK5IJ7YvHjw7DVnzdv8D4PfKZZdWqmALUMN1vDgjFt2oQ==", "license": "Apache-2.0", "dependencies": { "@ampproject/remapping": "^2.1.2", @@ -2278,9 +2279,9 @@ "@babel/core": "7.25.2", "@babel/parser": "7.25.6", "@babel/types": "7.25.6", - "@dcloudio/uni-i18n": "3.0.0-5020420260813003", - "@dcloudio/uni-nvue-styler": "3.0.0-5020420260813003", - "@dcloudio/uni-shared": "3.0.0-5020420260813003", + "@dcloudio/uni-i18n": "3.0.0-5020620260917001", + "@dcloudio/uni-nvue-styler": "3.0.0-5020620260917001", + "@dcloudio/uni-shared": "3.0.0-5020620260917001", "@intlify/core-base": "9.1.9", "@intlify/shared": "9.1.9", "@intlify/vue-devtools": "9.1.9", @@ -2383,49 +2384,49 @@ } }, "node_modules/@dcloudio/uni-cloud": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-cloud/-/uni-cloud-3.0.0-5020420260813003.tgz", - "integrity": "sha512-h2lIn+YycLOSUBQ60xfk6tSL51F6VeiXzIF63PoYE8NbQglNwFjoWF7SBzqQQj5ZgnqMV5FnS4O1xRtpwOg1Og==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-cloud/-/uni-cloud-3.0.0-5020620260917001.tgz", + "integrity": "sha512-yIjFG4jkj7FnwAqSBpzR1SIw7pU23f/ZbMjHhc1EMFJcEhtRqGCKenbjR8x8a2Qg2OJ3sh51w6HvY8uxUOKLTg==", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-5020420260813003", - "@dcloudio/uni-i18n": "3.0.0-5020420260813003", - "@dcloudio/uni-shared": "3.0.0-5020420260813003", + "@dcloudio/uni-cli-shared": "3.0.0-5020620260917001", + "@dcloudio/uni-i18n": "3.0.0-5020620260917001", + "@dcloudio/uni-shared": "3.0.0-5020620260917001", "@vue/shared": "3.4.21", "fast-glob": "3.3.3" } }, "node_modules/@dcloudio/uni-components": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-components/-/uni-components-3.0.0-5020420260813003.tgz", - "integrity": "sha512-Mcu0T367gZkOdrlTrGn3nl2DEL+mVHNRWlCmmDaNyklI2U5RVx5Bv/DmKN2mPQ+FBZNrzN5SRVIN85Y1cNgOpw==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-components/-/uni-components-3.0.0-5020620260917001.tgz", + "integrity": "sha512-bNC0qO8hVFOIahQ/rh7+JGPWjE9lbamcOfaYmNyHQ6tlcv790fY24Tk7uGmodotjoGEOILtwk+C+0AZGLoaJVA==", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cloud": "3.0.0-5020420260813003", - "@dcloudio/uni-h5": "3.0.0-5020420260813003", - "@dcloudio/uni-i18n": "3.0.0-5020420260813003" + "@dcloudio/uni-cloud": "3.0.0-5020620260917001", + "@dcloudio/uni-h5": "3.0.0-5020620260917001", + "@dcloudio/uni-i18n": "3.0.0-5020620260917001" } }, "node_modules/@dcloudio/uni-console": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-console/-/uni-console-3.0.0-5020420260813003.tgz", - "integrity": "sha512-cEYqiOrIrGnQqMaSCtooupFAkFbYWirFuAv9/Fref6xI3FFeY/gm4ECExjri5Xjq3W7oMs3BNMmFNQ20Q5ucdw==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-console/-/uni-console-3.0.0-5020620260917001.tgz", + "integrity": "sha512-MXyattIoxyX0Nk7iVWkwAqkkL+N0vvi9fZhCMiRbJ1zev76j6TT2b47z+Z9PkHdWmI+3XIvgXDun/Kb7BaxvCQ==", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-5020420260813003", + "@dcloudio/uni-cli-shared": "3.0.0-5020620260917001", "fs-extra": "10.1.0" } }, "node_modules/@dcloudio/uni-h5": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-h5/-/uni-h5-3.0.0-5020420260813003.tgz", - "integrity": "sha512-CWNdB0uTdRj58k3N0uKqTNNv9gLnYK8vf81BLAk3sJe/gHqqxX1Dnu2gLLugAn0XXJOy4L2H0AfU/nZmlh7jPA==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-h5/-/uni-h5-3.0.0-5020620260917001.tgz", + "integrity": "sha512-DHpypp8rUmtKlMcB0Eid55dcEHoyWaeP0DgFCS6bcApzSvOX94khLkYRPXwGjjZ+E19MJJxM8oWj8LekFi/cDw==", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-h5-vite": "3.0.0-5020420260813003", - "@dcloudio/uni-h5-vue": "3.0.0-5020420260813003", - "@dcloudio/uni-i18n": "3.0.0-5020420260813003", - "@dcloudio/uni-shared": "3.0.0-5020420260813003", + "@dcloudio/uni-h5-vite": "3.0.0-5020620260917001", + "@dcloudio/uni-h5-vue": "3.0.0-5020620260917001", + "@dcloudio/uni-i18n": "3.0.0-5020620260917001", + "@dcloudio/uni-shared": "3.0.0-5020620260917001", "@vue/server-renderer": "3.4.21", "@vue/shared": "3.4.21", "debug": "4.3.7", @@ -2437,13 +2438,13 @@ } }, "node_modules/@dcloudio/uni-h5-vite": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-h5-vite/-/uni-h5-vite-3.0.0-5020420260813003.tgz", - "integrity": "sha512-JfSUYoqLaZ0+2ikxeN0slszJZk0vROPAYKXc0iDGB0vO+j9B8ttN213swUgRv6MHvbz68tDdpvGCWSerfqbWOg==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-h5-vite/-/uni-h5-vite-3.0.0-5020620260917001.tgz", + "integrity": "sha512-53JA8AzyVOATvGWAkyfV2th8XIweLhGrG9I1LlH3xR0Nqh5sNwet1Ri8uNbHyolMMY5rHNCikfQWen199GziCQ==", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-5020420260813003", - "@dcloudio/uni-shared": "3.0.0-5020420260813003", + "@dcloudio/uni-cli-shared": "3.0.0-5020620260917001", + "@dcloudio/uni-shared": "3.0.0-5020620260917001", "@rollup/pluginutils": "5.1.0", "@vitejs/plugin-basic-ssl": "1.2.0", "@vue/compiler-dom": "3.4.21", @@ -2457,49 +2458,49 @@ } }, "node_modules/@dcloudio/uni-h5-vue": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-h5-vue/-/uni-h5-vue-3.0.0-5020420260813003.tgz", - "integrity": "sha512-yuf178r08Am5qCTGOHIuwJ8LpaF7Mx80TwuPDyWaTATEnY3YtevnqJxlW/3EcevRreZpq/j+SkCZEWyAUI7euA==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-h5-vue/-/uni-h5-vue-3.0.0-5020620260917001.tgz", + "integrity": "sha512-gZzwvNWeHvw9Eu5NWHgWqwWZ+Pdz4N21m6Qzy+Gk/SWkIb0Aw1+5/DUZkz9wOGTPN6RalkOU1qnqJQpqmWzRcg==", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-shared": "3.0.0-5020420260813003", + "@dcloudio/uni-shared": "3.0.0-5020620260917001", "@vue/server-renderer": "3.4.21" } }, "node_modules/@dcloudio/uni-i18n": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-i18n/-/uni-i18n-3.0.0-5020420260813003.tgz", - "integrity": "sha512-fVIdM+pj3N57rwGEVAdS1T5iXLCb4BMYcKM1cZp+9I3g80ehBdcTt8g4QO1N5JgQTNCYrrOMySjJ1j6HljVRiQ==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-i18n/-/uni-i18n-3.0.0-5020620260917001.tgz", + "integrity": "sha512-+8RUB3t8eoq6pdSviXw26F7h1YxqGAxksQuvldn3OrII30RPCQ2nRILF6Qu0DD+tg+SuXLFWX3sEC94e2YScRw==", "license": "Apache-2.0" }, "node_modules/@dcloudio/uni-mp-alipay": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-mp-alipay/-/uni-mp-alipay-3.0.0-5020420260813003.tgz", - "integrity": "sha512-qXzoSLnNNbgFxa2TZnFYflq/EDfpRhIgzzUJaxtBaTMi36cQ1x8DMMf4Dt5o5mUVWpbBM9DGns5j/GX7ise/jw==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-mp-alipay/-/uni-mp-alipay-3.0.0-5020620260917001.tgz", + "integrity": "sha512-LVjyh6EWVAuqHefM883zr3Dta81t7Iia9dsYalQCa0NRgi29dVUgbda+hxfsz7KmxK9AU+bI+/5vo0cBnaqpKQ==", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-compiler": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-vite": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-vue": "3.0.0-5020420260813003", - "@dcloudio/uni-shared": "3.0.0-5020420260813003", + "@dcloudio/uni-cli-shared": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-compiler": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-vite": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-vue": "3.0.0-5020620260917001", + "@dcloudio/uni-shared": "3.0.0-5020620260917001", "@vue/compiler-core": "3.4.21", "@vue/shared": "3.4.21" } }, "node_modules/@dcloudio/uni-mp-baidu": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-mp-baidu/-/uni-mp-baidu-3.0.0-5020420260813003.tgz", - "integrity": "sha512-c5x6Yv6ncEdOec/0yTIOrnOvi/RKbD5qTA6gSB1lfbHfoHbH6Owgd3BzxUNkIUfMIBj0hSnL+XYedQzflzGwOA==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-mp-baidu/-/uni-mp-baidu-3.0.0-5020620260917001.tgz", + "integrity": "sha512-SxyyvYfXnJm3WhbSm7rOI//cEE2CADvHG9sAJKbMhmaGy40YfayDCFsg78Izsnklxd4mQl4gWNy/E0+X8X8ckg==", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-app": "3.0.0-5020420260813003", - "@dcloudio/uni-cli-shared": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-compiler": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-vite": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-vue": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-weixin": "3.0.0-5020420260813003", - "@dcloudio/uni-shared": "3.0.0-5020420260813003", + "@dcloudio/uni-app": "3.0.0-5020620260917001", + "@dcloudio/uni-cli-shared": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-compiler": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-vite": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-vue": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-weixin": "3.0.0-5020620260917001", + "@dcloudio/uni-shared": "3.0.0-5020620260917001", "@vue/compiler-core": "3.4.21", "@vue/shared": "3.4.21", "jimp": "0.10.3", @@ -2510,16 +2511,16 @@ } }, "node_modules/@dcloudio/uni-mp-compiler": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-mp-compiler/-/uni-mp-compiler-3.0.0-5020420260813003.tgz", - "integrity": "sha512-Y18fSqiakMhL/NLLN9HQoCfZ1NhhAVahUXjcrTeQa0xUVXXxetbHeknJdL5nYuTvk7+qzO1XwK9EJffaUESjBg==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-mp-compiler/-/uni-mp-compiler-3.0.0-5020620260917001.tgz", + "integrity": "sha512-V24RvEEcnzyuZe43ylVgYg4d/EICcpLhXIYwBIigX0uSbrIGDIVOOoWBS1U5ewh83kZ5k5i6ppcZg5FTI10Mrg==", "license": "Apache-2.0", "dependencies": { "@babel/generator": "7.25.6", "@babel/parser": "7.25.6", "@babel/types": "7.25.6", - "@dcloudio/uni-cli-shared": "3.0.0-5020420260813003", - "@dcloudio/uni-shared": "3.0.0-5020420260813003", + "@dcloudio/uni-cli-shared": "3.0.0-5020620260917001", + "@dcloudio/uni-shared": "3.0.0-5020620260917001", "@vue/compiler-core": "3.4.21", "@vue/compiler-dom": "3.4.21", "@vue/shared": "3.4.21", @@ -2528,7 +2529,7 @@ }, "node_modules/@dcloudio/uni-mp-compiler/node_modules/@babel/generator": { "version": "7.25.6", - "resolved": "https://registry.npmmirror.com/@babel/generator/-/generator-7.25.6.tgz", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.25.6.tgz", "integrity": "sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw==", "license": "MIT", "dependencies": { @@ -2543,7 +2544,7 @@ }, "node_modules/@dcloudio/uni-mp-compiler/node_modules/jsesc": { "version": "2.5.2", - "resolved": "https://registry.npmmirror.com/jsesc/-/jsesc-2.5.2.tgz", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", "license": "MIT", "bin": { @@ -2554,107 +2555,107 @@ } }, "node_modules/@dcloudio/uni-mp-harmony": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-mp-harmony/-/uni-mp-harmony-3.0.0-5020420260813003.tgz", - "integrity": "sha512-/ybUv3kytjuZgfrhYJb83zep5D+QXHngHQ1lV8mHi0LI9dgZZRhW4p5epSPV5IC7GR98VaylNyr0716ydNcoxw==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-mp-harmony/-/uni-mp-harmony-3.0.0-5020620260917001.tgz", + "integrity": "sha512-+UTW9KKLmJWbhe7MwweyoASUUpxwspywpeuriYzL/9yjzVR89jNfwk/3nTYYe7U/eGSd9gENivZ147yo7yq+Eg==", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-toutiao": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-vite": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-vue": "3.0.0-5020420260813003", - "@dcloudio/uni-quickapp-webview": "3.0.0-5020420260813003", - "@dcloudio/uni-shared": "3.0.0-5020420260813003", + "@dcloudio/uni-cli-shared": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-toutiao": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-vite": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-vue": "3.0.0-5020620260917001", + "@dcloudio/uni-quickapp-webview": "3.0.0-5020620260917001", + "@dcloudio/uni-shared": "3.0.0-5020620260917001", "@vue/shared": "3.4.21" } }, "node_modules/@dcloudio/uni-mp-jd": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-mp-jd/-/uni-mp-jd-3.0.0-5020420260813003.tgz", - "integrity": "sha512-J87gG4v2IZ4So9Mfolek8fmW8qTF7zBgCPsjZXKqYLTY3p4eVgDilQWjqLG69LzQ9/RVi221Ltea62xLR8IzQQ==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-mp-jd/-/uni-mp-jd-3.0.0-5020620260917001.tgz", + "integrity": "sha512-QEHYfDRcdU9DOgU/239OiOqPJoyV/rHTdH7viCx07TrmBi1ltqcmMHujUBW9X+qnN0hq9MdkN5afjnItpJDYnA==", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-compiler": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-vite": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-vue": "3.0.0-5020420260813003", - "@dcloudio/uni-shared": "3.0.0-5020420260813003", + "@dcloudio/uni-cli-shared": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-compiler": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-vite": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-vue": "3.0.0-5020620260917001", + "@dcloudio/uni-shared": "3.0.0-5020620260917001", "@vue/shared": "3.4.21" } }, "node_modules/@dcloudio/uni-mp-kuaishou": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-mp-kuaishou/-/uni-mp-kuaishou-3.0.0-5020420260813003.tgz", - "integrity": "sha512-CJD/al6qaVd+x9NuxH/fdhw0mhHgF7DvhL1iiLIrLjC4245NLuxA/jA30L+USrsbnKRftSuKZUijiAz7row0LQ==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-mp-kuaishou/-/uni-mp-kuaishou-3.0.0-5020620260917001.tgz", + "integrity": "sha512-WHwxImpd+vsLvRWXyg7lNInGqKlyHUrizJtg3cweIA9emfCY7MnP3er+7yyH3Xud73usRJ/sC3f5XOsOWkeZWA==", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-compiler": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-vite": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-vue": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-weixin": "3.0.0-5020420260813003", - "@dcloudio/uni-shared": "3.0.0-5020420260813003", + "@dcloudio/uni-cli-shared": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-compiler": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-vite": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-vue": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-weixin": "3.0.0-5020620260917001", + "@dcloudio/uni-shared": "3.0.0-5020620260917001", "@vue/compiler-core": "3.4.21", "@vue/shared": "3.4.21" } }, "node_modules/@dcloudio/uni-mp-lark": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-mp-lark/-/uni-mp-lark-3.0.0-5020420260813003.tgz", - "integrity": "sha512-BkBK6kV3yG0o9MEXE5XRoS1RjnOdnYNp6tkWUseIam71en6pRBNqgndLidt2L6Y8B7dF59w46SBnBXeRX34h2g==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-mp-lark/-/uni-mp-lark-3.0.0-5020620260917001.tgz", + "integrity": "sha512-FI0hAhvw/LEGR6gaD9W8mn1Mu8DBiEi1tKYNQoKztvjC4SdjrTYOwahY1TwejMdsYkRCW2xONy2cTpTJLfFvCw==", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-compiler": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-toutiao": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-vite": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-vue": "3.0.0-5020420260813003", - "@dcloudio/uni-shared": "3.0.0-5020420260813003", + "@dcloudio/uni-cli-shared": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-compiler": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-toutiao": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-vite": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-vue": "3.0.0-5020620260917001", + "@dcloudio/uni-shared": "3.0.0-5020620260917001", "@vue/compiler-core": "3.4.21", "@vue/shared": "3.4.21" } }, "node_modules/@dcloudio/uni-mp-qq": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-mp-qq/-/uni-mp-qq-3.0.0-5020420260813003.tgz", - "integrity": "sha512-VUSUuHjdkkcStlfc48nJ5E8hYm/sQYh+JHbKlDgGApoOAJAqqJQ8DlbTavnLyj28KxcfUXl0h/7PH0lJrUfPTg==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-mp-qq/-/uni-mp-qq-3.0.0-5020620260917001.tgz", + "integrity": "sha512-KABQzDWevcpNZC9zc++uTh0P+l/ewKsjF//gOB4BHsywiAF8Krn49PxNaIng5vFIcA3mGjqKA0vLc5ZvZCcArg==", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-compiler": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-vite": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-vue": "3.0.0-5020420260813003", - "@dcloudio/uni-shared": "3.0.0-5020420260813003", + "@dcloudio/uni-cli-shared": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-compiler": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-vite": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-vue": "3.0.0-5020620260917001", + "@dcloudio/uni-shared": "3.0.0-5020620260917001", "@vue/shared": "3.4.21", "fs-extra": "10.1.0" } }, "node_modules/@dcloudio/uni-mp-toutiao": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-mp-toutiao/-/uni-mp-toutiao-3.0.0-5020420260813003.tgz", - "integrity": "sha512-CqBgJazSSVPltkFyOOV2LKkgw8nXgJBxBVGf3uf0GfmIeeq28jr/lhOcxDE6INX4FnYqg46QIFJGW82ZaS2mWQ==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-mp-toutiao/-/uni-mp-toutiao-3.0.0-5020620260917001.tgz", + "integrity": "sha512-i4OcxksIpo8zDuD0VmmUsN83pDonm/IfV+LyLuYTLC+fBpiPtDs3CYg3gf5gMMr/YZ1qMBDzHZny0OJ9dXm/+Q==", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-compiler": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-vite": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-vue": "3.0.0-5020420260813003", - "@dcloudio/uni-shared": "3.0.0-5020420260813003", + "@dcloudio/uni-cli-shared": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-compiler": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-vite": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-vue": "3.0.0-5020620260917001", + "@dcloudio/uni-shared": "3.0.0-5020620260917001", "@vue/compiler-core": "3.4.21", "@vue/shared": "3.4.21" } }, "node_modules/@dcloudio/uni-mp-vite": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-mp-vite/-/uni-mp-vite-3.0.0-5020420260813003.tgz", - "integrity": "sha512-CUBQq8nhqDCzdW80APXzPiqDWBtV5b3o3WPMwY/o13Y6eClxyRbug3fXDfsyPm30vRvTjvQD6wQsQFKgEq08Sw==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-mp-vite/-/uni-mp-vite-3.0.0-5020620260917001.tgz", + "integrity": "sha512-RzEvyT4Le2sjId4CYN32NEWewUSRmUMH0dhK0s7phSeH+wYTi18su0/XdcJALTu2UOMNsCw6VSfhG56NSc4rrg==", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-5020420260813003", - "@dcloudio/uni-i18n": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-compiler": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-vue": "3.0.0-5020420260813003", - "@dcloudio/uni-shared": "3.0.0-5020420260813003", + "@dcloudio/uni-cli-shared": "3.0.0-5020620260917001", + "@dcloudio/uni-i18n": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-compiler": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-vue": "3.0.0-5020620260917001", + "@dcloudio/uni-shared": "3.0.0-5020620260917001", "@vue/compiler-dom": "3.4.21", "@vue/compiler-sfc": "3.4.21", "@vue/shared": "3.4.21", @@ -2662,26 +2663,26 @@ } }, "node_modules/@dcloudio/uni-mp-vue": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-mp-vue/-/uni-mp-vue-3.0.0-5020420260813003.tgz", - "integrity": "sha512-kN0xYbGqrBRwpL3eaXYyB/+iJPzEmieo7Y2nGMp69ZqnLHnCN7mSWEvYahS5jlD9rwczNosuf7lAclGqz7B8Hg==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-mp-vue/-/uni-mp-vue-3.0.0-5020620260917001.tgz", + "integrity": "sha512-M0sYXb8lcRW4ozNejDSSqPC8a18RWDysUtGNC4WDQq/Aj3OT2mzHnr7oHmAc5Cbm9TZOkDW5wC5B0s0BnTClZw==", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-shared": "3.0.0-5020420260813003", + "@dcloudio/uni-shared": "3.0.0-5020620260917001", "@vue/shared": "3.4.21" } }, "node_modules/@dcloudio/uni-mp-weixin": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-mp-weixin/-/uni-mp-weixin-3.0.0-5020420260813003.tgz", - "integrity": "sha512-qiXoWGQ2lAKx8YLfhc4DCMuS/uid+gYxE3m7sI93L4z+BMjqwL8Yi+Rz79nzU2COHzNrsXuwrtFpNfBXV72ePw==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-mp-weixin/-/uni-mp-weixin-3.0.0-5020620260917001.tgz", + "integrity": "sha512-mMMHtfCkKa/3iV5Vov6PGj2OXCVK0TT6wAjmZPRqDbSe6KA6CTFlwM/xEhK55HbxaDU6IcCTFfwr0pQE0c0Kmg==", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-compiler": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-vite": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-vue": "3.0.0-5020420260813003", - "@dcloudio/uni-shared": "3.0.0-5020420260813003", + "@dcloudio/uni-cli-shared": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-compiler": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-vite": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-vue": "3.0.0-5020620260917001", + "@dcloudio/uni-shared": "3.0.0-5020620260917001", "@vue/shared": "3.4.21", "jimp": "0.10.3", "licia": "1.41.1", @@ -2691,23 +2692,23 @@ } }, "node_modules/@dcloudio/uni-mp-xhs": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-mp-xhs/-/uni-mp-xhs-3.0.0-5020420260813003.tgz", - "integrity": "sha512-MQukDYgarGCuB5gtSuHZ6Soeovn3QIvoepQ12ETbajVTYoqkMynlwxofKdaRb6veRg7ZbB9/D1PACqeDroeQqg==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-mp-xhs/-/uni-mp-xhs-3.0.0-5020620260917001.tgz", + "integrity": "sha512-23q07vmj3/r6f0utJ1F/nF5omo9Vy6Q9JwSzfM6zJbgZ5ASxDcM77H/DfMww0Mcus9bJpkIdosi3UQT/u8xLFQ==", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-compiler": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-vite": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-vue": "3.0.0-5020420260813003", - "@dcloudio/uni-shared": "3.0.0-5020420260813003", + "@dcloudio/uni-cli-shared": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-compiler": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-vite": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-vue": "3.0.0-5020620260917001", + "@dcloudio/uni-shared": "3.0.0-5020620260917001", "@vue/shared": "3.4.21" } }, "node_modules/@dcloudio/uni-nvue-styler": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-nvue-styler/-/uni-nvue-styler-3.0.0-5020420260813003.tgz", - "integrity": "sha512-J2LdLVxgmFWOloPZYObVaBUTVYd/OBSq+N90qOU1ZrIgi58+mnmR3ZeGKSR1++Cbhk+kJfVl9gIuz+8Zx3TrSA==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-nvue-styler/-/uni-nvue-styler-3.0.0-5020620260917001.tgz", + "integrity": "sha512-RVrHGvzpGNrWTTLAeANZtfbFkoFV3XZIBvjcvwF0/+lT7a5z+9KAQT29Pd51VZFHEhGgRR4GyVbVVUquS+g+0g==", "license": "Apache-2.0", "dependencies": { "@vue/shared": "3.4.21", @@ -2718,13 +2719,13 @@ }, "node_modules/@dcloudio/uni-nvue-styler/node_modules/picocolors": { "version": "1.1.1", - "resolved": "https://registry.npmmirror.com/picocolors/-/picocolors-1.1.1.tgz", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", "license": "ISC" }, "node_modules/@dcloudio/uni-nvue-styler/node_modules/postcss": { "version": "8.5.6", - "resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.5.6.tgz", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", "funding": [ { @@ -2751,58 +2752,58 @@ } }, "node_modules/@dcloudio/uni-push": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-push/-/uni-push-3.0.0-5020420260813003.tgz", - "integrity": "sha512-uv5IzxUX1N5vrUOdMjmYarAePwabgra96JUxcCnHivNnRKJiNIxo8hHVizFbwOqL9+mvc89eeUK+eYPbhKWWug==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-push/-/uni-push-3.0.0-5020620260917001.tgz", + "integrity": "sha512-X6jvClIroUc9lUoNpYAQe5UbUsl0WKiljqKtO2vaRRIzEGGKuMwbFLIpRRccoGNWHh+p2GJ9dKQM8KguFp341g==", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-5020420260813003" + "@dcloudio/uni-cli-shared": "3.0.0-5020620260917001" } }, "node_modules/@dcloudio/uni-quickapp-webview": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-quickapp-webview/-/uni-quickapp-webview-3.0.0-5020420260813003.tgz", - "integrity": "sha512-Bp9unZtwDLzlBprgHYyZd/e9dxd4Myc86z7CjhOPwESuCZtuajmw4mqpfYSC7Qsb1OfEHJt/Z/zu76zk9HNC+Q==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-quickapp-webview/-/uni-quickapp-webview-3.0.0-5020620260917001.tgz", + "integrity": "sha512-stVyKq02Kj0l/R7ceuNfy1b1OW3X176Xt6s18qVxZN2JQwRyJ8WhNz0vOD9ZQ5GQ3DLgj3shORd47XjI4t6oJw==", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-vite": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-vue": "3.0.0-5020420260813003", - "@dcloudio/uni-shared": "3.0.0-5020420260813003", + "@dcloudio/uni-cli-shared": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-vite": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-vue": "3.0.0-5020620260917001", + "@dcloudio/uni-shared": "3.0.0-5020620260917001", "@vue/shared": "3.4.21" } }, "node_modules/@dcloudio/uni-shared": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-shared/-/uni-shared-3.0.0-5020420260813003.tgz", - "integrity": "sha512-U/osc72UGcoSWfdxZOPs9ftITACE/yXsNFheP74fypTtudNzcudkz/o3dN6ClOESVh/VE9dZeecNpoNhY8qPfQ==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-shared/-/uni-shared-3.0.0-5020620260917001.tgz", + "integrity": "sha512-QYgG7OCZlHBtQ5rIDBFc/49JORKts/on8hhX/HfQONdtdNHtHpeSBvzlsiLJhnSKiiY8yrxHSWjsBcLg5U56xg==", "license": "Apache-2.0", "dependencies": { "@vue/shared": "3.4.21" } }, "node_modules/@dcloudio/uni-stacktracey": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-stacktracey/-/uni-stacktracey-3.0.0-5020420260813003.tgz", - "integrity": "sha512-wYR5FyDvplffjKltj39KxpTdU0cE/kWHbgmo21B5UCMMsm9RvF2ARUMfld6pZ1NPlAxrqj322RovniDul+9gOw==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-stacktracey/-/uni-stacktracey-3.0.0-5020620260917001.tgz", + "integrity": "sha512-IQvOBHrpWGpPXiR0ZE0fyhqXp/yqmGOI7rUZH7Ar3R7bqaCwm1LoKC0sO0uGpuUN+63tkjmO8b1Y2tNsGBDVjA==", "dev": true, "license": "Apache-2.0" }, "node_modules/@dcloudio/uni-stat": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/uni-stat/-/uni-stat-3.0.0-5020420260813003.tgz", - "integrity": "sha512-I4RL+sq4/R3yjWowlCXsOeGyCP4cpW10Pk0bzKk6E7dy99mi5EDqOrPbmBSdwb3uU9qjG+ATh5lFqkWBQboxCA==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-stat/-/uni-stat-3.0.0-5020620260917001.tgz", + "integrity": "sha512-mTfWF/JfqDQjAKmFadh2RVcknNC5pS1XU8CqCbXEwudJrJBQPs4fk7oK1MPtbzk2xl3S5kgTU8VGZocn8Fy+WQ==", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-5020420260813003", - "@dcloudio/uni-shared": "3.0.0-5020420260813003", + "@dcloudio/uni-cli-shared": "3.0.0-5020620260917001", + "@dcloudio/uni-shared": "3.0.0-5020620260917001", "debug": "4.3.7" } }, "node_modules/@dcloudio/vite-plugin-uni": { - "version": "3.0.0-5020420260813003", - "resolved": "https://registry.npmmirror.com/@dcloudio/vite-plugin-uni/-/vite-plugin-uni-3.0.0-5020420260813003.tgz", - "integrity": "sha512-aJ2/Dx0GykpfWU+LeA+7Vrv5KJM+qD4eX0mb3s3yVnfUr/Btn0cGT7WWvSeA+BtUg90SoHgONmsLnLgbSLNk8w==", + "version": "3.0.0-5020620260917001", + "resolved": "https://registry.npmjs.org/@dcloudio/vite-plugin-uni/-/vite-plugin-uni-3.0.0-5020620260917001.tgz", + "integrity": "sha512-xuvFhO8nvBZwfjodOFgppgVUtVM9hZZljZspQSJDNAE7/1loGGPb7hpoRroGLZ1nGeOknwxYWwtvELmxT4gVuA==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -2810,9 +2811,9 @@ "@babel/plugin-syntax-import-meta": "^7.10.4", "@babel/plugin-transform-typescript": "^7.23.3", "@babel/types": "7.25.6", - "@dcloudio/uni-cli-shared": "3.0.0-5020420260813003", - "@dcloudio/uni-nvue-styler": "3.0.0-5020420260813003", - "@dcloudio/uni-shared": "3.0.0-5020420260813003", + "@dcloudio/uni-cli-shared": "3.0.0-5020620260917001", + "@dcloudio/uni-nvue-styler": "3.0.0-5020620260917001", + "@dcloudio/uni-shared": "3.0.0-5020620260917001", "@rollup/pluginutils": "5.1.0", "@vitejs/plugin-legacy": "5.3.2", "@vitejs/plugin-vue": "5.2.4", @@ -4612,22 +4613,6 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "node_modules/@napi-rs/lzma-linux-x64-gnu": { - "version": "1.5.1", - "resolved": "https://registry.npmmirror.com/@napi-rs/lzma-linux-x64-gnu/-/lzma-linux-x64-gnu-1.5.1.tgz", - "integrity": "sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": "^22.20 || ^24.12 || >=25" - } - }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmmirror.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -4974,9 +4959,9 @@ } }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.64.3.tgz", - "integrity": "sha512-a31GFbL70GlGUGhn8goVjRLtdDG1urLCJFWLZ7JcxdHK9pPvCohLFtYLgJDdNbtrNZSrJl1u9bK05ISsSC2EpA==", + "version": "4.14.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.14.3.tgz", + "integrity": "sha512-X9alQ3XM6I9IlSlmC8ddAvMSyG1WuHk5oUnXGw+yUBs3BFoTizmG1La/Gr8fVJvDWAq+zlYTZ9DBgrlKRVY06g==", "cpu": [ "arm" ], @@ -4987,9 +4972,9 @@ ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.64.3.tgz", - "integrity": "sha512-IRv757RLiPGlNxAX5JXU0eiUlUPvKiwFRbkqLd+gywptLK4uSEg1qkl6en6r0cXMazSnWUWOBABv+QfuLV3n5Q==", + "version": "4.14.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.14.3.tgz", + "integrity": "sha512-eQK5JIi+POhFpzk+LnjKIy4Ks+pwJ+NXmPxOCSvOKSNRPONzKuUvWE+P9JxGZVxrtzm6BAYMaL50FFuPe0oWMQ==", "cpu": [ "arm64" ], @@ -5000,9 +4985,9 @@ ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.64.3.tgz", - "integrity": "sha512-UkzI35Fnz6+MJNATdnjnZ3TpdG/rXab8h7oDOD9R0zDVIFmuuYrvgUj8V8mh+A//+LR4TlEQo4ZW4RhyRtWv3A==", + "version": "4.14.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.14.3.tgz", + "integrity": "sha512-Od4vE6f6CTT53yM1jgcLqNfItTsLt5zE46fdPaEmeFHvPs5SjZYlLpHrSiHEKR1+HdRfxuzXHjDOIxQyC3ptBA==", "cpu": [ "arm64" ], @@ -5013,9 +4998,9 @@ ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.64.3.tgz", - "integrity": "sha512-C3AyMtAnKQ/jSkZ0chIoWbPXRbFz8JnPLhl1ULecEhcaOGkT19xt7KmO8BulQxt9S/XideHRXvsVQUbGj4JCOg==", + "version": "4.14.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.14.3.tgz", + "integrity": "sha512-0IMAO21axJeNIrvS9lSe/PGthc8ZUS+zC53O0VhF5gMxfmcKAP4ESkKOCwEi6u2asUrt4mQv2rjY8QseIEb1aw==", "cpu": [ "x64" ], @@ -5025,36 +5010,10 @@ "darwin" ] }, - "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.64.3.tgz", - "integrity": "sha512-M8yAdBMyHh14JLeXDNGvEkljzuHdcoLBQ399O4Fp4nvX51lueuEY/5U2G9Ci0D6/bQlBp/3JLiBQH55STwwbwg==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.64.3.tgz", - "integrity": "sha512-WQjuOKGh2FN98ZK6i0uM6M6YqnPEds85p3oRkrxiEeTQo/p7RpuU8c9MwQ88LfgwVAzohumlzbQQSikz4Zw9rw==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.64.3.tgz", - "integrity": "sha512-5tDLZG5s9WyVKoEHgwos6FpKrgpotl61EYeHSLSVkQzMzTsaClwEr8mok9rm3y734zjiGInG4dfw/56ebWVvEQ==", + "version": "4.14.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.14.3.tgz", + "integrity": "sha512-ge2DC7tHRHa3caVEoSbPRJpq7azhG+xYsd6u2MEnJ6XzPSzQsTKyXvh6iWjXRf7Rt9ykIUWHtl0Uz3T6yXPpKw==", "cpu": [ "arm" ], @@ -5065,9 +5024,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.64.3.tgz", - "integrity": "sha512-Mh5KbLeplM2HX6lQI18jsxSsqvPW8d+Hyk8HtY6Zl93woMitRSCZ92rBEzq6v8bfZGlpyMgj4P/sKW4KCjhH3A==", + "version": "4.14.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.14.3.tgz", + "integrity": "sha512-ljcuiDI4V3ySuc7eSk4lQ9wU8J8r8KrOUvB2U+TtK0TiW6OFDmJ+DdIjjwZHIw9CNxzbmXY39wwpzYuFDwNXuw==", "cpu": [ "arm" ], @@ -5078,9 +5037,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.64.3.tgz", - "integrity": "sha512-QZrrwHnznTv6y4iiHtCqDN+ZsF4qNFQObMOLgPrbxhh9O5o4rgoUe5OnkqG/ceCObMrAjhQt+eQ6HSDzBFgVMw==", + "version": "4.14.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.14.3.tgz", + "integrity": "sha512-Eci2us9VTHm1eSyn5/eEpaC7eP/mp5n46gTRB3Aar3BgSvDQGJZuicyq6TsH4HngNBgVqC5sDYxOzTExSU+NjA==", "cpu": [ "arm64" ], @@ -5091,9 +5050,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.64.3.tgz", - "integrity": "sha512-4vLehpXSwlkltnvk5ETB+Hz+d3xayZS3NamZ5Vq4bSo+IUoIALovEJF1YgWPMjHwN7R5o/R4BpP9h3q8EK1xAA==", + "version": "4.14.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.14.3.tgz", + "integrity": "sha512-UrBoMLCq4E92/LCqlh+blpqMz5h1tJttPIniwUgOFJyjWI1qrtrDhhpHPuFxULlUmjFHfloWdixtDhSxJt5iKw==", "cpu": [ "arm64" ], @@ -5103,49 +5062,10 @@ "linux" ] }, - "node_modules/@rollup/rollup-linux-loong64-gnu": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.64.3.tgz", - "integrity": "sha512-SEN7TTTOdXJKZmsWKOnQeVfgy3Dje/08ISXWwFhTggQ3SxjuIaChvmOB5ZDZqJNlBjaXrV6nAHraqEAvdLGqcw==", - "cpu": [ - "loong64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-loong64-musl": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.64.3.tgz", - "integrity": "sha512-1LDsQMRMCEdGF9Dih5qyh6fF1LK3NnA+pAtE2+9AgZwUdXyd19TOBVC9crSB63iZBHR4vOG7h8gN/LcUH3J7xw==", - "cpu": [ - "loong64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.64.3.tgz", - "integrity": "sha512-v3D2tAfRriqGOi+5Ac5CiYbBo2NXtLVxJlludTvUZRj502lVMFeVIuvvWbz4qCrotn3e3Uvpvh7FcMpG2QxxXQ==", - "cpu": [ - "ppc64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-ppc64-musl": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.64.3.tgz", - "integrity": "sha512-db5q6dP189V2+JkMpsXBl8ym6bC0x8ydZ47fUJZ9YdM6T2OF5uqNzX9HaAZHRP/lqjA9bJeNwi0qw1/2/37dUA==", + "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { + "version": "4.14.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.14.3.tgz", + "integrity": "sha512-5aRjvsS8q1nWN8AoRfrq5+9IflC3P1leMoy4r2WjXyFqf3qcqsxRCfxtZIV58tCxd+Yv7WELPcO9mY9aeQyAmw==", "cpu": [ "ppc64" ], @@ -5156,22 +5076,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.64.3.tgz", - "integrity": "sha512-nArAVDmrL5ix9UoipcKEsYJw4kMUQCIPYRWuYF2POOC7jd9rmN95d/48ewsYFC/OdtwEx6VYYWYxrp8FbMOU2Q==", - "cpu": [ - "riscv64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.64.3.tgz", - "integrity": "sha512-2dc7LElu7EVSvpQT8epNnBLa02wlqilNYqHN0FA/RaKqCr9U9ZFYQ0Eh4sfgSzLneLDuJsJRjcezR/l2UyYGXA==", + "version": "4.14.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.14.3.tgz", + "integrity": "sha512-sk/Qh1j2/RJSX7FhEpJn8n0ndxy/uf0kI/9Zc4b1ELhqULVdTfN6HL31CDaTChiBAOgLcsJ1sgVZjWv8XNEsAQ==", "cpu": [ "riscv64" ], @@ -5182,9 +5089,9 @@ ] }, "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.64.3.tgz", - "integrity": "sha512-9PYq2IEzSwXcvQLERcT9LKXRzw8J05GFTbJHA2anJR2WmlRjA1esgXVYhanp+bmjKsDVoZeU2L7Z2pRClLcZTw==", + "version": "4.14.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.14.3.tgz", + "integrity": "sha512-jOO/PEaDitOmY9TgkxF/TQIjXySQe5KVYB57H/8LRP/ux0ZoO8cSHCX17asMSv3ruwslXW/TLBcxyaUzGRHcqg==", "cpu": [ "s390x" ], @@ -5195,9 +5102,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.64.3.tgz", - "integrity": "sha512-vMh+mt0cw1BHldd8cqaU6A5s1W4EUKl6+8MRsv86mj954L4xyruKD7qPXMUI2icImadAZARK10h0onaGTLmCVg==", + "version": "4.14.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.14.3.tgz", + "integrity": "sha512-8ybV4Xjy59xLMyWo3GCfEGqtKV5M5gCSrZlxkPGvEPCGDLNla7v48S662HSGwRd6/2cSneMQWiv+QzcttLrrOA==", "cpu": [ "x64" ], @@ -5208,9 +5115,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.64.3.tgz", - "integrity": "sha512-PpiKU+sWbqDGc0U0su8oXiyeyqm0UQjmaaPKHktX+DaLe6YKJwW2YVD0f2AXHdVvblZbRqpwRVClWP2F5HCqrQ==", + "version": "4.14.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.14.3.tgz", + "integrity": "sha512-s+xf1I46trOY10OqAtZ5Rm6lzHre/UiLA1J2uOhCFXWkbZrJRkYBPO6FhvGfHmdtQ3Bx793MNa7LvoWFAm93bg==", "cpu": [ "x64" ], @@ -5220,36 +5127,10 @@ "linux" ] }, - "node_modules/@rollup/rollup-openbsd-x64": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.64.3.tgz", - "integrity": "sha512-/3enY/AmaIt8IS0fWjX4ztYVPBqkj49cQTy/hCryhBFaEzDfJwwEolq9sxvyWAM2qmsmVuPdeRg5JXSrmeqvJg==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ] - }, - "node_modules/@rollup/rollup-openharmony-arm64": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.64.3.tgz", - "integrity": "sha512-zsEP/QDuet52hhwvi5T1VPg0/Tkms0m3zkVv7CPsznvhdO4pL4oJTMz26EJsiCe18OeLKPgpTu3XVO3C1eq3ew==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ] - }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.64.3.tgz", - "integrity": "sha512-4ESknW4Db+kqvazVOfsReYJaHxcIsOqcgwjKV2J1tG5Bn4RVf5ocTQKSGuq2HWBJcOLuyim8IWX8DuH6nKmELA==", + "version": "4.14.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.14.3.tgz", + "integrity": "sha512-+4h2WrGOYsOumDQ5S2sYNyhVfrue+9tc9XcLWLh+Kw3UOxAvrfOrSMFon60KspcDdytkNDh7K2Vs6eMaYImAZg==", "cpu": [ "arm64" ], @@ -5260,9 +5141,9 @@ ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.64.3.tgz", - "integrity": "sha512-3B8VCQyIyv7FQxYYhb3HpR3bIpronR20txjMSffSoz/sm/DDs3/49CFpEueOsvq9qW9sWoI/6pi6mtciD9NXFg==", + "version": "4.14.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.14.3.tgz", + "integrity": "sha512-T1l7y/bCeL/kUwh9OD4PQT4aM7Bq43vX05htPJJ46RTI4r5KNt6qJRzAfNfM+OYMNEVBWQzR2Gyk+FXLZfogGw==", "cpu": [ "ia32" ], @@ -5272,23 +5153,10 @@ "win32" ] }, - "node_modules/@rollup/rollup-win32-x64-gnu": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.64.3.tgz", - "integrity": "sha512-YOoDkKh2oQxOxRB5D9AR8sj3qpMShpmyTkjojiBjMGigz3caV7UvCnXWWUQC0TBmrZ5zuHe2pWl8S+cMfvXzRg==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.64.3.tgz", - "integrity": "sha512-qTv4bG+eKJKifzxNJevMUh8L6CjJrz9/Kn1IbP2F5bo0tBzNIR7HMg4vni6XmDzcKUl00lHHY+J5ZgjbGiujOQ==", + "version": "4.14.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.14.3.tgz", + "integrity": "sha512-/BypzV0H1y1HzgYpxqRaXGBRqfodgoBBCcsrujT6QRcakDQdfU+Lq9PENPh5jB4I44YWq+0C2eHsHya+nZY1sA==", "cpu": [ "x64" ], @@ -5490,7 +5358,7 @@ }, "node_modules/@vitejs/plugin-basic-ssl": { "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/@vitejs/plugin-basic-ssl/-/plugin-basic-ssl-1.2.0.tgz", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-basic-ssl/-/plugin-basic-ssl-1.2.0.tgz", "integrity": "sha512-mkQnxTkcldAzIsomk1UuLfAu9n+kpQ3JbHcpCp7d2Oo6ITtji8pHS3QToOWjhPFvNQSnhlkAjmGbhv2QvwO/7Q==", "license": "MIT", "engines": { @@ -5851,7 +5719,7 @@ }, "node_modules/@vue/consolidate": { "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/@vue/consolidate/-/consolidate-1.0.0.tgz", + "resolved": "https://registry.npmjs.org/@vue/consolidate/-/consolidate-1.0.0.tgz", "integrity": "sha512-oTyUE+QHIzLw2PpV14GD/c7EohDyP64xCniWTcqcEmTd699eFqTIwOmtDYjcO1j3QgdXoJEoWv1/cCdLrRoOfg==", "license": "MIT", "engines": { @@ -5917,43 +5785,43 @@ } }, "node_modules/@vue/reactivity": { - "version": "3.5.43", - "resolved": "https://registry.npmmirror.com/@vue/reactivity/-/reactivity-3.5.43.tgz", - "integrity": "sha512-G/c9GyOZNI2jVaaS6OX1EF1SSFSv7H0ERqNTl4+DTFMlZmB5eVAB53aLQNam/7NL2NPtaDD7RdVrzf8uJzMuOA==", + "version": "3.5.44", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.44.tgz", + "integrity": "sha512-u+QJdKeBBEADkPdevsL+6E12QlYVfBD8Zcw5qjDQKtamI6l14KyqazJMobhCKelhWN5zpyKUiEDoTyHE93cqWw==", "dev": true, "license": "MIT", "dependencies": { - "@vue/shared": "3.5.43" + "@vue/shared": "3.5.44" } }, "node_modules/@vue/reactivity/node_modules/@vue/shared": { - "version": "3.5.43", - "resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.5.43.tgz", - "integrity": "sha512-uksS7YGMR5NZyr4JNq0Rp+QyLns0ueaz20KwzIPW9R0LH1Vnt4E+XUM29PNseEbf1www2gOuhuDi5AKOIXag9Q==", + "version": "3.5.44", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.44.tgz", + "integrity": "sha512-H82XLH0DjmSOdbEwO15x3QTo1f5PWEtv237eLpYKc0mqLu+B8hnq16lFWmuBmNurkeiG3wr+oM1FhOll/YVFRg==", "dev": true, "license": "MIT" }, "node_modules/@vue/runtime-core": { - "version": "3.5.43", - "resolved": "https://registry.npmmirror.com/@vue/runtime-core/-/runtime-core-3.5.43.tgz", - "integrity": "sha512-hU6U6VnVhBGQDpvlnnDlIB8ZGJBiOcgk2lh/0InltHiz3D8oSkluvuvY+do1G2H3+udeKFsmaBlgVYP7gXQzEw==", + "version": "3.5.44", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.44.tgz", + "integrity": "sha512-uEa/ndwjhrrhnOfb2p+sZy6zeoamJOISqaLSJGk/8R6nABT1ZldpzcJoPzKj+zHVomVBPcmQYyC2r4LtvDV6CQ==", "dev": true, "license": "MIT", "dependencies": { - "@vue/reactivity": "3.5.43", - "@vue/shared": "3.5.43" + "@vue/reactivity": "3.5.44", + "@vue/shared": "3.5.44" } }, "node_modules/@vue/runtime-core/node_modules/@vue/shared": { - "version": "3.5.43", - "resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.5.43.tgz", - "integrity": "sha512-uksS7YGMR5NZyr4JNq0Rp+QyLns0ueaz20KwzIPW9R0LH1Vnt4E+XUM29PNseEbf1www2gOuhuDi5AKOIXag9Q==", + "version": "3.5.44", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.44.tgz", + "integrity": "sha512-H82XLH0DjmSOdbEwO15x3QTo1f5PWEtv237eLpYKc0mqLu+B8hnq16lFWmuBmNurkeiG3wr+oM1FhOll/YVFRg==", "dev": true, "license": "MIT" }, "node_modules/@vue/runtime-dom": { "version": "3.4.21", - "resolved": "https://registry.npmmirror.com/@vue/runtime-dom/-/runtime-dom-3.4.21.tgz", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.4.21.tgz", "integrity": "sha512-gvf+C9cFpevsQxbkRBS1NpU8CqxKw0ebqMvLwcGQrNpx6gqRDodqKqA+A2VZZpQ9RpK2f9yfg8VbW/EpdFUOJw==", "license": "MIT", "dependencies": { @@ -5964,7 +5832,7 @@ }, "node_modules/@vue/runtime-dom/node_modules/@vue/reactivity": { "version": "3.4.21", - "resolved": "https://registry.npmmirror.com/@vue/reactivity/-/reactivity-3.4.21.tgz", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.4.21.tgz", "integrity": "sha512-UhenImdc0L0/4ahGCyEzc/pZNwVgcglGy9HVzJ1Bq2Mm9qXOpP8RyNTjookw/gOCUlXSEtuZ2fUg5nrHcoqJcw==", "license": "MIT", "dependencies": { @@ -5973,7 +5841,7 @@ }, "node_modules/@vue/runtime-dom/node_modules/@vue/runtime-core": { "version": "3.4.21", - "resolved": "https://registry.npmmirror.com/@vue/runtime-core/-/runtime-core-3.4.21.tgz", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.4.21.tgz", "integrity": "sha512-pQthsuYzE1XcGZznTKn73G0s14eCJcjaLvp3/DKeYWoFacD9glJoqlNBxt3W2c5S40t6CCcpPf+jG01N3ULyrA==", "license": "MIT", "dependencies": { @@ -5983,7 +5851,7 @@ }, "node_modules/@vue/server-renderer": { "version": "3.4.21", - "resolved": "https://registry.npmmirror.com/@vue/server-renderer/-/server-renderer-3.4.21.tgz", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.4.21.tgz", "integrity": "sha512-aV1gXyKSN6Rz+6kZ6kr5+Ll14YzmIbeuWe7ryJl5muJ4uwSwY/aStXTixx76TwkZFJLm1aAlA/HSWEJ4EyiMkg==", "license": "MIT", "dependencies": { @@ -7213,7 +7081,7 @@ }, "node_modules/csstype": { "version": "3.2.3", - "resolved": "https://registry.npmmirror.com/csstype/-/csstype-3.2.3.tgz", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", "license": "MIT" }, @@ -10961,7 +10829,7 @@ }, "node_modules/localstorage-polyfill": { "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/localstorage-polyfill/-/localstorage-polyfill-1.0.1.tgz", + "resolved": "https://registry.npmjs.org/localstorage-polyfill/-/localstorage-polyfill-1.0.1.tgz", "integrity": "sha512-m4iHVZxFH5734oQcPKU08025gIz2+4bjWR9lulP8ZYxEJR0BpA0w32oJmkzh8y3UI9ci7xCBehQDc3oA1X+VHw==", "license": "MIT", "engines": { @@ -12320,12 +12188,12 @@ } }, "node_modules/rollup": { - "version": "4.64.3", - "resolved": "https://registry.npmmirror.com/rollup/-/rollup-4.64.3.tgz", - "integrity": "sha512-iIMWbptLYsZdGTJMH8ngApXdsCatE6bCMv2eqGIfGE1++kwh7TCWBdWKK0FKC0yx++196vGK5VdagzRXSLMa8A==", + "version": "4.14.3", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.14.3.tgz", + "integrity": "sha512-ag5tTQKYsj1bhrFC9+OEWqb5O6VYgtQDO9hPDBMmIbePwhfSr+ExlcU741t8Dhw5DkPCQf6noz0jb36D6W9/hw==", "license": "MIT", "dependencies": { - "@types/estree": "1.0.9" + "@types/estree": "1.0.5" }, "bin": { "rollup": "dist/bin/rollup" @@ -12335,35 +12203,31 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@napi-rs/lzma-linux-x64-gnu": "1.5.1", - "@rollup/rollup-android-arm-eabi": "4.64.3", - "@rollup/rollup-android-arm64": "4.64.3", - "@rollup/rollup-darwin-arm64": "4.64.3", - "@rollup/rollup-darwin-x64": "4.64.3", - "@rollup/rollup-freebsd-arm64": "4.64.3", - "@rollup/rollup-freebsd-x64": "4.64.3", - "@rollup/rollup-linux-arm-gnueabihf": "4.64.3", - "@rollup/rollup-linux-arm-musleabihf": "4.64.3", - "@rollup/rollup-linux-arm64-gnu": "4.64.3", - "@rollup/rollup-linux-arm64-musl": "4.64.3", - "@rollup/rollup-linux-loong64-gnu": "4.64.3", - "@rollup/rollup-linux-loong64-musl": "4.64.3", - "@rollup/rollup-linux-ppc64-gnu": "4.64.3", - "@rollup/rollup-linux-ppc64-musl": "4.64.3", - "@rollup/rollup-linux-riscv64-gnu": "4.64.3", - "@rollup/rollup-linux-riscv64-musl": "4.64.3", - "@rollup/rollup-linux-s390x-gnu": "4.64.3", - "@rollup/rollup-linux-x64-gnu": "4.64.3", - "@rollup/rollup-linux-x64-musl": "4.64.3", - "@rollup/rollup-openbsd-x64": "4.64.3", - "@rollup/rollup-openharmony-arm64": "4.64.3", - "@rollup/rollup-win32-arm64-msvc": "4.64.3", - "@rollup/rollup-win32-ia32-msvc": "4.64.3", - "@rollup/rollup-win32-x64-gnu": "4.64.3", - "@rollup/rollup-win32-x64-msvc": "4.64.3", + "@rollup/rollup-android-arm-eabi": "4.14.3", + "@rollup/rollup-android-arm64": "4.14.3", + "@rollup/rollup-darwin-arm64": "4.14.3", + "@rollup/rollup-darwin-x64": "4.14.3", + "@rollup/rollup-linux-arm-gnueabihf": "4.14.3", + "@rollup/rollup-linux-arm-musleabihf": "4.14.3", + "@rollup/rollup-linux-arm64-gnu": "4.14.3", + "@rollup/rollup-linux-arm64-musl": "4.14.3", + "@rollup/rollup-linux-powerpc64le-gnu": "4.14.3", + "@rollup/rollup-linux-riscv64-gnu": "4.14.3", + "@rollup/rollup-linux-s390x-gnu": "4.14.3", + "@rollup/rollup-linux-x64-gnu": "4.14.3", + "@rollup/rollup-linux-x64-musl": "4.14.3", + "@rollup/rollup-win32-arm64-msvc": "4.14.3", + "@rollup/rollup-win32-ia32-msvc": "4.14.3", + "@rollup/rollup-win32-x64-msvc": "4.14.3", "fsevents": "~2.3.2" } }, + "node_modules/rollup/node_modules/@types/estree": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", + "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", + "license": "MIT" + }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmmirror.com/run-parallel/-/run-parallel-1.2.0.tgz", @@ -12389,7 +12253,7 @@ }, "node_modules/safe-area-insets": { "version": "1.4.1", - "resolved": "https://registry.npmmirror.com/safe-area-insets/-/safe-area-insets-1.4.1.tgz", + "resolved": "https://registry.npmjs.org/safe-area-insets/-/safe-area-insets-1.4.1.tgz", "integrity": "sha512-r/nRWTjFGhhm3w1Z6Kd/jY11srN+lHt2mNl1E/emQGW8ic7n3Avu4noibklfSM+Y34peNphHD/BSZecav0sXYQ==", "license": "ISC" }, @@ -13599,7 +13463,7 @@ }, "node_modules/vite": { "version": "5.2.8", - "resolved": "https://registry.npmmirror.com/vite/-/vite-5.2.8.tgz", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.2.8.tgz", "integrity": "sha512-OyZR+c1CE8yeHw5V5t59aXsUPPVTHMDjEZz8MgguLL/Q7NblxhZUlTu9xSPqlsUO/y+X7dlU05jdhvyycD55DA==", "license": "MIT", "dependencies": { @@ -13654,7 +13518,7 @@ }, "node_modules/vue": { "version": "3.4.21", - "resolved": "https://registry.npmmirror.com/vue/-/vue-3.4.21.tgz", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.4.21.tgz", "integrity": "sha512-5hjyV/jLEIKD/jYl4cavMcnzKwjMKohureP8ejn3hhEjwhWIhWeuzL2kJAjzl/WyVsgPY56Sy4Z40C3lVshxXA==", "license": "MIT", "dependencies": { @@ -13674,13 +13538,14 @@ } }, "node_modules/vue-i18n": { - "version": "9.14.4", - "resolved": "https://registry.npmmirror.com/vue-i18n/-/vue-i18n-9.14.4.tgz", - "integrity": "sha512-B934C8yUyWLT0EMud3DySrwSUJI7ZNiWYsEEz2gknTthqKiG4dzWE/WSa8AzCuSQzwBEv4HtG1jZDhgzPfWSKQ==", + "version": "9.14.5", + "resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-9.14.5.tgz", + "integrity": "sha512-0jQ9Em3ymWngyiIkj0+c/k7WgaPO+TNzjKSNq9BvBQaKJECqn9cd9fL4tkDhB5G1QBskGl9YxxbDAhgbFtpe2g==", + "deprecated": "v9 and v10 no longer supported. please migrate to v11. about maintenance status, see https://vue-i18n.intlify.dev/guide/maintenance.html", "license": "MIT", "dependencies": { - "@intlify/core-base": "9.14.4", - "@intlify/shared": "9.14.4", + "@intlify/core-base": "9.14.5", + "@intlify/shared": "9.14.5", "@vue/devtools-api": "^6.5.0" }, "engines": { @@ -13694,13 +13559,13 @@ } }, "node_modules/vue-i18n/node_modules/@intlify/core-base": { - "version": "9.14.4", - "resolved": "https://registry.npmmirror.com/@intlify/core-base/-/core-base-9.14.4.tgz", - "integrity": "sha512-vtZCt7NqWhKEtHa3SD/322DlgP5uR9MqWxnE0y8Q0tjDs9H5Lxhss+b5wv8rmuXRoHKLESNgw9d+EN9ybBbj9g==", + "version": "9.14.5", + "resolved": "https://registry.npmjs.org/@intlify/core-base/-/core-base-9.14.5.tgz", + "integrity": "sha512-5ah5FqZG4pOoHjkvs8mjtv+gPKYU0zCISaYNjBNNqYiaITxW8ZtVih3GS/oTOqN8d9/mDLyrjD46GBApNxmlsA==", "license": "MIT", "dependencies": { - "@intlify/message-compiler": "9.14.4", - "@intlify/shared": "9.14.4" + "@intlify/message-compiler": "9.14.5", + "@intlify/shared": "9.14.5" }, "engines": { "node": ">= 16" @@ -13710,12 +13575,12 @@ } }, "node_modules/vue-i18n/node_modules/@intlify/message-compiler": { - "version": "9.14.4", - "resolved": "https://registry.npmmirror.com/@intlify/message-compiler/-/message-compiler-9.14.4.tgz", - "integrity": "sha512-vcyCLiVRN628U38c3PbahrhbbXrckrM9zpy0KZVlDk2Z0OnGwv8uQNNXP3twwGtfLsCf4gu3ci6FMIZnPaqZsw==", + "version": "9.14.5", + "resolved": "https://registry.npmjs.org/@intlify/message-compiler/-/message-compiler-9.14.5.tgz", + "integrity": "sha512-IHzgEu61/YIpQV5Pc3aRWScDcnFKWvQA9kigcINcCBXN8mbW+vk9SK+lDxA6STzKQsVJxUPg9ACC52pKKo3SVQ==", "license": "MIT", "dependencies": { - "@intlify/shared": "9.14.4", + "@intlify/shared": "9.14.5", "source-map-js": "^1.0.2" }, "engines": { @@ -13726,9 +13591,9 @@ } }, "node_modules/vue-i18n/node_modules/@intlify/shared": { - "version": "9.14.4", - "resolved": "https://registry.npmmirror.com/@intlify/shared/-/shared-9.14.4.tgz", - "integrity": "sha512-P9zv6i1WvMc9qDBWvIgKkymjY2ptIiQ065PjDv7z7fDqH3J/HBRBN5IoiR46r/ujRcU7hCuSIZWvCAFCyuOYZA==", + "version": "9.14.5", + "resolved": "https://registry.npmjs.org/@intlify/shared/-/shared-9.14.5.tgz", + "integrity": "sha512-9gB+E53BYuAEMhbCAxVgG38EZrk59sxBtv3jSizNL2hEWlgjBjAw1AwpLHtNaeda12pe6W20OGEa0TwuMSRbyQ==", "license": "MIT", "engines": { "node": ">= 16" @@ -13739,7 +13604,7 @@ }, "node_modules/vue-router": { "version": "4.4.4", - "resolved": "https://registry.npmmirror.com/vue-router/-/vue-router-4.4.4.tgz", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.4.4.tgz", "integrity": "sha512-3MlnDqwRwZwCQVbtVfpsU+nrNymNjnXSsQtXName5925NVC1+326VVfYH9vSrA0N13teGEo8z5x7gbRnGjCDiQ==", "license": "MIT", "dependencies": { @@ -14058,7 +13923,7 @@ }, "node_modules/xmlhttprequest": { "version": "1.8.0", - "resolved": "https://registry.npmmirror.com/xmlhttprequest/-/xmlhttprequest-1.8.0.tgz", + "resolved": "https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.8.0.tgz", "integrity": "sha512-58Im/U0mlVBLM38NdZjHyhuMtCqa61469k2YP/AaPbvCoV9aQGUpbJBj1QRm2ytRiVQBD/fsw7L2bJGDVQswBA==", "license": "MIT", "engines": { diff --git a/package.json b/package.json index 6edc36d..ceba204 100644 --- a/package.json +++ b/package.json @@ -37,34 +37,35 @@ "type-check": "vue-tsc --noEmit" }, "dependencies": { - "@dcloudio/uni-app": "3.0.0-5020420260813003", - "@dcloudio/uni-app-harmony": "3.0.0-5020420260813003", - "@dcloudio/uni-app-plus": "3.0.0-5020420260813003", - "@dcloudio/uni-components": "3.0.0-5020420260813003", - "@dcloudio/uni-h5": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-alipay": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-baidu": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-harmony": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-jd": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-kuaishou": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-lark": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-qq": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-toutiao": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-weixin": "3.0.0-5020420260813003", - "@dcloudio/uni-mp-xhs": "3.0.0-5020420260813003", - "@dcloudio/uni-quickapp-webview": "3.0.0-5020420260813003", + "@dcloudio/uni-app": "3.0.0-5020620260917001", + "@dcloudio/uni-app-harmony": "3.0.0-5020620260917001", + "@dcloudio/uni-app-plus": "3.0.0-5020620260917001", + "@dcloudio/uni-components": "3.0.0-5020620260917001", + "@dcloudio/uni-h5": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-alipay": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-baidu": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-harmony": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-jd": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-kuaishou": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-lark": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-qq": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-toutiao": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-weixin": "3.0.0-5020620260917001", + "@dcloudio/uni-mp-xhs": "3.0.0-5020620260917001", + "@dcloudio/uni-quickapp-webview": "3.0.0-5020620260917001", "element-china-area-data": "^6.1.0", - "vue": "^3.4.21", - "vue-i18n": "^9.1.9" + "vue": "3.4.21", + "vue-i18n": "9.14.5" }, "devDependencies": { - "@dcloudio/types": "^3.4.8", - "@dcloudio/uni-automator": "3.0.0-5020420260813003", - "@dcloudio/uni-cli-shared": "3.0.0-5020420260813003", - "@dcloudio/uni-stacktracey": "3.0.0-5020420260813003", - "@dcloudio/vite-plugin-uni": "3.0.0-5020420260813003", - "@vue/runtime-core": "^3.4.21", + "@dcloudio/types": "3.4.31", + "@dcloudio/uni-automator": "3.0.0-5020620260917001", + "@dcloudio/uni-cli-shared": "3.0.0-5020620260917001", + "@dcloudio/uni-stacktracey": "3.0.0-5020620260917001", + "@dcloudio/vite-plugin-uni": "3.0.0-5020620260917001", + "@vue/runtime-core": "3.5.44", "@vue/tsconfig": "^0.1.3", + "rollup": "4.14.3", "sass": "^1.105.1", "typescript": "^4.9.4", "vite": "5.2.8", diff --git a/src/App.vue b/src/App.vue index d4c4fab..c1a7c9d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,14 +1,12 @@ diff --git a/src/api/cs-auth.ts b/src/api/cs-auth.ts index 38021bd..2a0b98d 100644 --- a/src/api/cs-auth.ts +++ b/src/api/cs-auth.ts @@ -1,7 +1,8 @@ +import { getApiBaseUrl } from '@/config/app-env' import { resolveCsAppBaseUrl, UPLOAD_CLIENT_ID } from './request' import { + clearStoredCsToken, extractAuthToken, - getStoredCsToken, getStoredToken, saveStoredCsToken, } from '@/utils/auth-token' @@ -13,8 +14,7 @@ function resolveCsAuthUrl(path: string): string { const normalized = path.startsWith('/') ? path : `/${path}` const csBase = resolveCsAppBaseUrl() if (csBase) return `${csBase}${normalized}` - const main = import.meta.env.VITE_API_BASE_URL?.trim() || '' - return `${main.replace(/\/$/, '')}/app${normalized}` + return `${getApiBaseUrl()}/app${normalized}` } function parseBody(data: unknown): unknown { @@ -62,17 +62,19 @@ async function requestCsLogin(path: string, data: Record): Prom /** 主站登录后,向 212 用 clientId=app 同步登录,获取上传专用 token */ export async function syncCsAuthByPassword(account: string, password: string): Promise { try { + clearStoredCsToken() await requestCsLogin('/auth/login/password', { account: account.trim(), password, }) } catch { - // 212 不可达时不阻断主登录 + // 212 不可达时不阻断主登录;会话接口仍可用主站 token } } export async function syncCsAuthBySms(phone: string, code: string): Promise { try { + clearStoredCsToken() await requestCsLogin('/auth/login/sms', { phonenumber: phone.trim(), smsCode: code.trim(), @@ -82,17 +84,10 @@ export async function syncCsAuthBySms(phone: string, code: string): Promise({ - url: '/app/home/list', - method: 'GET', - }) -} - -/** POST /app/home/create — 创建家庭(返回 RVoid,需再拉列表取 ID) */ -export function createHome(data: { homeName: string }) { - return request({ - url: '/app/home/create', - method: 'POST', - data, - }) -} - -function isDefaultHome(home: AppHomeVo): boolean { - const value = home.isDefault - return value === '1' || value === 1 || value === true -} - -export function pickDefaultHome(homes: AppHomeVo[] | undefined): AppHomeVo | undefined { - if (!homes?.length) return undefined - return homes.find(isDefaultHome) ?? homes[0] -} - -export function getHomeId(home?: AppHomeVo): string { - return parseId(home?.id) -} - -export function findHomeById(homes: AppHomeVo[] | undefined, homeId: string | number) { - return homes?.find((item) => sameId(item.id, homeId)) -} - -/** - * 解析当前用户可用的 homeId: - * 1. 若 candidate 在用户家庭列表中 → 使用它 - * 2. 否则使用默认家庭 - * 3. 若无家庭则自动创建「我的家」 - */ -export async function resolveValidHomeId(candidate?: string | number): Promise { - let list = await fetchHomeList() - const preferred = parseId(candidate) - - if (preferred && findHomeById(list, preferred)) { - return preferred - } - - let defaultId = getHomeId(pickDefaultHome(list)) - if (defaultId) return defaultId - - await createHome({ homeName: '我的家' }) - list = await fetchHomeList() - defaultId = getHomeId(pickDefaultHome(list)) - return defaultId -} - -/** @deprecated 使用 resolveValidHomeId */ -export async function resolveDefaultHomeId(): Promise { - return resolveValidHomeId() -} - -/** @deprecated 使用 resolveValidHomeId */ -export async function ensureDefaultHomeId(): Promise { - return resolveValidHomeId() -} - \ No newline at end of file +import { request } from '@/api/request' +import type { AppHomeVo, UpdateHomeBody } from '@/types/location' +import { parseId, sameId } from '@/utils/device-id' + +const DEFAULT_HOME_LONGITUDE = 116.4074 +const DEFAULT_HOME_LATITUDE = 39.9042 +const DEFAULT_HOME_ADDRESS = '未设置' + +/** GET /app/home/list — 查询当前用户的家庭列表 */ +export function fetchHomeList() { + return request({ + url: '/app/home/list', + method: 'GET', + }) +} + +/** POST /app/home/create — 创建家庭(返回 RVoid,需再拉列表取 ID) */ +export function createHome(data: { homeName: string }) { + return request({ + url: '/app/home/create', + method: 'POST', + data, + }) +} + +/** PUT /app/home/{homeId} — 修改家庭名称与位置 */ +export function updateHome(homeId: string | number, data: UpdateHomeBody) { + return request({ + url: `/app/home/${encodeURIComponent(String(homeId))}`, + method: 'PUT', + data, + }) +} + +/** 组装修改家庭接口必填字段(名称 2-10 字,位置四项均必填) */ +export function buildUpdateHomeBody( + homeName: string, + options?: { + geo?: { address: string; latitude: number; longitude: number } + home?: AppHomeVo + }, +): UpdateHomeBody { + const geo = options?.geo + const home = options?.home + return { + homeName: homeName.trim(), + homeLocationLongitude: + geo?.longitude ?? home?.homeLocationLongitude ?? DEFAULT_HOME_LONGITUDE, + homeLocationLatitude: + geo?.latitude ?? home?.homeLocationLatitude ?? DEFAULT_HOME_LATITUDE, + homeLocationAddress: + geo?.address?.trim() + || home?.homeLocationAddress?.trim() + || DEFAULT_HOME_ADDRESS, + } +} + +export function isValidHomeName(name: string): boolean { + const value = name.trim() + return value.length >= 2 && value.length <= 10 +} + +function isDefaultHome(home: AppHomeVo): boolean { + const value = home.isDefault + return value === '1' || value === 1 || value === true +} + +export function pickDefaultHome(homes: AppHomeVo[] | undefined): AppHomeVo | undefined { + if (!homes?.length) return undefined + return homes.find(isDefaultHome) ?? homes[0] +} + +export function getHomeId(home?: AppHomeVo): string { + return parseId(home?.id) +} + +export function findHomeById(homes: AppHomeVo[] | undefined, homeId: string | number) { + return homes?.find((item) => sameId(item.id, homeId)) +} + +/** + * 解析当前用户可用的 homeId: + * 1. 若 candidate 在用户家庭列表中 → 使用它 + * 2. 否则使用默认家庭 + * 3. 若无家庭则自动创建「我的家」 + */ +export async function resolveValidHomeId(candidate?: string | number): Promise { + let list = await fetchHomeList() + const preferred = parseId(candidate) + + if (preferred && findHomeById(list, preferred)) { + return preferred + } + + let defaultId = getHomeId(pickDefaultHome(list)) + if (defaultId) return defaultId + + await createHome({ homeName: '我的家' }) + list = await fetchHomeList() + defaultId = getHomeId(pickDefaultHome(list)) + return defaultId +} + +/** @deprecated 使用 resolveValidHomeId */ +export async function resolveDefaultHomeId(): Promise { + return resolveValidHomeId() +} + +/** @deprecated 使用 resolveValidHomeId */ +export async function ensureDefaultHomeId(): Promise { + return resolveValidHomeId() +} + diff --git a/src/api/request.ts b/src/api/request.ts index 1aab41c..2e8b814 100644 --- a/src/api/request.ts +++ b/src/api/request.ts @@ -1,5 +1,13 @@ import type { ApiResponse } from '@/types/api' import { + assertRequestUrl, + getApiBaseUrl, + getApiClientId, + getCsApiBaseUrl, + getUploadClientId, +} from '@/config/app-env' +import { + clearStoredCsToken, extractAuthToken, formatBearerAuthorization, getStoredCsToken, @@ -8,22 +16,11 @@ import { } from '@/utils/auth-token' import { ApiError, isApiSuccess, unwrapApiData } from '@/utils/api-error' -/** H5 开发走 Vite 代理;App/小程序使用完整后端地址 */ -function resolveBaseUrl(): string { - const envUrl = import.meta.env.VITE_API_BASE_URL ?? '' - // #ifdef H5 - if (import.meta.env.DEV) return '' - // #endif - return envUrl -} - -const BASE_URL = resolveBaseUrl() /** RuoYi-Vue-Plus App 端 clientId(登录等 JSON 接口) */ -export const API_CLIENT_ID = - import.meta.env.VITE_API_CLIENT_ID || '428a8310cd442757ae699df5d894f051' +export const API_CLIENT_ID = getApiClientId() /** 文件上传 clientId(与 Postman /app/cs/upload 一致) */ -export const UPLOAD_CLIENT_ID = import.meta.env.VITE_UPLOAD_CLIENT_ID || 'app' +export const UPLOAD_CLIENT_ID = getUploadClientId() /** 将响应 JSON 中的 int64 主键字段转为字符串,避免 JS 精度丢失 */ function parseJsonPreserveIdFields(text: string): unknown { @@ -34,19 +31,18 @@ function parseJsonPreserveIdFields(text: string): unknown { return JSON.parse(safe) } -/** 212 客服服务根路径(含 /app);未配置时返回空字符串 */ +/** 212 客服服务根路径(含 /app) */ export function resolveCsAppBaseUrl(): string { - const csBase = import.meta.env.VITE_CS_API_BASE_URL?.trim() // #ifdef H5 if (import.meta.env.DEV) return '/cs-app' // #endif - if (csBase) return `${csBase.replace(/\/$/, '')}/app` - return '' + const csBase = getCsApiBaseUrl() + return csBase ? `${csBase}/app` : '' } function buildCsAppRequestUrl(path: string): string { const csBase = resolveCsAppBaseUrl() - if (!csBase) return `${BASE_URL}${path}` + if (!csBase) return `${getApiBaseUrl()}${path}` if (path.startsWith('/app/')) return `${csBase}${path.slice(4)}` if (path.startsWith('/app')) return `${csBase}${path.slice(4)}` return `${csBase}${path.startsWith('/') ? path : `/${path}`}` @@ -97,30 +93,44 @@ export function buildDownloadAuthHeaders(): Record { } } +/** 客服 WebSocket / 会话鉴权用 token(优先 212 cs_token,否则主站 token) */ export function resolveCsAppToken(): string { return getStoredCsToken() || getStoredToken() } -/** 客服图片上传鉴权头(212,clientId=app,使用 cs_token) */ +/** 客服 JSON:有 cs_token 用 clientId=app;否则用主站 token + 主站 clientId */ +export function resolveCsAppClientId(): string { + return getStoredCsToken() ? UPLOAD_CLIENT_ID : API_CLIENT_ID +} + +/** 客服图片上传:有 cs_token 用 clientId=app;否则与主站一致(主站 token + 主站 clientId) */ export function buildCsUploadAuthHeaders(): Record { - const authorization = formatBearerAuthorization(resolveCsAppToken()) + const csToken = getStoredCsToken() + const token = csToken || getStoredToken() + const authorization = formatBearerAuthorization(token) return { - clientId: UPLOAD_CLIENT_ID, + clientId: csToken ? UPLOAD_CLIENT_ID : API_CLIENT_ID, ...(authorization ? { Authorization: authorization } : {}), } } -/** 212 客服 JSON 接口鉴权(与 upload 一致:clientId=app + cs_token) */ +/** 212 客服 JSON 接口鉴权 */ export function buildCsAppAuthHeaders(extra?: Record): Record { const authorization = formatBearerAuthorization(resolveCsAppToken()) return { 'Content-Type': 'application/json;charset=UTF-8', - clientId: UPLOAD_CLIENT_ID, + clientId: resolveCsAppClientId(), ...(authorization ? { Authorization: authorization } : {}), ...(extra as Record | undefined), } } +export function isCsAuthError(err: unknown): boolean { + if (!(err instanceof ApiError)) return false + if (err.code === 401) return true + return /登录状态|未登录|重新登录/i.test(err.message) +} + export type UploadAuthMode = 'default' | 'cs' function resolveUploadAuthHeaders(mode: UploadAuthMode): Record { @@ -130,7 +140,7 @@ function resolveUploadAuthHeaders(mode: UploadAuthMode): Record function resolveUploadUrl(url: string): string { if (/^https?:\/\//i.test(url)) return url const path = url.startsWith('/') ? url : `/${url}` - return `${BASE_URL}${path}` + return `${getApiBaseUrl()}${path}` } function handleUploadSuccess( @@ -212,6 +222,19 @@ async function uploadViaFetchH5( }) } +async function runUpload( + targetUrl: string, + filePath: string, + fieldName: string, + authMode: UploadAuthMode, +): Promise { + // #ifdef H5 + return uploadViaFetchH5(targetUrl, filePath, fieldName, authMode) + // #endif + + return uploadViaUniMultipart(targetUrl, filePath, fieldName, authMode) +} + /** multipart/form-data 上传;H5 走 fetch 确保 Bearer token 发出 */ export function uploadAppFile( url: string, @@ -220,12 +243,14 @@ export function uploadAppFile( authMode: UploadAuthMode = 'default', ): Promise { const targetUrl = resolveUploadUrl(url) + const hadCsToken = authMode === 'cs' && !!getStoredCsToken() - // #ifdef H5 - return uploadViaFetchH5(targetUrl, filePath, fieldName, authMode) - // #endif - - return uploadViaUniMultipart(targetUrl, filePath, fieldName, authMode) + return runUpload(targetUrl, filePath, fieldName, authMode).catch((err) => { + if (authMode !== 'cs' || !isCsAuthError(err)) throw err + if (!hadCsToken) throw err + clearStoredCsToken() + return runUpload(targetUrl, filePath, fieldName, authMode) + }) } function handleSuccess( @@ -266,6 +291,12 @@ function runRequest( saveTokenFromBody = false, ): Promise { return new Promise((resolve, reject) => { + try { + assertRequestUrl(url) + } catch (err) { + reject(new ApiError(err instanceof Error ? err.message : '接口地址未配置')) + return + } uni.request({ ...options, url, @@ -280,7 +311,7 @@ function runRequest( } export function request(options: RequestOptions): Promise { - return runRequest(options, `${BASE_URL}${options.url}`, buildAuthHeaders) + return runRequest(options, `${getApiBaseUrl()}${options.url}`, buildAuthHeaders) } /** @@ -290,15 +321,30 @@ export function request(options: RequestOptions): Promise { export function requestCsApp(options: RequestOptions): Promise { const csBase = resolveCsAppBaseUrl() if (!csBase) return request(options) - return runRequest(options, buildCsAppRequestUrl(options.url), buildCsAppAuthHeaders) + + const url = buildCsAppRequestUrl(options.url) + const hadCsToken = !!getStoredCsToken() + + return runRequest(options, url, buildCsAppAuthHeaders).catch((err) => { + if (!hadCsToken || !isCsAuthError(err)) throw err + clearStoredCsToken() + return runRequest(options, url, buildCsAppAuthHeaders) + }) } /** 登录类接口:从完整响应体提取并保存 token */ export function requestLogin(options: RequestOptions): Promise { + const url = `${getApiBaseUrl()}${options.url}` return new Promise((resolve, reject) => { + try { + assertRequestUrl(url) + } catch (err) { + reject(new ApiError(err instanceof Error ? err.message : '接口地址未配置')) + return + } uni.request({ ...options, - url: `${BASE_URL}${options.url}`, + url, header: buildAuthHeaders(options.header), dataType: 'text', success: (res) => handleSuccess(res, resolve, reject, true), diff --git a/src/components/page-scroll-view/index.vue b/src/components/page-scroll-view/index.vue new file mode 100644 index 0000000..8b26387 --- /dev/null +++ b/src/components/page-scroll-view/index.vue @@ -0,0 +1,36 @@ + + + + + diff --git a/src/config/app-env.ts b/src/config/app-env.ts new file mode 100644 index 0000000..bd257ab --- /dev/null +++ b/src/config/app-env.ts @@ -0,0 +1,52 @@ +/** + * 运行环境配置。 + * HBuilderX 云打包时 import.meta.env 可能未注入,此处提供源码级兜底地址。 + * 上线前请修改 APP_ENV_DEFAULTS,或通过 .env.production 覆盖。 + */ +const APP_ENV_DEFAULTS = { + apiBaseUrl: 'http://192.168.0.222:8082', + csApiBaseUrl: 'http://192.168.0.212:8082', + messageWsUrl: 'ws://192.168.0.222:8082/app/ws/message', + apiClientId: '428a8310cd442757ae699df5d894f051', + uploadClientId: 'app', +} as const + +function readViteEnv(key: string): string { + const value = (import.meta.env as Record)[key] + return typeof value === 'string' ? value.trim() : '' +} + +/** 主 API 根地址(App/小程序须为 http(s)://...;H5 开发返回空走代理) */ +export function getApiBaseUrl(): string { + // #ifdef H5 + if (import.meta.env.DEV) return '' + // #endif + + const fromEnv = readViteEnv('VITE_API_BASE_URL') || readViteEnv('VITE_API_PROXY_TARGET') + const base = fromEnv || APP_ENV_DEFAULTS.apiBaseUrl + return base.replace(/\/$/, '') +} + +/** 客服服务根地址(不含 /app) */ +export function getCsApiBaseUrl(): string { + const base = readViteEnv('VITE_CS_API_BASE_URL') || APP_ENV_DEFAULTS.csApiBaseUrl + return base.replace(/\/$/, '') +} + +export function getMessageWsUrl(): string { + return readViteEnv('VITE_MESSAGE_WS_URL') || APP_ENV_DEFAULTS.messageWsUrl +} + +export function getApiClientId(): string { + return readViteEnv('VITE_API_CLIENT_ID') || APP_ENV_DEFAULTS.apiClientId +} + +export function getUploadClientId(): string { + return readViteEnv('VITE_UPLOAD_CLIENT_ID') || APP_ENV_DEFAULTS.uploadClientId +} + +/** App 打包后必须是绝对地址;H5 开发允许 /app 相对路径走代理 */ +export function assertRequestUrl(url: string, hint = '接口地址'): void { + if (/^https?:\/\//i.test(url) || url.startsWith('/')) return + throw new Error(`${hint}无效:${url || '(空)'},需以 http(s):// 或 / 开头`) +} diff --git a/src/hooks/use-page-scroll-height.ts b/src/hooks/use-page-scroll-height.ts new file mode 100644 index 0000000..359fa7a --- /dev/null +++ b/src/hooks/use-page-scroll-height.ts @@ -0,0 +1,79 @@ +import { type CSSProperties, computed, getCurrentInstance, nextTick, onMounted, ref } from 'vue' + +const NAVBAR_BAR_RPX = 88 + +export interface PageScrollHeightOptions { + /** 从底部额外减去的 px(如底部固定栏) */ + extraBottomPx?: number + /** + * 页面顶部已占用区域的选择器(如自定义 hero),测量其高度作为顶部偏移。 + * 未设置时默认按 statusBar + 导航栏(88rpx) 计算。 + */ + topSelector?: string +} + +function getNavbarTopPx() { + const sys = uni.getSystemInfoSync() + const statusBar = sys.statusBarHeight ?? 0 + const navbarBar = uni.upx2px(NAVBAR_BAR_RPX) + return statusBar + navbarBar +} + +export function usePageScrollHeight(options: PageScrollHeightOptions = {}) { + const { extraBottomPx = 0, topSelector } = options + const heightPx = ref(0) + + function applyHeight(topPx: number) { + const sys = uni.getSystemInfoSync() + const windowHeight = sys.windowHeight ?? sys.screenHeight ?? 667 + heightPx.value = Math.max(0, windowHeight - topPx - extraBottomPx) + } + + function measureNavbarHeight() { + applyHeight(getNavbarTopPx()) + } + + function measureCustomTop() { + if (!topSelector) { + measureNavbarHeight() + return + } + + const instance = getCurrentInstance() + const query = instance + ? uni.createSelectorQuery().in(instance.proxy!) + : uni.createSelectorQuery() + + query + .select(topSelector) + .boundingClientRect((rect) => { + const top = + rect && !Array.isArray(rect) && rect.height + ? rect.height + : getNavbarTopPx() + applyHeight(top) + }) + .exec() + } + + function remeasureScrollHeight() { + if (topSelector) { + nextTick(measureCustomTop) + return + } + measureNavbarHeight() + } + + onMounted(() => { + nextTick(remeasureScrollHeight) + }) + + remeasureScrollHeight() + + const scrollStyle = computed(() => ({ + height: `${heightPx.value}px`, + width: '100%', + })) + + return { scrollHeight: heightPx, scrollStyle, remeasureScrollHeight } +} diff --git a/src/manifest.json b/src/manifest.json index fe2b659..7d27997 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,6 +1,6 @@ { - "name" : "", - "appid" : "", + "name" : "虫子智家", + "appid" : "__UNI__925D0CC", "description" : "", "versionName" : "1.0.0", "versionCode" : "100", @@ -18,6 +18,8 @@ }, /* 模块配置 */ "modules" : { + "Bluetooth" : {}, + "Camera" : {}, "Maps" : {} }, /* 应用发布信息 */ @@ -50,9 +52,51 @@ ] }, /* ios打包配置 */ - "ios" : {}, + "ios" : { + "dSYMs" : false + }, /* SDK配置 */ - "sdkConfigs" : {} + "sdkConfigs" : { + "maps" : {}, + "push" : { + "unipush" : { + "version" : "2", + "offline" : false + } + } + }, + "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" + }, + "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" + } + } + } } }, /* 快应用特有相关 */ @@ -101,8 +145,8 @@ } } }, - "uniStatistics": { - "enable": false + "uniStatistics" : { + "enable" : false }, "vueVersion" : "3" } diff --git a/src/pages.json b/src/pages.json index 84e4cfc..f375a48 100644 --- a/src/pages.json +++ b/src/pages.json @@ -6,13 +6,6 @@ } }, "pages": [ - { - "path": "pages/login/index", - "style": { - "navigationStyle": "custom", - "navigationBarTitleText": "登录" - } - }, { "path": "pages/device/index", "style": { @@ -20,6 +13,13 @@ "navigationBarTitleText": "设备" } }, + { + "path": "pages/login/index", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "登录" + } + }, { "path": "pages/device/detail/index", "style": { diff --git a/src/pages/add-device/add-device.scss b/src/pages/add-device/add-device.scss index bf96f21..200b597 100644 --- a/src/pages/add-device/add-device.scss +++ b/src/pages/add-device/add-device.scss @@ -7,8 +7,7 @@ } .add-device-page__scroll { - flex: 1; - height: 0; + width: 100%; } .add-device-page__body { diff --git a/src/pages/add-device/complete/complete.scss b/src/pages/add-device/complete/complete.scss index c0173f6..8130940 100644 --- a/src/pages/add-device/complete/complete.scss +++ b/src/pages/add-device/complete/complete.scss @@ -7,8 +7,7 @@ } .complete-page__scroll { - flex: 1; - height: 0; + width: 100%; } .complete-page__body { diff --git a/src/pages/add-device/complete/index.vue b/src/pages/add-device/complete/index.vue index c7e37d1..34360e4 100644 --- a/src/pages/add-device/complete/index.vue +++ b/src/pages/add-device/complete/index.vue @@ -1,7 +1,7 @@ diff --git a/src/pages/add-device/pair/index.vue b/src/pages/add-device/pair/index.vue index e0ca983..62de18e 100644 --- a/src/pages/add-device/pair/index.vue +++ b/src/pages/add-device/pair/index.vue @@ -1,7 +1,7 @@ diff --git a/src/pages/add-device/scan/scan.scss b/src/pages/add-device/scan/scan.scss index 3fa8df6..07d5af6 100644 --- a/src/pages/add-device/scan/scan.scss +++ b/src/pages/add-device/scan/scan.scss @@ -7,8 +7,7 @@ } .scan-page__scroll { - flex: 1; - height: 0; + width: 100%; } .scan-page__body { diff --git a/src/pages/agreement/index.vue b/src/pages/agreement/index.vue index b1f2008..7e4daf8 100644 --- a/src/pages/agreement/index.vue +++ b/src/pages/agreement/index.vue @@ -1,14 +1,14 @@ @@ -27,8 +27,7 @@ const { title, content, loading } = useAgreement() } .agreement-page__scroll { - flex: 1; - height: calc(100vh - 88rpx); + width: 100%; } .agreement-page__content { diff --git a/src/pages/change-password/index.vue b/src/pages/change-password/index.vue index 44aa38c..6bdfea3 100644 --- a/src/pages/change-password/index.vue +++ b/src/pages/change-password/index.vue @@ -7,7 +7,7 @@ - 8-20位字符,须包含字母、数字、符号中的至少2种。 + {{ passwordRuleHint }} @@ -17,8 +17,11 @@ diff --git a/src/pages/change-password/use-change-password.ts b/src/pages/change-password/use-change-password.ts index 28633ee..8195a05 100644 --- a/src/pages/change-password/use-change-password.ts +++ b/src/pages/change-password/use-change-password.ts @@ -1,7 +1,7 @@ import { onLoad } from '@dcloudio/uni-app' import { ref } from 'vue' import { getErrorMessage } from '@/utils/api-error' -import { isValidStrongPassword } from '@/utils/validate' +import { isValidStrongPassword, PASSWORD_INVALID_TOAST } from '@/utils/validate' import { resetPasswordByToken } from './change-password.api' export function useChangePassword() { @@ -27,10 +27,7 @@ export function useChangePassword() { return } if (!isValidStrongPassword(password.value)) { - uni.showToast({ - title: '密码需8-20位,且包含字母、数字、符号中至少2种', - icon: 'none', - }) + uni.showToast({ title: PASSWORD_INVALID_TOAST, icon: 'none' }) return } if (password.value !== confirmPassword.value) { diff --git a/src/pages/device/detail/device-detail.scss b/src/pages/device/detail/device-detail.scss index 998d894..dddce6e 100644 --- a/src/pages/device/detail/device-detail.scss +++ b/src/pages/device/detail/device-detail.scss @@ -163,8 +163,7 @@ .device-detail-page__scroll { position: relative; z-index: 2; - flex: 1; - height: 0; + width: 100%; margin-top: -40rpx; } diff --git a/src/pages/device/detail/index.vue b/src/pages/device/detail/index.vue index 4112c8d..026cb00 100644 --- a/src/pages/device/detail/index.vue +++ b/src/pages/device/detail/index.vue @@ -41,7 +41,7 @@ {{ syncText }} - + - + import { ref } from 'vue' +import { usePageScrollHeight } from '@/hooks/use-page-scroll-height' import { staticAssets } from '@/utils/static-assets' import FilterReplaceDialog from './components/filter-replace-dialog/index.vue' import RunModeExplainDialog from './components/run-mode-explain-dialog/index.vue' import { useDeviceDetail } from './use-device-detail' const statusBarHeight = ref(uni.getSystemInfoSync().statusBarHeight ?? 0) +const { scrollStyle: detailScrollStyle } = usePageScrollHeight({ + topSelector: '.device-detail-hero', +}) const runModeExplainVisible = ref(false) function onOpenRunModeExplain() { diff --git a/src/pages/device/device.scss b/src/pages/device/device.scss index 1671998..56a2ed6 100644 --- a/src/pages/device/device.scss +++ b/src/pages/device/device.scss @@ -4,3 +4,16 @@ padding-bottom: calc(120rpx + env(safe-area-inset-bottom)); box-sizing: border-box; } + +.device-page__loading { + display: flex; + align-items: center; + justify-content: center; + min-height: 360rpx; + padding: 48rpx 32rpx; +} + +.device-page__loading-text { + font-size: 28rpx; + color: #999; +} diff --git a/src/pages/device/home-manage/detail/index.vue b/src/pages/device/home-manage/detail/index.vue index 42d9f4e..35b0bbe 100644 --- a/src/pages/device/home-manage/detail/index.vue +++ b/src/pages/device/home-manage/detail/index.vue @@ -2,7 +2,7 @@ - + {{ summaryText }} @@ -31,7 +31,7 @@ - + - + - + + 加载中... + + 暂无家庭 - + diff --git a/src/pages/device/home-manage/location/use-home-location.ts b/src/pages/device/home-manage/location/use-home-location.ts index 32f97d5..6b9630c 100644 --- a/src/pages/device/home-manage/location/use-home-location.ts +++ b/src/pages/device/home-manage/location/use-home-location.ts @@ -1,5 +1,11 @@ import { onLoad } from '@dcloudio/uni-app' import { ref } from 'vue' +import { + buildUpdateHomeBody, + isValidHomeName, + updateHome, +} from '@/api/home' +import { getErrorMessage } from '@/utils/api-error' import { parseId } from '@/utils/device-id' import { formatCoordinateAddress, reverseGeocode } from '@/utils/map-geocode' import { loadHomeGeo, saveHomeGeo } from '../use-home-manage' @@ -21,6 +27,8 @@ function requestUserLocation(): Promise { export function useHomeLocation() { const homeId = ref('') + const homeName = ref('我的家') + const saving = ref(false) const latitude = ref(DEFAULT_LATITUDE) const longitude = ref(DEFAULT_LONGITUDE) const searchKeyword = ref('') @@ -136,11 +144,17 @@ export function useHomeLocation() { } } - function onConfirm() { + async function onConfirm() { if (!homeId.value) { uni.navigateBack() return } + if (!isValidHomeName(homeName.value)) { + uni.showToast({ title: '家庭名称需 2-10 个字符', icon: 'none' }) + return + } + if (saving.value) return + const address = addressText.value.trim() || formatCoordinateAddress(latitude.value, longitude.value) const geo: HomeGeoInfo = { @@ -148,15 +162,30 @@ export function useHomeLocation() { latitude: latitude.value, longitude: longitude.value, } - saveHomeGeo(homeId.value, geo) - uni.showToast({ title: '保存成功', icon: 'success' }) - setTimeout(() => { - uni.navigateBack() - }, 300) + + saving.value = true + try { + await updateHome( + homeId.value, + buildUpdateHomeBody(homeName.value, { geo }), + ) + saveHomeGeo(homeId.value, geo) + uni.showToast({ title: '保存成功', icon: 'success' }) + setTimeout(() => { + uni.navigateBack() + }, 300) + } catch (err) { + uni.showToast({ title: getErrorMessage(err, '保存家庭位置失败'), icon: 'none' }) + } finally { + saving.value = false + } } onLoad((query?: Record) => { homeId.value = parseId(query?.homeId) + if (query?.homeName) { + homeName.value = decodeURIComponent(String(query.homeName)) + } const saved = homeId.value ? loadHomeGeo(homeId.value) : undefined if (query?.address) { addressText.value = decodeURIComponent(String(query.address)) diff --git a/src/pages/device/home-manage/use-home-manage.ts b/src/pages/device/home-manage/use-home-manage.ts index 549e530..682ecd9 100644 --- a/src/pages/device/home-manage/use-home-manage.ts +++ b/src/pages/device/home-manage/use-home-manage.ts @@ -1,6 +1,12 @@ import { onLoad, onShow } from '@dcloudio/uni-app' import { computed, ref } from 'vue' -import { resolveValidHomeId } from '@/api/home' +import { + buildUpdateHomeBody, + isValidHomeName, + resolveValidHomeId, + updateHome, +} from '@/api/home' +import type { AppHomeVo } from '@/types/location' import { fetchRoomList } from '@/api/location' import { getErrorMessage } from '@/utils/api-error' import { fetchHomeManageStats } from './home-manage.api' @@ -31,6 +37,8 @@ export function useHomeManage() { const homeAddress = ref('') const loading = ref(false) const nameDialogVisible = ref(false) + const currentHome = ref() + const savingName = ref(false) const summaryText = computed( () => `共${roomCount.value}个房间,${deviceCount.value}个设备`, @@ -44,11 +52,22 @@ export function useHomeManage() { fetchHomeManageStats(homeId.value), fetchRoomList(homeId.value), ]) + currentHome.value = stats.home if (stats.home?.homeName) homeName.value = stats.home.homeName roomCount.value = rooms.length || stats.roomCount deviceCount.value = stats.deviceCount const geo = loadHomeGeo(homeId.value) - homeAddress.value = geo?.address ?? '' + homeAddress.value = + stats.home?.homeLocationAddress?.trim() + || geo?.address + || '' + if (stats.home?.homeLocationAddress && stats.home.homeLocationLatitude != null) { + saveHomeGeo(homeId.value, { + address: stats.home.homeLocationAddress, + latitude: stats.home.homeLocationLatitude, + longitude: stats.home.homeLocationLongitude ?? 116.4074, + }) + } } catch (err) { uni.showToast({ title: getErrorMessage(err, '加载家庭信息失败'), icon: 'none' }) } finally { @@ -68,14 +87,31 @@ export function useHomeManage() { nameDialogVisible.value = true } - function onConfirmHomeName(name: string) { + async function onConfirmHomeName(name: string) { const trimmed = name.trim() - if (!trimmed) { - uni.showToast({ title: '请输入家庭名称', icon: 'none' }) + if (!isValidHomeName(trimmed)) { + uni.showToast({ title: '家庭名称需 2-10 个字符', icon: 'none' }) return } - homeName.value = trimmed - uni.showToast({ title: '家庭名称修改接口待对接', icon: 'none' }) + if (!homeId.value || savingName.value) return + + savingName.value = true + try { + const geo = loadHomeGeo(homeId.value) + await updateHome( + homeId.value, + buildUpdateHomeBody(trimmed, { geo, home: currentHome.value }), + ) + homeName.value = trimmed + if (currentHome.value) { + currentHome.value = { ...currentHome.value, homeName: trimmed } + } + uni.showToast({ title: '修改成功', icon: 'success' }) + } catch (err) { + uni.showToast({ title: getErrorMessage(err, '修改家庭名称失败'), icon: 'none' }) + } finally { + savingName.value = false + } } function onOpenLocation() { diff --git a/src/pages/device/index.vue b/src/pages/device/index.vue index eee39f6..7fb4839 100644 --- a/src/pages/device/index.vue +++ b/src/pages/device/index.vue @@ -21,7 +21,10 @@ @manage="onManageDevices" @select="onSelectDevice" /> -