|
@@ -123,12 +123,17 @@ export default {
|
|
|
url: `./detail?id=${project.id}`,
|
|
|
});
|
|
|
},
|
|
|
- checkSelf() {
|
|
|
+ async checkSelf() {
|
|
|
this.projectFilter = {
|
|
|
...this.projectFilter,
|
|
|
filter_type: this.checkself.length,
|
|
|
};
|
|
|
- this.initData();
|
|
|
+ this.pagination.currentPage = 1;
|
|
|
+ await this.initData();
|
|
|
+ uni.pageScrollTo({
|
|
|
+ scrollTop: 0,
|
|
|
+ duration: 0,
|
|
|
+ });
|
|
|
},
|
|
|
onClickAdd() {
|
|
|
uni.navigateTo({
|
|
@@ -145,6 +150,10 @@ export default {
|
|
|
this.pagination.currentPage = 1;
|
|
|
await this.initData();
|
|
|
this.$refs.searchDrawer.closeDrawer();
|
|
|
+ uni.pageScrollTo({
|
|
|
+ scrollTop: 0,
|
|
|
+ duration: 0,
|
|
|
+ });
|
|
|
},
|
|
|
},
|
|
|
};
|