diff --git a/pages/user/userinfo/userinfo.js b/pages/user/userinfo/userinfo.js index 44d8a2c..480b862 100644 --- a/pages/user/userinfo/userinfo.js +++ b/pages/user/userinfo/userinfo.js @@ -81,6 +81,7 @@ Page({ }, //通过路径跳转到其他页面 goto: function(e) { + this.data.is_zy=1; //避免页面重新加载 var url = e.currentTarget.dataset.url; getApp().goto(url); }, @@ -772,9 +773,12 @@ Page({ }, onShow: function() { - getApp().check_can_share(); + getApp().check_can_share(); var e = this; - if (this.data.is_zy) return false; + if (this.data.is_zy){ + this.data.is_zy=0; + return false; + } this.wait_for_store_config(); //如果有传值进行跳转的话 @@ -1061,10 +1065,12 @@ Page({ //-- 跳转到获取导购的列表 -- go_get_guide:function () { + let th=this; - if(this.data.sele_ing) return false; - this.data.sele_ing=1; + if(this.data.sele_ing) return false; + this.data.sele_ing=1; this.check_click_ok(function(){ + th.data.is_zy=1; getApp().goto("/packageB/pages/user/choice_guide/choice_guide"); },1) diff --git a/pages/user/userinfo/userinfo.wxml b/pages/user/userinfo/userinfo.wxml index f88590c..f275f8f 100644 --- a/pages/user/userinfo/userinfo.wxml +++ b/pages/user/userinfo/userinfo.wxml @@ -275,7 +275,7 @@ - + 收货地址