|
...
|
...
|
@@ -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');
|
|
|
|
}
|
...
|
...
|
|