From ca8c0c787f15b17254cd01877729f96a7e43e2bf Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Thu, 7 Dec 2023 09:39:12 +0800 Subject: [PATCH] 会员资料的点击跳转返回的时候,门店选择的会白白选, 优化 --- pages/user/userinfo/userinfo.js | 14 ++++++++++---- pages/user/userinfo/userinfo.wxml | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) 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 @@ - + 收货地址 -- libgit2 0.21.4