|
|
|
@ -193,7 +193,8 @@
|
|
|
|
|
<view class="cell">{{ item.name }}</view> |
|
|
|
|
<view class="enName">{{ item.enName }}</view> |
|
|
|
|
</view> |
|
|
|
|
<button class="contact" v-if="item.name == '联系客服'" open-type="contact" hover-class="none" bindcontact="handleContact"></button> |
|
|
|
|
<button class="contact" v-if="item.name == '联系客服'" hover-class="none" @click="contact"></button> |
|
|
|
|
<!-- <button class="contact" v-if="item.name == '联系客服'" open-type="contact" hover-class="none" bindcontact="handleContact"></button> --> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
</view> |
|
|
|
@ -677,10 +678,17 @@ export default {
|
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 客服 |
|
|
|
|
handleContact (e) { |
|
|
|
|
// console.log(e.detail.path) |
|
|
|
|
// console.log(e.detail.query) |
|
|
|
|
contact() { |
|
|
|
|
wx.openCustomerServiceChat({ |
|
|
|
|
extInfo: {url: 'https://work.weixin.qq.com/kfid/kfc3952c32f3d9b68c3'}, |
|
|
|
|
corpId: 'ww8bcef4602d97a76a', |
|
|
|
|
success(res) {} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// handleContact (e) { |
|
|
|
|
// // console.log(e.detail.path) |
|
|
|
|
// // console.log(e.detail.query) |
|
|
|
|
// }, |
|
|
|
|
}, |
|
|
|
|
onHide() { |
|
|
|
|
console.log('离开用户中心') |
|
|
|
|