|
@@ -189,7 +189,13 @@ export default {
|
|
|
pageNo: page.num
|
|
pageNo: page.num
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
if (res.data.success) {
|
|
if (res.data.success) {
|
|
|
- this.dataList.couponList0 = this.dataList.couponList0.concat(res.data.result.records)
|
|
|
|
|
|
|
+ if( res.data.result.records==null && page.num==1){
|
|
|
|
|
+ this.dataList.couponList0=[]
|
|
|
|
|
+ }
|
|
|
|
|
+ else{
|
|
|
|
|
+ this.dataList.couponList0 =res.data.result.pages? this.dataList.couponList0.concat(res.data.result.records) : this.dataList.couponList0
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
this.mescroll.endSuccess(res.data.result.records.length, res.data.result.total);
|
|
this.mescroll.endSuccess(res.data.result.records.length, res.data.result.total);
|
|
|
uni.showTabBar()
|
|
uni.showTabBar()
|
|
|
}
|
|
}
|
|
@@ -207,7 +213,7 @@ export default {
|
|
|
pageNo: page.num
|
|
pageNo: page.num
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
if (res.data.success) {
|
|
if (res.data.success) {
|
|
|
- this.dataList['couponList' + this.currentTab] = res.data.result.records
|
|
|
|
|
|
|
+ this.dataList['couponList' + this.currentTab] =res.data.result.pages? this.dataList['couponList' + this.currentTab].concat(res.data.result.records) : this.dataList['couponList' + this.currentTab]
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
|
this.$tip.error(res.data.message);
|
|
this.$tip.error(res.data.message);
|
|
@@ -239,9 +245,11 @@ export default {
|
|
|
size: 10
|
|
size: 10
|
|
|
}
|
|
}
|
|
|
if (this.currentTab == 0) {
|
|
if (this.currentTab == 0) {
|
|
|
|
|
+ this.dataList.couponList0 = []
|
|
|
this.getList(page)
|
|
this.getList(page)
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
|
|
|
+ this.dataList['couponList' + this.currentTab] =[]
|
|
|
this.getList1(page)
|
|
this.getList1(page)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|