Authored by 李奇

商品详情页swiper升级api

... ... @@ -32,6 +32,8 @@ export default {
goods: [Array]
},
data() {
let vm = this;
return {
goodsList: [],
reload: true,
... ... @@ -41,8 +43,10 @@ export default {
swiperOption: {
loop: true,
slidesPerView: 3,
onSlideChangeEnd: swiper => {
this.setActiveSlide(swiper.realIndex);
on: {
slideChangeTransitionEnd() {
vm.setActiveSlide(this.realIndex)
}
}
}
};
... ...