diff --git a/pages/activity/newPeople.vue b/pages/activity/newPeople.vue index b4721e8..1bf9668 100644 --- a/pages/activity/newPeople.vue +++ b/pages/activity/newPeople.vue @@ -1,411 +1,408 @@ - - - - - diff --git a/pages/cart/index.vue b/pages/cart/index.vue index 7127927..65a58df 100644 --- a/pages/cart/index.vue +++ b/pages/cart/index.vue @@ -40,11 +40,13 @@ - {{ item.goods.skuInfo.goods_price?Number(item.goods.skuInfo.goods_price):item.goods.skuInfo.goods_price }} + {{ item.goods.skuInfo.goods_price?Number(item.goods.skuInfo.goods_price):item.goods.skuInfo.goods_price }} - - + + @@ -62,33 +64,61 @@ - 为您推荐 + 为您推荐 + - - - - - - - {{item.selling_point}} - {{item.goods_name}} - - - 包邮 + + + + + @@ -145,7 +175,7 @@ }, data() { return { - goodsRecommend:[], + goodsRecommend: [], inArray, // 正在加载 isLoading: true, @@ -198,8 +228,8 @@ // 获取推荐商品 Api.recommended().then(res => { let arr = res.data.goodsList - if(arr && arr.length > 0){ - arr.map(a=>{ + if (arr && arr.length > 0) { + arr.map(a => { a.goods_price_min = Number(a.goods_price_min) a.goods_price_max = Number(a.goods_price_max) a.line_price_min = Number(a.line_price_min) @@ -208,7 +238,7 @@ } this.goodsRecommend = arr }) - + }, // 计算合计金额 (根据选中的商品) onCalcTotalPrice() { @@ -372,10 +402,14 @@ } - +