From 5c6d532d6dea271d4752828f5d2d63465c66d767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Mon, 20 Mar 2023 15:43:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/coupon/coupon.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pages/coupon/coupon.vue b/pages/coupon/coupon.vue index c2a59bd..af33b47 100644 --- a/pages/coupon/coupon.vue +++ b/pages/coupon/coupon.vue @@ -31,7 +31,7 @@ 已过期 - + @@ -67,7 +67,7 @@ - + @@ -83,7 +83,7 @@ return { pageNum: 1, pageSize: 10, - couponlist: [], + couponlist: null, total: 0, couponstatus: '', //状态 patientId: null, @@ -107,7 +107,9 @@ methods: { getlist() { selectCoupon(this.pageNum, this.pageSize, this.patientId, this.couponstatus).then(res => { - this.couponlist = res.rows + if (res.rows.length > 0) { + this.couponlist = res.rows + } this.total = res.total }) },