Commit 417e5ce9 authored by ly's avatar ly

新增联系客服弹窗

parent 71ef12e5
...@@ -38,7 +38,7 @@ let env = process.env.VUE_APP_BASE_NODE_ENV ...@@ -38,7 +38,7 @@ let env = process.env.VUE_APP_BASE_NODE_ENV
*/ */
// #ifdef APP-PLUS // #ifdef APP-PLUS
env = "development"; env = "prod";
// #endif // #endif
const api = { const api = {
......
...@@ -244,10 +244,5 @@ ...@@ -244,10 +244,5 @@
"app-plus": { "app-plus": {
"bounce": "none" "bounce": "none"
} }
},
"uniIdRouter": {
"loginPage": "pages/login/login",
"needLogin": ["pages/my/index"],
"resToLogin": true
} }
} }
...@@ -239,9 +239,28 @@ export default { ...@@ -239,9 +239,28 @@ export default {
// } // }
}, },
goTel() { goTel() {
const self=this
this.buryingPoint('app:my_contact_us_click') 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({ uni.makePhoneCall({
phoneNumber: this.serviceCall //仅为示例 phoneNumber: this.serviceCall //仅为示例
}); });
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
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