|
@@ -74,8 +74,8 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
</block>
|
|
- <u-loadmore style="margin-top: 5px;" v-if="directLsit.length!=0" :status="status" />
|
|
|
|
- <o-empty v-if="directLsit.length==0" />
|
|
|
|
|
|
+ <u-loadmore style="margin-top: 5px;" v-if="withdrawalData.length!=0" :status="status" />
|
|
|
|
+ <o-empty v-if="withdrawalData.length==0" />
|
|
</view>
|
|
</view>
|
|
<my-date-picker ref="datePicker" @confirmPickDate="confirmPickDate" />
|
|
<my-date-picker ref="datePicker" @confirmPickDate="confirmPickDate" />
|
|
</view>
|
|
</view>
|
|
@@ -103,7 +103,6 @@
|
|
boxShadow: ''
|
|
boxShadow: ''
|
|
// 其他样式属性...
|
|
// 其他样式属性...
|
|
},
|
|
},
|
|
- directLsit: {},
|
|
|
|
source: 0,
|
|
source: 0,
|
|
totalPages: 0,
|
|
totalPages: 0,
|
|
totalSize: 0,
|
|
totalSize: 0,
|
|
@@ -113,8 +112,6 @@
|
|
pageSize: 20,
|
|
pageSize: 20,
|
|
},
|
|
},
|
|
withdrawalData: [],
|
|
withdrawalData: [],
|
|
-
|
|
|
|
-
|
|
|
|
industryData: '全部行业',
|
|
industryData: '全部行业',
|
|
industryShow: false,
|
|
industryShow: false,
|
|
industrySector: '0',
|
|
industrySector: '0',
|
|
@@ -128,6 +125,8 @@
|
|
lable: '保险',
|
|
lable: '保险',
|
|
value: '2'
|
|
value: '2'
|
|
}],
|
|
}],
|
|
|
|
+ beginTime:'',
|
|
|
|
+ endTime:''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async onLoad(params) {
|
|
async onLoad(params) {
|
|
@@ -148,7 +147,9 @@
|
|
if (dateStr1) {
|
|
if (dateStr1) {
|
|
dateStr1 += ' 23:59:59'
|
|
dateStr1 += ' 23:59:59'
|
|
}
|
|
}
|
|
- this.queryData(dateStr, dateStr1)
|
|
|
|
|
|
+ this.beginTime=dateStr
|
|
|
|
+ this.endTime=dateStr1
|
|
|
|
+ this.queryData()
|
|
},
|
|
},
|
|
view(item) {
|
|
view(item) {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
@@ -160,42 +161,43 @@
|
|
delta: 1, // 返回的页面数,如果是1表示返回上一页
|
|
delta: 1, // 返回的页面数,如果是1表示返回上一页
|
|
success: function() {}
|
|
success: function() {}
|
|
});
|
|
});
|
|
-
|
|
|
|
},
|
|
},
|
|
onReachBottom() {
|
|
onReachBottom() {
|
|
if (this.pageRequest.pageNum >= this.totalPages) return;
|
|
if (this.pageRequest.pageNum >= this.totalPages) return;
|
|
this.status = 'loading';
|
|
this.status = 'loading';
|
|
this.pageRequest.pageNum = ++this.pageRequest.pageNum;
|
|
this.pageRequest.pageNum = ++this.pageRequest.pageNum;
|
|
setTimeout(async () => {
|
|
setTimeout(async () => {
|
|
- let res = await this.$http.post('/APPPartner/getCommissionInfos', {
|
|
|
|
- beginTime: '2024-10-08 16:21:11',
|
|
|
|
- endTime: '2024-10-11 16:21:11',
|
|
|
|
- // industrySector: '1',
|
|
|
|
- industrySector: this.industrySector
|
|
|
|
|
|
+ let res = await this.$http.post('/APPPartner/getCommissionInfo', {
|
|
|
|
+ beginTime:this.beginTime,
|
|
|
|
+ endTime:this.endTime,
|
|
|
|
+ industrySector: this.industrySector,
|
|
|
|
+ ...this.pageRequest
|
|
});
|
|
});
|
|
if (res.code == '200') {
|
|
if (res.code == '200') {
|
|
- // this.totalSize = res.data.totalSize;
|
|
|
|
- this.directLsit = [...this.withdrawalData, ...res.data.content];
|
|
|
|
|
|
+ this.totalPages = res.data.totalPages;
|
|
|
|
+ this.totalSize = res.data.totalSize;
|
|
|
|
+ this.withdrawalData = [...this.withdrawalData, ...res.data.content];
|
|
}
|
|
}
|
|
- // if (this.pageRequest.pageNum >= this.totalPages) this.status = 'nomore';
|
|
|
|
|
|
+ if (this.pageRequest.pageNum >= this.totalPages) this.status = 'nomore';
|
|
else this.status = 'loading';
|
|
else this.status = 'loading';
|
|
}, 1000)
|
|
}, 1000)
|
|
},
|
|
},
|
|
- async queryData(beginTime = '', endTime = '') {
|
|
|
|
|
|
+ async queryData() {
|
|
let params = {
|
|
let params = {
|
|
- beginTime,
|
|
|
|
- endTime,
|
|
|
|
|
|
+ beginTime:this.beginTime,
|
|
|
|
+ endTime:this.endTime,
|
|
// industrySector: '1',
|
|
// industrySector: '1',
|
|
|
|
+ ...this.pageRequest,
|
|
industrySector: this.industrySector
|
|
industrySector: this.industrySector
|
|
// ...this.pageRequest
|
|
// ...this.pageRequest
|
|
}
|
|
}
|
|
- let res = await this.$http.post('/APPPartner/getCommissionInfos', params);
|
|
|
|
|
|
+ let res = await this.$http.post('/APPPartner/getCommissionInfo', params);
|
|
if (res.code == '200') {
|
|
if (res.code == '200') {
|
|
- this.withdrawalData = res.data
|
|
|
|
- // this.totalPages = res.data.totalPages;
|
|
|
|
- // this.totalSize = res.data.totalSize;
|
|
|
|
- // if (this.pageRequest.pageNum >= res.data.totalPages) this.status = 'nomore';
|
|
|
|
- // else this.status = 'loadmore';
|
|
|
|
|
|
+ this.withdrawalData = res.data.content
|
|
|
|
+ this.totalPages = res.data.totalPages;
|
|
|
|
+ this.totalSize = res.data.totalSize;
|
|
|
|
+ if (this.pageRequest.pageNum >= res.data.totalPages) this.status = 'nomore';
|
|
|
|
+ else this.status = 'loadmore';
|
|
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|