|
@@ -77,7 +77,10 @@
|
|
|
merchantId: uni.getStorageSync('merchantId'),
|
|
|
merchantType: uni.getStorageSync('merchantType'),
|
|
|
pageDataList:[],
|
|
|
- merchantOrderDTOSList:[],
|
|
|
+ merchantOrderDTOSList:[],
|
|
|
+ page:1,
|
|
|
+ limit:10,
|
|
|
+ isOver:false,
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
@@ -86,6 +89,14 @@
|
|
|
} else {
|
|
|
this.getList2()
|
|
|
}
|
|
|
+ },
|
|
|
+ onReachBottom() {
|
|
|
+ if (this.isOver) return;
|
|
|
+ if (this.merchantType == 10) {
|
|
|
+ this.getList()
|
|
|
+ } else {
|
|
|
+ this.getList2()
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
confirmDate(e) {
|
|
@@ -112,12 +123,16 @@
|
|
|
startDate: this.date,
|
|
|
endDate: '',
|
|
|
dateType: '1',
|
|
|
- merchantId: uni.getStorageSync('merchantId')
|
|
|
+ merchantId: uni.getStorageSync('merchantId'),
|
|
|
+ page:this.page,
|
|
|
+ limit:this.limit
|
|
|
}).then(res => {
|
|
|
- console.log(res.data)
|
|
|
if (res.data.code === 0) {
|
|
|
this.info = res.data.data;
|
|
|
- this.pageDataList = this.info.pageData.list;
|
|
|
+ this.page++;
|
|
|
+ let { list, total } = res.data.data.pageData;
|
|
|
+ if (this.pageDataList.length + list.length > total || list.length == 0) return this.isOver = true;
|
|
|
+ this.pageDataList = [...this.pageDataList, ...list];
|
|
|
this.merchantOrderDTOSList = this.info.merchantOrderDTOS;
|
|
|
} else {
|
|
|
this.info = {
|