|
|
@@ -149,6 +149,9 @@ async function handleAddCart() {
|
|
|
console.log(error)
|
|
|
}
|
|
|
}
|
|
|
+function handleClick() {
|
|
|
+ uni.previewImage({ urls: swiperList.value as string[] })
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
@@ -159,7 +162,7 @@ async function handleAddCart() {
|
|
|
safe-area-inset-top left-arrow fixed @click-left="router.back()"
|
|
|
/>
|
|
|
<template v-if="goodsInfo">
|
|
|
- <wd-swiper v-model:current="current" :list="swiperList" :autoplay="false" :height="375">
|
|
|
+ <wd-swiper v-model:current="current" :list="swiperList" :autoplay="false" :height="375" @click="handleClick">
|
|
|
<template #indicator="{ current: currentIndex, total }">
|
|
|
<view class="custom-indicator absolute bottom-60rpx right-20rpx px26rpx">
|
|
|
{{ currentIndex + 1 }}/{{ total }}
|