Commit 417e5ce9 authored by ly's avatar ly

新增联系客服弹窗

parent 71ef12e5
......@@ -38,7 +38,7 @@ let env = process.env.VUE_APP_BASE_NODE_ENV
*/
// #ifdef APP-PLUS
env = "development";
env = "prod";
// #endif
const api = {
......
......@@ -244,10 +244,5 @@
"app-plus": {
"bounce": "none"
}
},
"uniIdRouter": {
"loginPage": "pages/login/login",
"needLogin": ["pages/my/index"],
"resToLogin": true
}
}
......@@ -239,9 +239,28 @@ export default {
// }
},
goTel() {
this.buryingPoint('app:my_contact_us_click')
const self=this
self.buryingPoint('app:my_contact_us_click')
const telPhone=uni.getStorageSync('telPhone')
if(telPhone){
self.goPhone()
}else{
uni.showModal({
title: '提示',
content: '该“联系我们”功能需要获取您的电话拨号等权限,以便于您通过拨打电话的方式向我们反映问题!',
showCancel: false,//没有取消按钮的弹框
confirmText: '确定',
success: function (res) {
if (res.confirm) {
console.log('用户点击确定');
self.goPhone()
}
}
})
}
},
goPhone(){
uni.setStorageSync('telPhone','1')
uni.makePhoneCall({
phoneNumber: this.serviceCall //仅为示例
});
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
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