fix: 客服电话跳转

pull/16/head
TianYu 2023-05-25 16:11:49 +08:00
parent 503e5034d9
commit 60392dd6e2
1 changed files with 6 additions and 1 deletions

View File

@ -95,7 +95,7 @@
@click="jumpPage('/pages/users/user_spread_code/index')"> @click="jumpPage('/pages/users/user_spread_code/index')">
<u-icon slot="icon" size="45" name="/static/images/user_icon2.png"></u-icon> <u-icon slot="icon" size="45" name="/static/images/user_icon2.png"></u-icon>
</u-cell> </u-cell>
<u-cell title="热线电话" value="023-12948338" :value="tenantInfo.serviceMobile" isLink> <u-cell title="热线电话" value="023-12948338" :value="tenantInfo.serviceMobile" isLink @click="callPhone">
<u-icon slot="icon" size="45" name="/static/images/user_icon3.png"></u-icon> <u-icon slot="icon" size="45" name="/static/images/user_icon3.png"></u-icon>
</u-cell> </u-cell>
<u-cell title="在线客服" value="8:30-17:30" :value="tenantInfo.serviceTime" isLink @click="kefuClick"> <u-cell title="在线客服" value="8:30-17:30" :value="tenantInfo.serviceTime" isLink @click="kefuClick">
@ -254,6 +254,11 @@
url: url url: url
}) })
}, },
callPhone() {
if(this.tenantInfo.serviceMobile){
window.location.href = `tel:${this.tenantInfo.serviceMobile}`
}
},
kefuClick() { kefuClick() {
if (this.tenantInfo.wxKfUrl) { if (this.tenantInfo.wxKfUrl) {
location.href = this.tenantInfo.wxKfUrl location.href = this.tenantInfo.wxKfUrl