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