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
653e40e491
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      pages/coupon/getCoupon/getCoupon.vue

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

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