소스 검색

修改商品主图问题

hejie 3 년 전
부모
커밋
ff80f84a54
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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: '提示',