From e177f232997e81b700a3127a948f436d7feb046f Mon Sep 17 00:00:00 2001 From: yangjie <812952667@qq.com> Date: Wed, 9 Jun 2021 09:51:02 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BC=98=E5=8C=96=E9=A6=96=E9=A1=B5=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/tabBar/home/home.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pages/tabBar/home/home.vue b/pages/tabBar/home/home.vue index 1c380d8..e3d3322 100644 --- a/pages/tabBar/home/home.vue +++ b/pages/tabBar/home/home.vue @@ -56,7 +56,7 @@ - ¥{{pro.couponName}} + {{pro.couponName}} ¥{{pro.discountPrice}} @@ -86,7 +86,7 @@ - ¥{{pro.couponName}} + {{pro.couponName}} ¥{{pro.discountPrice}} @@ -419,6 +419,10 @@ getCouponList(params).then(res => { if (res.return_code == '000000') { this.productList = res.return_data.list; + if (res.return_data.total > 4) { + this.productListleg = 4; + return; + } this.productListleg = res.return_data.total; } }) @@ -435,6 +439,11 @@ if (res.return_code == '000000') { this.goldproductList = res.return_data.list; this.goldproductListleg = res.return_data.total; + if (res.return_data.total > 4) { + this.goldproductListleg = 4; + return; + } + this.goldproductListleg = res.return_data.total; } }) },