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 | 58 | gradename:"",//会员权益的卡 |
59 | 59 | isBool:"", |
60 | 60 | sto_sele_id:"",//所属门店id |
61 | + is_zy:0, | |
61 | 62 | }, |
62 | 63 | //是否启动密码消费 |
63 | 64 | isstcsp:function(){ |
... | ... | @@ -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 | 562 | this.wait_for_store_config(); |
561 | 563 | var e = this; |
562 | 564 | var req = t; |
... | ... | @@ -572,10 +574,10 @@ Page({ |
572 | 574 | phone: a.mobile, |
573 | 575 | user: a, |
574 | 576 | openid: a.openid, |
575 | - sto_sele_id: a.pickup_id, | |
577 | + sto_sele_id: a.pickup_id, | |
576 | 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 | 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 | 786 | \ No newline at end of file | ... | ... |
pages/user/userinfo/userinfo.wxml
... | ... | @@ -159,13 +159,14 @@ |
159 | 159 | <input class="user-txt-right" bindblur="IdentityIDCard" value="" type="idcard" maxlength="18" placeholder="*身份证" /> |
160 | 160 | </block> --> |
161 | 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 | 163 | <view class="user-name-txt">更换手机</view> |
164 | 164 | <view class="flex-center user-txt-right"> |
165 | 165 | <view class="flex">{{phone}}</view> |
166 | 166 | <view class="angle">∟</view> |
167 | 167 | </view> |
168 | - </navigator> | |
168 | + </view> | |
169 | + | |
169 | 170 | <view class="user-name flex-vertical-between" data-type="mobile"> |
170 | 171 | <view class="user-name-txt">地址</view> |
171 | 172 | <!-- <block wx:if="{{user.address.length>0}}"> | ... | ... |