zs 2 years ago
parent
commit
f6b1d5c99f
1 changed files with 4 additions and 2 deletions
  1. 4 2
      pages/my/index.vue

+ 4 - 2
pages/my/index.vue

@@ -132,12 +132,14 @@
 							if (val.status == '0') {
 								res = await that.$api(`/order`, 'GET', {
 									status: val.status,
-									customer: user._id
+									customer: user._id,
+									limit: 1
 								});
 							} else {
 								res = await that.$api(`/orderDetail`, 'GET', {
 									status: val.status,
-									customer: user._id
+									customer: user._id,
+									limit: 1
 								});
 							}
 							if (res.errcode == '0') {