zs 2 rokov pred
rodič
commit
f1b79e2211
2 zmenil súbory, kde vykonal 14 pridanie a 3 odobranie
  1. 7 1
      pagesHome/exchange/index.vue
  2. 7 2
      pagesMy/discount/index.vue

+ 7 - 1
pagesHome/exchange/index.vue

@@ -79,7 +79,13 @@
 			async search() {
 				const that = this;
 				let user = that.user;
-				const res = await that.$api(`/coupon`, 'GET');
+				let info = {
+					skip: that.skip,
+					limit: that.limit,
+				}
+				const res = await that.$api(`/coupon`, 'GET', {
+					...info
+				})
 				if (res.errcode == '0') {
 					let list = [...that.list, ...res.data];
 					that.$set(that, `list`, list)

+ 7 - 2
pagesMy/discount/index.vue

@@ -58,9 +58,14 @@
 			async search() {
 				const that = this;
 				let user = that.user;
-				const res = await that.$api(`/userCoupon`, 'GET', {
+				let info = {
+					skip: that.skip,
+					limit: that.limit,
 					customer: user._id
-				});
+				}
+				const res = await that.$api(`/userCoupon`, 'GET', {
+					...info
+				})
 				if (res.errcode == '0') {
 					let list = [...that.list, ...res.data];
 					that.$set(that, `list`, list)