|
|
@ -13,6 +13,7 @@ |
|
|
|
class="goodsImgswiper-box " |
|
|
|
:indicator-dots="true" |
|
|
|
:autoplay="true" |
|
|
|
:current="swiperCurrent" |
|
|
|
> |
|
|
|
<swiper-item |
|
|
|
v-for="(imgItem, index) in productInfo.images" |
|
|
@ -215,6 +216,7 @@ export default { |
|
|
|
components: {shareSpell, Swiper, SwiperSlide}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
swiperCurrent:0, |
|
|
|
// 活动倒计时 |
|
|
|
timeDifference: 0, |
|
|
|
activeTimeObj: { |
|
|
@ -391,10 +393,12 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
switchSkuImage(index) { |
|
|
|
if (this.$refs.skuSwiper){ |
|
|
|
this.$refs.skuSwiper.$swiper.slideTo(index, 1000, false); |
|
|
|
} |
|
|
|
console.log('switchSkuImage-->', this.$refs.skuSwiper) |
|
|
|
console.log('switchSkuImage-->', this.$refs.skuSwiper) |
|
|
|
this.swiperCurrent = index |
|
|
|
// if (this.$refs.skuSwiper){ |
|
|
|
// this.$refs.skuSwiper.$swiper.slideTo(index, 1000, false); |
|
|
|
// } |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|