Commit 52b3a8cb794230b18da8f754b68371ecd7553550

Authored by vking
1 parent dba37f74

隐藏号码

@@ -81,15 +81,20 @@ Page({ @@ -81,15 +81,20 @@ Page({
81 }, 81 },
82 getcall: function () { 82 getcall: function () {
83 let bi=this.data.bookInfo 83 let bi=this.data.bookInfo
84 - //getApp().isAdmin  
85 - if(bi.type==1 && !this.hasCallPhone){//在线预订  
86 - if((bi.status==0 || bi.status==6)){  
87 - return; 84 +
  85 + if(bi.type==0){
  86 + if (!this.detailData.hasOwner && !this.hasCallPhone) {
  87 + return util.toast('只有记录人可以拨打', 'none');
  88 + }
  89 + }else{
  90 + //getApp().isAdmin
  91 + if(!this.hasCallPhone){//在线预订
  92 + if((bi.status==0 || bi.status==6)){
  93 + return;
  94 + }
88 } 95 }
89 } 96 }
90 - if (!this.detailData.hasOwner) {  
91 - return util.toast('只有记录人可以拨打', 'none');  
92 - } 97 +
93 if (this.data.bookInfo.phone.length < 3) { 98 if (this.data.bookInfo.phone.length < 3) {
94 return util.toast('号码错误', 'none'); 99 return util.toast('号码错误', 'none');
95 } 100 }