Commit 6468ebb43f738669af04e7b83a73554cfd20582f

Authored by wangfan
1 parent ef7ef9da

C端电话不一致

... ... @@ -49,22 +49,23 @@ Component({
tapButton(e){
let type=util.attr(e,'type');
if(type=='oncall'){
if(this.data.seller.seller_tel.length<2){
if(!this.data.seller.phone){
return util.toast('商家电话错误','none');
}
let seller_tel=this.data.seller.seller_tel;
if(seller_tel.length<1){
seller_tel=[this.data.seller.phone]
}
if(seller_tel.length==1){
wx.makePhoneCall({
phoneNumber:this.data.seller.phone
phoneNumber:seller_tel[0].replace(/[^\d]/g,'')
})
}else{
//wx.hideTabBar();
wx.showActionSheet({
itemList:this.data.seller.seller_tel,
itemList:seller_tel,
complete:()=>{
//wx.showTabBar();
},
success:(res)=>{
let phone=this.data.seller.seller_tel[res.tapIndex]
let phone=seller_tel[res.tapIndex]
wx.makePhoneCall({
phoneNumber:phone.replace(/[^\d]/g,'')
})
... ...