|
@@ -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)
|
|
|
}
|
|
|
},
|