Commit cdddaf7a25f96636508c183d8912f98b9b98a4a7
1 parent
56f6f7e6
分享的bug优化
Showing
1 changed file
with
1 additions
and
1 deletions
pages/goods/goodsInfo/goodsInfo.js
... | ... | @@ -3497,7 +3497,7 @@ Page({ |
3497 | 3497 | if (!user_id) user_id = 0; |
3498 | 3498 | if (goodsinfo.prom_type == 1) { |
3499 | 3499 | await getApp().request.promiseGet("/api/ms/flash_sale/getNew/" + os.stoid + "/" + user_id + "/" + goodsinfo.prom_id, {}).then(res => { |
3500 | - if (res.data.code == 0) { | |
3500 | + if (res.data.code == 0 && res.data.data) { | |
3501 | 3501 | prom = res.data.data; |
3502 | 3502 | prom.price = prom.user_price; |
3503 | 3503 | this.setData({ | ... | ... |