From 5a90567e98d158e5bcddd9ba836686227ab9b3de Mon Sep 17 00:00:00 2001 From: eeer <17633066053@163.com> Date: Mon, 20 Dec 2021 06:30:40 +0000 Subject: [PATCH 1/6] =?UTF-8?q?update=20buyer/vue.config.js.=20=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E5=8F=96=E6=B6=88cdn=E5=8A=A0=E8=BD=BD=20=E7=9B=AE?= =?UTF-8?q?=E5=89=8Dcdn=E9=93=BE=E6=8E=A5=E7=9A=84https=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E6=8C=82=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/vue.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buyer/vue.config.js b/buyer/vue.config.js index a886ad78..4e99d3f4 100644 --- a/buyer/vue.config.js +++ b/buyer/vue.config.js @@ -11,7 +11,8 @@ const configs = require('./src/config') * 将开发环境中替换为本地的内容,方便处理bug以及开启vueDev * 我们可以根据环境变量进行相应的处理,只有在产品的时候,才让插件去自动注入相应的资源文件到html页面 */ -const enableProduction = process.env.NODE_ENV === "production"; // 是否生产环境 +// const enableProduction = process.env.NODE_ENV === "production"; // 是否生产环境 +const enableProduction = false // 统一取消cdn加载 目前cdn链接的https请求挂了 let externals = { vue: "Vue", From 8d3b5cf91d31ac953cf3fb57bd8136195190fa27 Mon Sep 17 00:00:00 2001 From: eeer <17633066053@163.com> Date: Mon, 20 Dec 2021 06:31:08 +0000 Subject: [PATCH 2/6] =?UTF-8?q?update=20manager/vue.config.js.=20=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E5=8F=96=E6=B6=88cdn=E5=8A=A0=E8=BD=BD=20=E7=9B=AE?= =?UTF-8?q?=E5=89=8Dcdn=E9=93=BE=E6=8E=A5=E7=9A=84https=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E6=8C=82=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/vue.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manager/vue.config.js b/manager/vue.config.js index c7dabf1b..74a056a3 100644 --- a/manager/vue.config.js +++ b/manager/vue.config.js @@ -10,7 +10,8 @@ const resolve = dir => { * 将开发环境中替换为本地的内容,方便处理bug以及开启vueDev * 我们可以根据环境变量进行相应的处理,只有在产品的时候,才让插件去自动注入相应的资源文件到html页面 */ -const enableProduction = process.env.NODE_ENV === "production"; // 是否生产环境 +// const enableProduction = process.env.NODE_ENV === "production"; // 是否生产环境 +const enableProduction = false // 统一取消cdn加载 目前cdn链接的https请求挂了 let externals = { vue: "Vue", From 09dd9861fd9b4897ea6c6e2feb99910b0d5b99fc Mon Sep 17 00:00:00 2001 From: eeer <17633066053@163.com> Date: Mon, 20 Dec 2021 06:31:42 +0000 Subject: [PATCH 3/6] =?UTF-8?q?update=20seller/vue.config.js.=20=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E5=8F=96=E6=B6=88cdn=E5=8A=A0=E8=BD=BD=20=E7=9B=AE?= =?UTF-8?q?=E5=89=8Dcdn=E9=93=BE=E6=8E=A5=E7=9A=84https=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E6=8C=82=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seller/vue.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/seller/vue.config.js b/seller/vue.config.js index 1a782929..f81f4c41 100644 --- a/seller/vue.config.js +++ b/seller/vue.config.js @@ -10,7 +10,8 @@ const resolve = dir => { * 将开发环境中替换为本地的内容,方便处理bug以及开启vueDev * 我们可以根据环境变量进行相应的处理,只有在产品的时候,才让插件去自动注入相应的资源文件到html页面 */ -const enableProduction = process.env.NODE_ENV === "production"; // 是否生产环境 +// const enableProduction = process.env.NODE_ENV === "production"; // 是否生产环境 +const enableProduction = false // 统一取消cdn加载 目前cdn链接的https请求挂了 let externals = { vue: "Vue", 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 4/6] =?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 @@