Sfoglia il codice sorgente

Signed-off-by: 1004749546@qq.com <1004749546@qq.com>
bug修改

1004749546@qq.com 4 anni fa
parent
commit
afa972b18e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      pages/coupon/getCoupon/getCoupon.vue

+ 1 - 1
pages/coupon/getCoupon/getCoupon.vue

@@ -71,7 +71,7 @@
 				this.status = 'loading'
 				this.status = 'loading'
 				couponData({couponCode:code}).then(res=>{
 				couponData({couponCode:code}).then(res=>{
 					this.status = 'onmore'
 					this.status = 'onmore'
-					if (res.status == 200) {
+					if (res.status == 200 && res.data) {
 						this.couponInfo = res.data
 						this.couponInfo = res.data
 						this.isDisabled = false
 						this.isDisabled = false
 					} else {
 					} else {