Commit cfb25d4588e1b0226cef95d9df2ba65b631f2246
1 parent
97b612b0
脚本错误修复
Showing
1 changed file
with
10 additions
and
0 deletions
components/goods_list/goods_list.js
... | ... | @@ -151,6 +151,16 @@ Component({ |
151 | 151 | var th = this; |
152 | 152 | getApp().request.promiseGet("/api/weshop/plus/vip/mem/bership/list?" + "storeId=" + storid, |
153 | 153 | {}).then(res => { |
154 | + | |
155 | + if(res.data.code!=0 || !res.data.data){ | |
156 | + var ob = { | |
157 | + "card_list": [], | |
158 | + "name_map": "" | |
159 | + }; | |
160 | + func(ob); | |
161 | + return false; | |
162 | + } | |
163 | + | |
154 | 164 | var plusCard = res.data.data; |
155 | 165 | var arr = [1219, 2089, 3031]; |
156 | 166 | var new_arr = new Array(); | ... | ... |