|
@@ -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
|