Commit 72d9122ec2fe12bb111ea5d2ab3fe77cfa275dc2

Authored by wangfan
1 parent e564f49b

v2 book sendsms

... ... @@ -39,6 +39,10 @@ Component({
this.triggerEvent("share");
break;
case 1:
if(!/^1\d{10}$/.test(this.data.bookInfo.phone)){
util.toast('手机号码错误','none')
return;
}
wx.navigateTo({
url:'/pages/book/b_sms?id='+this.data.bookInfo.id
});
... ...
... ... @@ -328,10 +328,10 @@ module.exports = {
}
});
},
toast:function(title){
toast:function(title,icon='success'){
wx.showToast({
title:title,
icon:"success"
icon:icon
})
},
showLoading:function(title){
... ...