Commit 64d33e27c96b3b1cb3ece5a607b3a47a6c11d94b
1 parent
d5ca4bcd
修改地址
Showing
2 changed files
with
17 additions
and
8 deletions
pages/user/userinfo/userinfo.js
@@ -58,6 +58,7 @@ Page({ | @@ -58,6 +58,7 @@ Page({ | ||
58 | gradename:"",//会员权益的卡 | 58 | gradename:"",//会员权益的卡 |
59 | isBool:"", | 59 | isBool:"", |
60 | sto_sele_id:"",//所属门店id | 60 | sto_sele_id:"",//所属门店id |
61 | + is_zy:0, | ||
61 | }, | 62 | }, |
62 | //是否启动密码消费 | 63 | //是否启动密码消费 |
63 | isstcsp:function(){ | 64 | isstcsp:function(){ |
@@ -555,8 +556,9 @@ Page({ | @@ -555,8 +556,9 @@ Page({ | ||
555 | } | 556 | } |
556 | }); | 557 | }); |
557 | }, | 558 | }, |
558 | - onShow: function() { | ||
559 | - | 559 | + |
560 | + onShow: function() { | ||
561 | + if(this.data.is_zy) return false; | ||
560 | this.wait_for_store_config(); | 562 | this.wait_for_store_config(); |
561 | var e = this; | 563 | var e = this; |
562 | var req = t; | 564 | var req = t; |
@@ -572,10 +574,10 @@ Page({ | @@ -572,10 +574,10 @@ Page({ | ||
572 | phone: a.mobile, | 574 | phone: a.mobile, |
573 | user: a, | 575 | user: a, |
574 | openid: a.openid, | 576 | openid: a.openid, |
575 | - sto_sele_id: a.pickup_id, | 577 | + sto_sele_id: a.pickup_id, |
576 | consumption: a.paypwd, | 578 | consumption: a.paypwd, |
577 | - identity_card:a.idcard, | ||
578 | - | 579 | + identity_card:a.idcard, |
580 | + address:a.address, | ||
579 | }); | 581 | }); |
580 | } | 582 | } |
581 | }) | 583 | }) |
@@ -772,6 +774,12 @@ Page({ | @@ -772,6 +774,12 @@ Page({ | ||
772 | 774 | ||
773 | } | 775 | } |
774 | }) | 776 | }) |
775 | - } | 777 | + } , |
778 | + | ||
779 | + go_phone:function(e){ | ||
780 | + var url=e.currentTarget.dataset.url; | ||
781 | + this.setData({is_zy:1}); | ||
782 | + getApp().goto(url); | ||
783 | + } | ||
776 | 784 | ||
777 | }); | 785 | }); |
778 | \ No newline at end of file | 786 | \ No newline at end of file |
pages/user/userinfo/userinfo.wxml
@@ -159,13 +159,14 @@ | @@ -159,13 +159,14 @@ | ||
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 | - <navigator url="/pages/user/Change_phone/Change_phone?mobile={{user.mobile}}" class="user-name flex-vertical-between" data-type="mobile"> | 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"> |
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> |
166 | <view class="angle">∟</view> | 166 | <view class="angle">∟</view> |
167 | </view> | 167 | </view> |
168 | - </navigator> | 168 | + </view> |
169 | + | ||
169 | <view class="user-name flex-vertical-between" data-type="mobile"> | 170 | <view class="user-name flex-vertical-between" data-type="mobile"> |
170 | <view class="user-name-txt">地址</view> | 171 | <view class="user-name-txt">地址</view> |
171 | <!-- <block wx:if="{{user.address.length>0}}"> | 172 | <!-- <block wx:if="{{user.address.length>0}}"> |