diff --git a/pages/activity/newsshop.vue b/pages/activity/newsshop.vue index 91119ad..0d88061 100644 --- a/pages/activity/newsshop.vue +++ b/pages/activity/newsshop.vue @@ -1,5 +1,5 @@ @@ -89,15 +89,13 @@ } Api.detail(pamars) .then(result => { - if (result.data.length>0) { - result.data.col.forEach(item => { - item.sliceIndex = 6; - item.goods_price_min = Number(item.goods_price_min); + result.data.col.forEach(item => { + item.sliceIndex = 6; + item.goods_list.forEach(item1 => { + item1.goods_price_min = Number(item1.goods_price_min); }); - this.shopList = result.data.col.length > 0 ? result.data.col : []; - }else{ - this.shopList=[] - } + }); + this.shopList = result.data.col.length > 0 ? result.data.col : []; }) .finally() },