Browse Source

Merge branch 'master' of http://git.cc-lotus.info/pointToNetwork/point-app

guhongwei 2 years ago
parent
commit
3e749baf7f
1 changed files with 4 additions and 4 deletions
  1. 4 4
      pagesHome/exchange/index.vue

+ 4 - 4
pagesHome/exchange/index.vue

@@ -135,9 +135,9 @@
 						if (res.confirm) {
 							const arr = await that.$api(`/userCoupon/getCoupon/${e._id}`, 'POST');
 							if (arr.errcode == '0') {
-								if (arr.data) {
+								if (arr.data.result == false) {
 									uni.showToast({
-										title: arr.errmsg,
+										title: arr.data.msg,
 										icon: 'none'
 									});
 								} else {
@@ -150,7 +150,7 @@
 								}
 							} else {
 								uni.showToast({
-									title: arr.errmsg,
+									title: arr.data.msg,
 									icon: 'none',
 								});
 							}
@@ -163,7 +163,7 @@
 				const that = this;
 				that.$set(that, `list`, [])
 				that.$set(that, `skip`, 0)
-				that.$set(that, `limit`, 6)
+				that.$set(that, `limit`, 10)
 				that.$set(that, `page`, 0)
 			}
 		},