Commit cdddaf7a25f96636508c183d8912f98b9b98a4a7

Authored by yvan.ni
1 parent 56f6f7e6

分享的bug优化

pages/goods/goodsInfo/goodsInfo.js
@@ -3497,7 +3497,7 @@ Page({ @@ -3497,7 +3497,7 @@ Page({
3497 if (!user_id) user_id = 0; 3497 if (!user_id) user_id = 0;
3498 if (goodsinfo.prom_type == 1) { 3498 if (goodsinfo.prom_type == 1) {
3499 await getApp().request.promiseGet("/api/ms/flash_sale/getNew/" + os.stoid + "/" + user_id + "/" + goodsinfo.prom_id, {}).then(res => { 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 prom = res.data.data; 3501 prom = res.data.data;
3502 prom.price = prom.user_price; 3502 prom.price = prom.user_price;
3503 this.setData({ 3503 this.setData({