소스 검색

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

1004749546@qq.com 4 년 전
부모
커밋
653e40e491
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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