Commit 73c8498c587886e604453169ad2fe71e3c718b16

Authored by yvan.ni
1 parent 343702e5

商品列表的bug的优化

components/goods_list/goods_list.js
@@ -37,7 +37,7 @@ Component({ @@ -37,7 +37,7 @@ Component({
37 getApp().request.get("/api/weshop/users/get/" + os.stoid + "/" + getApp().globalData.user_id, { 37 getApp().request.get("/api/weshop/users/get/" + os.stoid + "/" + getApp().globalData.user_id, {
38 isShowLoading:false, 38 isShowLoading:false,
39 success: function (e) { 39 success: function (e) {
40 - if(e.code==0 && e.data && e.data.data){ 40 + if(e.data.code==0 && e.data && e.data.data){
41 getApp().globalData.userInfo = e.data.data; 41 getApp().globalData.userInfo = e.data.data;
42 getApp().getConfig2(function (e) { 42 getApp().getConfig2(function (e) {
43 var swithc_list = e.switch_list; 43 var swithc_list = e.switch_list;