Skip to content

Commit

Permalink
'微信绑定手机发送短信bug修复'
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyecommerce committed Jun 17, 2020
1 parent 449d075 commit 0dfc352
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion pages/login/login.js
Expand Up @@ -62,7 +62,7 @@ Page({
data: {},
success: function (res) {
wx.hideLoading();
// 如果已经登陆,则跳转page/my/my
// 如果已经登陆,则跳转到上一页
if (res.data.code == '1100006') {
wx.navigateBack({
delta: 1
Expand Down Expand Up @@ -177,6 +177,10 @@ Page({
var myreg = /^0?1[3|4|5|6|7|8][0-9]\d{8}$/;
return myreg.test(phone)
},
listenerPhoneInput: function (e) {
this.data.phone = e.detail.value;
},

fetchCapthcha : function(e){
var that = this;
var phone = that.data.phone;
Expand Down
2 changes: 1 addition & 1 deletion pages/login/login.wxml
Expand Up @@ -30,7 +30,7 @@
<view class="row-wrap">
<view class="label">{{language.phone}}</view>
<view class="label-right">
<input name="phone" class="input" type="phone" placeholder="Phone" value="{{phone}}" />
<input bindinput="listenerPhoneInput" name="phone" class="input" type="phone" placeholder="phone" value="{{phone}}" />
</view>
</view>
<view class="row-wrap">
Expand Down

0 comments on commit 0dfc352

Please sign in to comment.