Commit ab7dec1ff3a8f1123d6f1f093109d1f340d254ba
1 parent
a5b646fd
小程序授权登陆之后,商品的价格要发生变化
Showing
1 changed file
with
6 additions
and
0 deletions
components/goods_list/goods_list.js
| @@ -26,6 +26,12 @@ Component({ | @@ -26,6 +26,12 @@ Component({ | ||
| 26 | //要处理一下,游客登录后的界面的变化,主要还该是改变会员 | 26 | //要处理一下,游客登录后的界面的变化,主要还该是改变会员 | 
| 27 | show: function () { | 27 | show: function () { | 
| 28 | this.init(); | 28 | this.init(); | 
| 29 | + if(getApp().globalData.login_back==1){ | ||
| 30 | + getApp().globalData.login_back==0; | ||
| 31 | + this.data.curPage=1; | ||
| 32 | + this.setData({ recommend: [] }); | ||
| 33 | + this.get_list(); | ||
| 34 | + } | ||
| 29 | } | 35 | } | 
| 30 | }, | 36 | }, | 
| 31 | 37 |