Browse Source

修改商品主图问题

hejie 3 năm trước cách đây
mục cha
commit
ff80f84a54
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      src/pages/product/p_details.vue

+ 4 - 0
src/pages/product/p_details.vue

@@ -166,6 +166,10 @@ import authorizeModule from '@/components/authorize-module/index'
 				post("goods/goodsDetail",da).then(res => {
                     if(res.code === 0){
                         this.detail = res.data.data
+						let imgs = [];
+						imgs.push(this.detail.original_img)
+						imgs.push(...this.detail.goods_img)
+						this.detail.goods_img = imgs
                     }else{
                         uni.showModal({
                             title: '提示',