Commit c758e33902a089e55420305be09481df710ac5c2

Authored by vking
1 parent 98a059c7

周到安排

Showing 1 changed file with 12 additions and 6 deletions
... ... @@ -154,15 +154,21 @@ Page({
activeTab:'reserve'
})
}
let seller_tel=this.data.seller.seller_tel
if(seller_tel.length<1) return util.toast('商家电话错误','none')
if(seller_tel.length==1){//只有一个电话
let phone=seller_tel[0].replace(/[^\d]/,'')
if(this.data.hasOnlineReserve && this.data.seller.is_tele==0){
wx.makePhoneCall({
phoneNumber:phone
phoneNumber:'400-000-9690'
})
}else{
this.selectComponent('#as').show();
let seller_tel=this.data.seller.seller_tel
if(seller_tel.length<1) return util.toast('商家电话错误','none')
if(seller_tel.length==1){//只有一个电话
let phone=seller_tel[0].replace(/[^\d]/,'')
wx.makePhoneCall({
phoneNumber:phone
})
}else{
this.selectComponent('#as').show();
}
}
},
reservePhone(e){
... ...