Commit b558cb0d960ffb65b8eed91bd56e58c9e7f68193

Authored by wangfan
1 parent 0040ec0a

smsbatch

... ... @@ -39,10 +39,13 @@ Component({
this.triggerEvent("share");
break;
case 1:
if(!/^1\d{10}$/.test(this.data.bookInfo.phone)){
util.toast('手机号码错误','none')
return;
}
if(!this.data.bookInfo.phone){
util.toast('未填写手机号码','none')
return;
}else if(!/^1\d{10}$/.test(this.data.bookInfo.phone)){
util.toast('手机号码错误','none')
return;
}
this.close();
wx.navigateTo({
url:'/pages/book/b_sms?id='+this.data.bookInfo.id
... ... @@ -52,8 +55,10 @@ Component({
if(!this.data.bookInfo.hasOwner){
return util.toast('只有记录人可以拨打','none');
}
if(this.data.bookInfo.phone.length<3){
return util.toast('号码错误','none');
console.log('this.data.bookInfo',this.data.bookInfo);
let pl=this.data.bookInfo.phone?this.data.bookInfo.phone.length:0;
if(pl<3){
return util.toast(pl==0?'未填写手机号码':'手机号码错误','none');
}
wx.makePhoneCall({
phoneNumber: this.data.bookInfo.phone, //仅为示例,并非真实的电话号码
... ...
... ... @@ -5,7 +5,7 @@
right:0;
top:0;
bottom:0;
background:rgba(0,0,0,0);
background:rgba(20,20,20,0.5);
}
.notice-fixed{
width:100%;
... ...