浏览代码

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

1004749546@qq.com 4 年之前
父节点
当前提交
afa972b18e
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 {