From c340a52c352eeb22c00d408de356c7a0866a821a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E9=B9=8F?= Date: Mon, 7 Oct 2024 10:35:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E5=88=97=E8=A1=A8bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 2 +- pages/home/home.vue | 4 ++-- pages/notificationList/notificationList.vue | 12 ++++++++++-- pages/setting/setting.vue | 2 +- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/manifest.json b/manifest.json index bf621a3..e9a261a 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "appid" : "__UNI__933D519", "description" : "", "versionName" : "1.1.0", - "versionCode" : "23", + "versionCode" : "24", "transformPx" : false, /* 小程序特有相关 */ "mp-weixin" : { diff --git a/pages/home/home.vue b/pages/home/home.vue index 874f957..9e3ae1e 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -5,7 +5,7 @@ - + @@ -14,7 +14,7 @@ - 填加锁时,手机必须在锁旁边 + 添加锁时,手机必须在锁旁边 diff --git a/pages/notificationList/notificationList.vue b/pages/notificationList/notificationList.vue index 28b8412..25d4c38 100644 --- a/pages/notificationList/notificationList.vue +++ b/pages/notificationList/notificationList.vue @@ -2,7 +2,7 @@ + :refresher-triggered="refresherTriggered" @scroll="scroll"> @@ -11,7 +11,8 @@ + :threshold="50" @click="deleteNotification(notification, index)" :index="index" + :name="index"> @@ -78,6 +79,13 @@ export default { timeFormat, ...mapActions(useNotificationStore, ['getNotificationList', 'updateNotificationSearch', 'updateNotificationItem','deleteNotificationItem']), ...mapActions(useBasicStore, ['routeJump', 'getDeviceInfo', 'getNetworkType']), + scroll(e) { + this.$refs.swipeItem.forEach(item => { + if(item.show) { + item.closeHandler() + } + }) + }, async deleteNotification (notification, index) { const netWork = await this.getNetworkType() if (!netWork) { diff --git a/pages/setting/setting.vue b/pages/setting/setting.vue index 9149230..39f3c1b 100644 --- a/pages/setting/setting.vue +++ b/pages/setting/setting.vue @@ -2,7 +2,7 @@ - 名称 + 名称 {{currentLockInfo.lockAlias}}