Commit bd3b561305c770735e6d7bd4c84da98540cf4b34

Authored by 后端研发-苏明海
2 parents b9f14922 3ca5f1bd

Merge branch 'dev' into 'test'

更换手机

See merge request !148
pages/user/Change_phone/Change_phone.js
@@ -110,11 +110,11 @@ Page({ @@ -110,11 +110,11 @@ Page({
110 success: function(res) { 110 success: function(res) {
111 if (res.data.code == 0) { 111 if (res.data.code == 0) {
112 getApp().my_warnning("更换成功", 0, th); 112 getApp().my_warnning("更换成功", 0, th);
113 - // th.setData({  
114 - // url: "/pages/user/userinfo/userinfo?change_phone" + change_phone  
115 - // }) 113 + th.setData({
  114 + url: "/pages/user/userinfo/userinfo?change_phone" + change_phone
  115 + })
116 } else { 116 } else {
117 - getApp().my_warnning("更换失败", 0, th); 117 + getApp().my_warnning(res.data.msg, 0, th);
118 return false; 118 return false;
119 } 119 }
120 120
pages/user/userinfo/userinfo.wxml
@@ -159,7 +159,7 @@ @@ -159,7 +159,7 @@
159 <input class="user-txt-right" bindblur="IdentityIDCard" value="" type="idcard" maxlength="18" placeholder="*身份证" /> 159 <input class="user-txt-right" bindblur="IdentityIDCard" value="" type="idcard" maxlength="18" placeholder="*身份证" />
160 </block> --> 160 </block> -->
161 </view> 161 </view>
162 - <view data-url="/pages/user/Change_phone/Change_phone?mobile={{user.mobile}}" bindtap="go_phone" class="user-name flex-vertical-between" data-type="mobile"> 162 + <view data-url="/pages/user/Change_phone/Change_phone?mobile={{user.mobile}}&openid={{user.weapp_openid}}" bindtap="go_phone" class="user-name flex-vertical-between" data-type="mobile">
163 <view class="user-name-txt">更换手机</view> 163 <view class="user-name-txt">更换手机</view>
164 <view class="flex-center user-txt-right"> 164 <view class="flex-center user-txt-right">
165 <view class="flex">{{phone}}</view> 165 <view class="flex">{{phone}}</view>