Commit 52b3a8cb794230b18da8f754b68371ecd7553550

Authored by vking
1 parent dba37f74

隐藏号码

... ... @@ -81,15 +81,20 @@ Page({
},
getcall: function () {
let bi=this.data.bookInfo
//getApp().isAdmin
if(bi.type==1 && !this.hasCallPhone){//在线预订
if((bi.status==0 || bi.status==6)){
return;
if(bi.type==0){
if (!this.detailData.hasOwner && !this.hasCallPhone) {
return util.toast('只有记录人可以拨打', 'none');
}
}else{
//getApp().isAdmin
if(!this.hasCallPhone){//在线预订
if((bi.status==0 || bi.status==6)){
return;
}
}
}
if (!this.detailData.hasOwner) {
return util.toast('只有记录人可以拨打', 'none');
}
if (this.data.bookInfo.phone.length < 3) {
return util.toast('号码错误', 'none');
}
... ...