|
|
@ -53,12 +53,14 @@ const modules = [Autoplay, Pagination] |
|
|
const currentItem = ref<Activity>() |
|
|
const currentItem = ref<Activity>() |
|
|
const showDetail = ref(false) |
|
|
const showDetail = ref(false) |
|
|
function clickItem(item: Activity, code: string) { |
|
|
function clickItem(item: Activity, code: string) { |
|
|
if (mySwiper.value) { |
|
|
|
|
|
mySwiper.value.autoplay.stop() |
|
|
|
|
|
} |
|
|
|
|
|
item.list = shopAcList.value.filter(info => info.content.typeId[0] === code) |
|
|
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 |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 展示敬请期待 |
|
|
// 展示敬请期待 |
|
|
|