diff --git a/buyer/src/api/common.js b/buyer/src/api/common.js index def96a12..68bebf68 100644 --- a/buyer/src/api/common.js +++ b/buyer/src/api/common.js @@ -81,3 +81,14 @@ export function articleDetail (id) { method: Method.GET }); } + + + + +// 获取IM接口前缀 +export function getIMDetail () { + return request({ + url: `${commonUrl}/common/IM`, + method: Method.GET + }); +} diff --git a/buyer/src/components/goodsDetail/ShowGoods.vue b/buyer/src/components/goodsDetail/ShowGoods.vue index d2c9c86a..645789dc 100644 --- a/buyer/src/components/goodsDetail/ShowGoods.vue +++ b/buyer/src/components/goodsDetail/ShowGoods.vue @@ -224,7 +224,7 @@ export default { count: 1, // 商品数量 imgIndex: 0, // 展示图片下标 currentSelceted: [], // 当前商品sku - imgList: [{}], // 商品图片列表 + imgList: [{url:''}], // 商品图片列表 skuDetail: this.detail.data, // sku详情 goodsSpecList: this.detail.specs, // 商品spec promotionMap: { diff --git a/buyer/src/pages/GoodsDetail.vue b/buyer/src/pages/GoodsDetail.vue index 33b72bff..3c1d40e3 100644 --- a/buyer/src/pages/GoodsDetail.vue +++ b/buyer/src/pages/GoodsDetail.vue @@ -13,14 +13,24 @@