修复店铺联系客服跳转问题

master
lemon橪 2022-06-01 17:28:46 +08:00
parent 470995c13d
commit 9a149eb673
1 changed files with 27 additions and 23 deletions

View File

@ -179,30 +179,34 @@ export default {
* 联系客服 * 联系客服
*/ */
linkKefuDetail() { linkKefuDetail() {
// // //
// #ifdef MP-WEIXIN // // #ifdef MP-WEIXIN
const params = { // const params = {
// originalPrice: this.goodsDetail.original || this.goodsDetail.price, // // originalPrice: this.goodsDetail.original || this.goodsDetail.price,
uuid: storage.getUuid(), // uuid: storage.getUuid(),
token: storage.getAccessToken(), // token: storage.getAccessToken(),
sign: this.storeInfo.yzfSign, // sign: this.storeInfo.yzfSign,
mpSign: this.storeInfo.yzfMpSign, // mpSign: this.storeInfo.yzfMpSign,
}; // };
uni.navigateTo({ // uni.navigateTo({
url: // url:
"/pages/product/customerservice/index?params=" + // "/pages/product/customerservice/index?params=" +
encodeURIComponent(JSON.stringify(params)), // encodeURIComponent(JSON.stringify(params)),
}); // });
// #endif // // #endif
// #ifndef MP-WEIXIN // // #ifndef MP-WEIXIN
const sign = this.storeInfo.yzfSign; // const sign = this.storeInfo.yzfSign;
uni.navigateTo({ // uni.navigateTo({
url: // url:
"/pages/tabbar/home/web-view?src=https://yzf.qq.com/xv/web/static/chat/index.html?sign=" + // "/pages/tabbar/home/web-view?src=https://yzf.qq.com/xv/web/static/chat/index.html?sign=" +
sign, // sign,
}); // });
// #endif // // #endif
uni.navigateTo({
url: `/pages/tabbar/home/web-view?IM=${this.storeId}`,
});
}, },
/** 获取店铺分类 */ /** 获取店铺分类 */