diff --git a/src/pages/goods_detail/goods_detail.vue b/src/pages/goods_detail/goods_detail.vue index 8983cf5..1b2a3ab 100644 --- a/src/pages/goods_detail/goods_detail.vue +++ b/src/pages/goods_detail/goods_detail.vue @@ -3,7 +3,7 @@ - + @@ -27,6 +27,11 @@ export default { async getGoodsDetail(){ const { pics } = (await this.$u.api.getGoodsDetail({ goods_id: this.goods_id })).message this.pics = pics + }, + showBigImgHandle(current){ + const urls = this.pics.map(item => item.pics_big) + uni.previewImage({ urls, current }) + //Array. 数组内是字符串格式 } },