|
@@ -43,6 +43,7 @@ export default {
|
|
|
has_apply:false
|
|
|
}
|
|
|
}, *///无权限用户信息
|
|
|
+ updateHasApply:false
|
|
|
}
|
|
|
},
|
|
|
computed:{
|
|
@@ -298,13 +299,26 @@ export default {
|
|
|
this.pupData.show = true
|
|
|
},
|
|
|
//拨号
|
|
|
- handleCallPhone(tel) {
|
|
|
+ async handleCallPhone(tel) {
|
|
|
uni.makePhoneCall({
|
|
|
phoneNumber: tel ? tel : ' ',
|
|
|
success: () => {
|
|
|
this.pupData.show = false
|
|
|
}
|
|
|
});
|
|
|
+ if(!this.noAuthInfo.customer_info.has_apply && !this.updateHasApply){
|
|
|
+ // 请求申请
|
|
|
+ const res = await apiApplyPermission({
|
|
|
+ company_name: this.noAuthInfo.customer_info.company_name,
|
|
|
+ real_name: this.noAuthInfo.customer_info.name,
|
|
|
+ source: 5,
|
|
|
+ from_page: '问答社区'
|
|
|
+ })
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.updateHasApply = true
|
|
|
+ console.log('自动申请成功');
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
//弹窗申请权限
|
|
|
async handleApply() {
|