Commit c9fbbf21 by liuquan

no message

parent fcd2910c
......@@ -276,6 +276,16 @@ Page({
showCancel: false,
})
return;
}else if (that.data.phone== '') {
wx.showModal({
title: '提示',
content: '请填写手机号',
showCancel: false,
})
that.setData({
sava: true
})
return;
} else if (that.data.phone != '' && that.data.phone.length != 11) {
wx.showModal({
title: '提示',
......
......@@ -8,7 +8,7 @@
<view class="flex-xm4">
<view class="tname">手机号</view>
<view class="phoneinput">
<input type="number" placeholder="填" value="{{phone}}" bindinput='bindPhone' maxlength="11"></input>
<input type="number" placeholder="填" value="{{phone}}" bindinput='bindPhone' maxlength="11"></input>
<view wx:if="{{!phoneYes}}" class="line"></view>
<button wx:if='{{!phoneYes}}' class="wxhq" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">微信获取</button>
<button wx:if="{{time==0&&phoneYes}}" class="getcode" bindtap="getPhoneCode">获取验证码</button>
......
......@@ -280,7 +280,7 @@ Page({
showCancel: false,
})
return;
} else if (that.data.phone.length == "") {
} else if (that.data.phone == "") {
wx.showModal({
title: '提示',
content: '请填写手机号',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment