From e6cdd99f4beb731b1369c4edadbb8b48eb9c649a Mon Sep 17 00:00:00 2001 From: liyongle Date: Thu, 12 Oct 2023 10:27:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=A7=A9=20=E6=B4=BB=E5=8A=A8?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E4=B8=BA=E7=A9=BA=E6=97=B6=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E6=97=A0=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Activity/Activity.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/views/Activity/Activity.vue b/src/views/Activity/Activity.vue index 6126596..6a76bb0 100644 --- a/src/views/Activity/Activity.vue +++ b/src/views/Activity/Activity.vue @@ -53,12 +53,14 @@ const modules = [Autoplay, Pagination] const currentItem = ref() const showDetail = ref(false) function clickItem(item: Activity, code: string) { - if (mySwiper.value) { - mySwiper.value.autoplay.stop() - } item.list = shopAcList.value.filter(info => info.content.typeId[0] === code) - currentItem.value = item - showDetail.value = true + if ((item.type === '档期活动' && item.fileUrl_h.length) || (item.type !== '档期活动' && item.list.length)) { + if (mySwiper.value) { + mySwiper.value.autoplay.stop() + } + currentItem.value = item + showDetail.value = true + } } // 展示敬请期待