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 }) },