Browse Source

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

1004749546@qq.com 4 years ago
parent
commit
653e40e491
1 changed files with 2 additions and 2 deletions
  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