Commit 0c69980feb12687563804f3b2066ff3092a1b26b
1 parent
a320fc4d
加入购物车问题,提示的优化
Showing
1 changed file
with
1 additions
and
1 deletions
pages/goods/goodsInfo/goodsInfo.js
@@ -5871,7 +5871,7 @@ Page({ | @@ -5871,7 +5871,7 @@ Page({ | ||
5871 | }; | 5871 | }; |
5872 | //获取秒杀的多规格 | 5872 | //获取秒杀的多规格 |
5873 | getApp().request.promiseGet(url, {data:req_data}).then(res=>{ | 5873 | getApp().request.promiseGet(url, {data:req_data}).then(res=>{ |
5874 | - if(res.data.code==0 && res.data.data){ | 5874 | + if(res.data.code==0 && res.data.data && res.data.data.length){ |
5875 | th.setData({more_flash:res.data.data}); | 5875 | th.setData({more_flash:res.data.data}); |
5876 | }else{ | 5876 | }else{ |
5877 | func(false); | 5877 | func(false); |