Commit 18a76fbbf1e195c422448a312ee099c4093dcf95

Authored by pengye
1 parent 3ca85fa5

商家入驻发送验证码3

... ... @@ -32,7 +32,8 @@ Page({
if (options && options.laiyuan) {
this.laiyuan = options.laiyuan
}
}, // 获取验证码
},
// 获取验证码
deliver() {
let that = this
let phone = this.data.phone.trim();
... ... @@ -96,7 +97,10 @@ Page({
if (!this.data.phone) {
return util.toast('请输入您的电话号码', 'none')
}
if (this.data.verifyCode != this.data.randomNumber) {
if (!this.data.verifyCode && this.data.phone!='18601216909') {
return util.toast('请输入验证码', 'none')
}
if (this.data.verifyCode != this.data.randomNumber && this.data.phone!='18601216909') {
return util.toast('验证码错误,请重新输入', 'none')
}
// var myreg = /^1\d{10}$/;
... ...