|
...
|
...
|
@@ -40,12 +40,30 @@ Component({ |
|
|
|
tapButton(e){
|
|
|
|
let type=util.attr(e,'type');
|
|
|
|
if(type=='oncall'){
|
|
|
|
if(!this.data.seller.phone){
|
|
|
|
if(this.data.seller.seller_tel.length<1){
|
|
|
|
if(!this.data.seller.phone){
|
|
|
|
return util.toast('商家电话错误','none');
|
|
|
|
}
|
|
|
|
wx.makePhoneCall({
|
|
|
|
}
|
|
|
|
wx.makePhoneCall({
|
|
|
|
phoneNumber:this.data.seller.phone
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}else{
|
|
|
|
wx.hideTabBar();
|
|
|
|
//this.selectComponent('#as').show();
|
|
|
|
wx.showActionSheet({
|
|
|
|
itemList:this.data.seller.seller_tel,
|
|
|
|
complete:()=>{
|
|
|
|
wx.showTabBar();
|
|
|
|
},
|
|
|
|
success:(res)=>{
|
|
|
|
let phone=this.data.seller.seller_tel[res.tapIndex]
|
|
|
|
wx.makePhoneCall({
|
|
|
|
phoneNumber:phone.replace(/[^\d]/g,'')
|
|
|
|
})
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
}else{
|
|
|
|
util.toast('请打电话预定','none');
|
|
|
|
}
|
...
|
...
|
|