From ab7dec1ff3a8f1123d6f1f093109d1f340d254ba Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Sat, 6 Nov 2021 11:34:38 +0800 Subject: [PATCH] 小程序授权登陆之后,商品的价格要发生变化 --- components/goods_list/goods_list.js | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) diff --git a/components/goods_list/goods_list.js b/components/goods_list/goods_list.js index 371b5c5..8b1ccfc 100644 --- a/components/goods_list/goods_list.js +++ b/components/goods_list/goods_list.js @@ -26,6 +26,12 @@ Component({ //要处理一下,游客登录后的界面的变化,主要还该是改变会员 show: function () { this.init(); + if(getApp().globalData.login_back==1){ + getApp().globalData.login_back==0; + this.data.curPage=1; + this.setData({ recommend: [] }); + this.get_list(); + } } }, -- libgit2 0.21.4