zs %!s(int64=2) %!d(string=hai) anos
pai
achega
53be812ab7
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  1. 5 5
      pagesHome/exchange/index.vue

+ 5 - 5
pagesHome/exchange/index.vue

@@ -29,7 +29,7 @@
 				list: [],
 				total: 0,
 				skip: 0,
-				limit: 6,
+				limit: 10,
 				page: 0,
 				// 数据是否触底
 				is_bottom: false,
@@ -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)
 			}
 		},