Enzo 5 years ago
parent
commit
2d6bfc8859
  1. 2
      pages/center/index.vue
  2. 2
      pages/goodsDetail/index.vue

2
pages/center/index.vue

@ -146,9 +146,11 @@
}, },
// //
lookImg(img){ lookImg(img){
this.$u.throttle(() => {
uni.previewImage({ uni.previewImage({
urls: [img] urls: [img]
}) })
}, 200);
}, },
// //
chargeOff(){ chargeOff(){

2
pages/goodsDetail/index.vue

@ -159,12 +159,14 @@
}, },
// //
lookImg(index){ lookImg(index){
this.$u.throttle(() => {
let goods_banner = this.goods_detail.banners || []; let goods_banner = this.goods_detail.banners || [];
let banners = goods_banner.map(item => item.cover); let banners = goods_banner.map(item => item.cover);
uni.previewImage({ uni.previewImage({
urls: banners, urls: banners,
current: index current: index
}) })
}, 200);
}, },
}, },
onShareAppMessage(){ onShareAppMessage(){

Loading…
Cancel
Save