Commit c758e33902a089e55420305be09481df710ac5c2

Authored by vking
1 parent 98a059c7

周到安排

Showing 1 changed file with 12 additions and 6 deletions
@@ -154,15 +154,21 @@ Page({ @@ -154,15 +154,21 @@ Page({
154 activeTab:'reserve' 154 activeTab:'reserve'
155 }) 155 })
156 } 156 }
157 - let seller_tel=this.data.seller.seller_tel  
158 - if(seller_tel.length<1) return util.toast('商家电话错误','none')  
159 - if(seller_tel.length==1){//只有一个电话  
160 - let phone=seller_tel[0].replace(/[^\d]/,'') 157 + if(this.data.hasOnlineReserve && this.data.seller.is_tele==0){
161 wx.makePhoneCall({ 158 wx.makePhoneCall({
162 - phoneNumber:phone 159 + phoneNumber:'400-000-9690'
163 }) 160 })
164 }else{ 161 }else{
165 - this.selectComponent('#as').show(); 162 + let seller_tel=this.data.seller.seller_tel
  163 + if(seller_tel.length<1) return util.toast('商家电话错误','none')
  164 + if(seller_tel.length==1){//只有一个电话
  165 + let phone=seller_tel[0].replace(/[^\d]/,'')
  166 + wx.makePhoneCall({
  167 + phoneNumber:phone
  168 + })
  169 + }else{
  170 + this.selectComponent('#as').show();
  171 + }
166 } 172 }
167 }, 173 },
168 reservePhone(e){ 174 reservePhone(e){