zs 2 年之前
父節點
當前提交
97065a68e2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pagesHome/exchange/index.vue

+ 1 - 1
pagesHome/exchange/index.vue

@@ -135,7 +135,7 @@
 						if (res.confirm) {
 							const arr = await that.$api(`/userCoupon/getCoupon/${e._id}`, 'POST');
 							if (arr.errcode == '0') {
-								if (arr.data.result == false) {
+								if (arr.data) {
 									uni.showToast({
 										title: arr.data.msg,
 										icon: 'none'