From 44facf549a2d51118234f853ddf4cbd9453bdb73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Mon, 20 Dec 2021 16:48:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4udesk=E6=96=B9=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/api/common.js | 11 + .../src/components/goodsDetail/ShowGoods.vue | 2 +- buyer/src/pages/GoodsDetail.vue | 196 +++++++++++------- 3 files changed, 130 insertions(+), 79 deletions(-) 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 @@