From 40ccbf3edb103230ec602ae254ed53be417c4969 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AD=A6=E4=B9=A0=E5=BE=88=E5=B7=AE=E5=95=A6?=
<17633066053@163.com>
Date: Wed, 1 Mar 2023 15:25:00 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20=E4=B9=B0=E5=AE=B6=E7=AB=AFbuyer?=
=?UTF-8?q?=20im=E4=BC=A0=E5=80=BC=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
buyer/src/components/mixes/talkIm.vue | 5 +++--
buyer/src/pages/GoodsDetail.vue | 4 +++-
buyer/src/pages/Merchant.vue | 3 ++-
3 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/buyer/src/components/mixes/talkIm.vue b/buyer/src/components/mixes/talkIm.vue
index a51c1ad4..a50e3cab 100644
--- a/buyer/src/components/mixes/talkIm.vue
+++ b/buyer/src/components/mixes/talkIm.vue
@@ -15,14 +15,15 @@ export default {
},
methods: {
// 跳转im客服
- async IMService() {
+ async IMService(id) {
+
// 获取访问Token
let accessToken = Storage.getItem("accessToken");
await this.getIMDetailMethods();
const userInfo = await getMemberMsg();
if (userInfo.success) {
window.open(
- this.IMLink + "?token=" + accessToken + "&id=" + this.storeMsg.storeId
+ this.IMLink + "?token=" + accessToken + "&id=" + id || this.storeMsg.storeId
);
} else {
this.$Message.error("请登录后再联系客服");
diff --git a/buyer/src/pages/GoodsDetail.vue b/buyer/src/pages/GoodsDetail.vue
index 949eb115..14870db6 100644
--- a/buyer/src/pages/GoodsDetail.vue
+++ b/buyer/src/pages/GoodsDetail.vue
@@ -22,7 +22,7 @@
{{ storeCollected? "已收藏店铺": "收藏店铺" }}
- 联系客服
+ 联系客服
@@ -127,11 +127,13 @@ export default {
}
});
}
+
if (!this.storeMsg) {
// 获取店铺信息
getDetailById(this.goodsMsg.data.storeId).then((res) => {
if (res.success) {
this.storeMsg = res.result;
+
}
});
}
diff --git a/buyer/src/pages/Merchant.vue b/buyer/src/pages/Merchant.vue
index b76609c0..3cf82442 100644
--- a/buyer/src/pages/Merchant.vue
+++ b/buyer/src/pages/Merchant.vue
@@ -14,7 +14,7 @@
:color="storeCollected ? '#ed3f14' : '#fff'"/>{{
storeCollected ? '已收藏店铺' : '收藏店铺'
}}
- 联系客服
@@ -220,6 +220,7 @@ export default {
if (res.success) {
this.storeMsg = res.result;
+ console.log(this.storeMsg)
//判定如果开启楼层展示,则获取页面信息 否则读取商品信息
if (this.storeMsg.pageShow && this.storeMsg.pageShow === '1') {