Commit 38b6bdf1e48ee423256c258ff47af925555e5852
1 parent
5fbdaea9
计算购物车的数量
Showing
1 changed file
with
5 additions
and
2 deletions
pages/goods/categoryList/categoryList.js
... | ... | @@ -177,8 +177,11 @@ Page({ |
177 | 177 | //调用底部导航 |
178 | 178 | t.editTabBar(that,getApp().globalData.setting.stoid,getApp().globalData.url); |
179 | 179 | //this.requestFirstCategoris(); |
180 | - if(getApp().globalData.user_id) getApp().requestCardNum(); | |
181 | - getApp().getConfig2(function (e) { | |
180 | + setTimeout(function () { | |
181 | + if (getApp().globalData.user_id) getApp().requestCardNum(that); | |
182 | + },500) | |
183 | + | |
184 | + getApp().getConfig2(function (e) { | |
182 | 185 | |
183 | 186 | var data=e; |
184 | 187 | var switch_list_data = data.switch_list; | ... | ... |