diff --git a/buyer/src/components/goodsDetail/ShowGoods.vue b/buyer/src/components/goodsDetail/ShowGoods.vue
index 8f23da65..57d20b77 100644
--- a/buyer/src/components/goodsDetail/ShowGoods.vue
+++ b/buyer/src/components/goodsDetail/ShowGoods.vue
@@ -155,7 +155,7 @@ export default {
count: 1, // 商品数量
imgIndex: 0, // 展示图片下标
currentSelceted: [], // 当前商品sku
- imgList: this.detail.data.specList[0].specImage || [{}], // 商品图片列表
+ imgList: [{}], // 商品图片列表
skuDetail: this.detail.data, // sku详情
goodsSpecList: this.detail.specs, // 商品spec
promotionMap: { // 活动状态
@@ -329,6 +329,11 @@ export default {
}
})
}
+ this.detail.data.specList.forEach(e => {
+ if (e.specName === 'images') {
+ this.imgList = e.specImage
+ }
+ })
this.formatSku(this.goodsSpecList);
this.promotion()
document.title = this.skuDetail.goodsName
diff --git a/buyer/src/pages/GoodsDetail.vue b/buyer/src/pages/GoodsDetail.vue
index 80028cc0..33b72bff 100644
--- a/buyer/src/pages/GoodsDetail.vue
+++ b/buyer/src/pages/GoodsDetail.vue
@@ -16,9 +16,9 @@