Commit ca8c0c787f15b17254cd01877729f96a7e43e2bf
1 parent
75af21ce
会员资料的点击跳转返回的时候,门店选择的会白白选, 优化
Showing
2 changed files
with
11 additions
and
5 deletions
pages/user/userinfo/userinfo.js
| ... | ... | @@ -81,6 +81,7 @@ Page({ |
| 81 | 81 | }, |
| 82 | 82 | //通过路径跳转到其他页面 |
| 83 | 83 | goto: function(e) { |
| 84 | + this.data.is_zy=1; //避免页面重新加载 | |
| 84 | 85 | var url = e.currentTarget.dataset.url; |
| 85 | 86 | getApp().goto(url); |
| 86 | 87 | }, |
| ... | ... | @@ -772,9 +773,12 @@ Page({ |
| 772 | 773 | }, |
| 773 | 774 | |
| 774 | 775 | onShow: function() { |
| 775 | - getApp().check_can_share(); | |
| 776 | + getApp().check_can_share(); | |
| 776 | 777 | var e = this; |
| 777 | - if (this.data.is_zy) return false; | |
| 778 | + if (this.data.is_zy){ | |
| 779 | + this.data.is_zy=0; | |
| 780 | + return false; | |
| 781 | + } | |
| 778 | 782 | this.wait_for_store_config(); |
| 779 | 783 | |
| 780 | 784 | //如果有传值进行跳转的话 |
| ... | ... | @@ -1061,10 +1065,12 @@ Page({ |
| 1061 | 1065 | |
| 1062 | 1066 | //-- 跳转到获取导购的列表 -- |
| 1063 | 1067 | go_get_guide:function () { |
| 1068 | + let th=this; | |
| 1064 | 1069 | |
| 1065 | - if(this.data.sele_ing) return false; | |
| 1066 | - this.data.sele_ing=1; | |
| 1070 | + if(this.data.sele_ing) return false; | |
| 1071 | + this.data.sele_ing=1; | |
| 1067 | 1072 | this.check_click_ok(function(){ |
| 1073 | + th.data.is_zy=1; | |
| 1068 | 1074 | getApp().goto("/packageB/pages/user/choice_guide/choice_guide"); |
| 1069 | 1075 | |
| 1070 | 1076 | },1) | ... | ... |
pages/user/userinfo/userinfo.wxml
| ... | ... | @@ -275,7 +275,7 @@ |
| 275 | 275 | </view> |
| 276 | 276 | </view> |
| 277 | 277 | |
| 278 | - <navigator bindtap="goto-address" class="user-name mt flex-vertical-between" url="/packageF/pages/user/address_list/address_list"> | |
| 278 | + <navigator bindtap="goto" class="user-name mt flex-vertical-between" data-url="/packageF/pages/user/address_list/address_list"> | |
| 279 | 279 | <view class="user-name-txt">收货地址</view> |
| 280 | 280 | <view class="flex-center user-txt-right"> |
| 281 | 281 | <view class="angle">∟</view> | ... | ... |