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') {