账单下拉刷新

This commit is contained in:
lxy 2024-07-01 18:24:22 +08:00
parent 21b4f86593
commit 2a14378adc
1 changed files with 14 additions and 1 deletions

View File

@ -23,6 +23,7 @@ export default OakComponent({
chooseType: false,
pickerStart: dayjs().subtract(10, 'y').startOf('m').format('YYYY-MM-DD'),
pickerEnd: dayjs().startOf('m').format('YYYY-MM-DD'),
refreshing: false,
},
filters: [
{
@ -169,6 +170,18 @@ export default OakComponent({
type: key,
}, () => this.setTypeFilter())
this.closeChooseTypeMp();
}
},
bindrefresherrefresh() {
this.setState({
refreshing: true
})
this.refresh();
setTimeout(() => {
this.setState({
refreshing: false
})
}, 1000);
},
}
})