|
...
|
...
|
@@ -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){
|
...
|
...
|
|