Explorar o código

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

1004749546@qq.com %!s(int64=4) %!d(string=hai) anos
pai
achega
afa972b18e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pages/coupon/getCoupon/getCoupon.vue

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

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