From e68e5e32f476ff7f40aa0ce63f0e55d34cb1796e Mon Sep 17 00:00:00 2001 From: shuxiaoquan <853623962@qq.com> Date: Tue, 19 Mar 2024 14:28:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E6=8E=A8=E8=8D=90=E5=95=86?= =?UTF-8?q?=E5=93=81=E4=BB=B7=E6=A0=BC=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/user/index.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pages/user/index.vue b/pages/user/index.vue index c261c59..a50b7a7 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -682,7 +682,16 @@ const that = this Api.recommended() .then(res => { - that.suggestGoodsList = res.data.goodsList + let arr = res.data.goodsList + 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) + a.line_price_max = Number(a.line_price_max) + }) + } + that.suggestGoodsList = arr }) }, // 刷新页面