Commit e772f27a by 李嘉林

点击客户卡片进入页面

parent 4a2f4719
......@@ -4,7 +4,7 @@
<img src="https://mayi-newshop.oss-cn-shanghai.aliyuncs.com/product/HCe2iRXHsP.png" alt="" />
</div>
<div class="btn-wrap" v-if="defaultContact == true">
<button open-type="contact" show-message-card :send-message-title="wxConcatGoods.title" :send-message-img="wxConcatGoods.img"
<button open-type="contact" @contact="handleContact" show-message-card :send-message-title="wxConcatGoods.title" :send-message-img="wxConcatGoods.img"
:send-message-path="wxConcatGoods.pathLink"
:session-from="sessionFrom">
<div class="btn-main">
......@@ -74,6 +74,22 @@ export default {
})
},
methods: {
handleContact(e) {
//TODO 商品详情页进入客服页面-进入客服聊天框-点击聊天页面的商品详情卡片进入小程序结果只是返回到了客户详情页面
console.log(e,'handleContact-e')
log.info(e,'handleContact-e')
let errMsg = e.target.errMsg;
if(errMsg && errMsg == 'enterContact:ok'){
let backPath = e.target.query.backpath;
let backParams = e.target.query.params;
let url = `${e.target.path}?from=${e.target.query.from}&backpath=${encodeURIComponent(
backPath
)}&params=${encodeURIComponent(backParams)}}`;
wx.reLaunch({
url,
})
}
},
myOpeChat() {
log.info('okokok', this.result.whetherOpenCustomerUrl, this.result.whetherOpenCustomerSuiteId);
if (this.result.whetherOpenCustomerService == 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment