|
|
|
@ -213,13 +213,23 @@ |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="footerCus firstBtn" v-else> |
|
|
|
|
<view class="cusIcon"> |
|
|
|
|
<image src="/static/detail/customer.png"></image> |
|
|
|
|
<view class="" v-if="setting.provider=='wxqykf'" @click="handleContact"> |
|
|
|
|
<view class="cusIcon"> |
|
|
|
|
<image src="/static/detail/customer.png"></image> |
|
|
|
|
</view> |
|
|
|
|
<view class="customer"> |
|
|
|
|
客服 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="customer"> |
|
|
|
|
客服 |
|
|
|
|
<view class="" v-else> |
|
|
|
|
<view class="cusIcon"> |
|
|
|
|
<image src="/static/detail/customer.png"></image> |
|
|
|
|
</view> |
|
|
|
|
<view class="customer"> |
|
|
|
|
客服 |
|
|
|
|
</view> |
|
|
|
|
<button open-type="contact"></button> |
|
|
|
|
</view> |
|
|
|
|
<button open-type="contact"></button> |
|
|
|
|
</view> |
|
|
|
|
<view v-if="goods.is_show_ktk == 1" class="footerCus firstBtn" @click="toJDdetal()"> |
|
|
|
|
<view class="cusIcon"> |
|
|
|
@ -487,7 +497,8 @@ |
|
|
|
|
province: '江苏省', |
|
|
|
|
city: '南京市', |
|
|
|
|
district: '玄武区' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
setting: {} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
@ -527,6 +538,35 @@ |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
// 在线客服 |
|
|
|
|
handleContact() { |
|
|
|
|
// 商城客服设置 |
|
|
|
|
const setting = this.setting |
|
|
|
|
// 企业微信客服 |
|
|
|
|
if (setting.provider == 'wxqykf') { |
|
|
|
|
if (!setting.config.wxqykf.url || !setting.config.wxqykf.corpId) { |
|
|
|
|
this.$toast('客服链接和企业ID不能为空') |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
// #ifdef H5 |
|
|
|
|
window.open(setting.config.wxqykf.url) |
|
|
|
|
// #endif |
|
|
|
|
// #ifdef MP-WEIXIN |
|
|
|
|
wx.openCustomerServiceChat({ |
|
|
|
|
extInfo: { |
|
|
|
|
url: setting.config.wxqykf.url |
|
|
|
|
}, |
|
|
|
|
corpId: setting.config.wxqykf.corpId, |
|
|
|
|
success(res) {}, |
|
|
|
|
fail(res) { |
|
|
|
|
console.log(res, '企业微信') |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
// #endif |
|
|
|
|
} else { |
|
|
|
|
this.$toast('暂不支持企业微信客服') |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onLook(isLink, url) { |
|
|
|
|
if (isLink) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
@ -910,6 +950,7 @@ |
|
|
|
|
SharpGoodsApi.detail(that.activeTimeId, that.sharpGoodsId) |
|
|
|
|
.then(result => { |
|
|
|
|
let info = result.data.goods; |
|
|
|
|
that.setting=result.data.detail.setting |
|
|
|
|
that.activeInfo = result.data.active |
|
|
|
|
that.goodsId = info.goods_id |
|
|
|
|
that.goods.skuList = []; |
|
|
|
|