下拉刷新bug
This commit is contained in:
parent
fc78b157a9
commit
85fbbd0990
|
|
@ -341,6 +341,20 @@ export default {
|
||||||
this.fetchBrandList();
|
this.fetchBrandList();
|
||||||
this.fetchSkillList();
|
this.fetchSkillList();
|
||||||
},
|
},
|
||||||
|
onPullDownRefresh() {
|
||||||
|
// 1. 重新请求首页需要的所有数据
|
||||||
|
if (this.isLogin) {
|
||||||
|
this.getUserInfo();
|
||||||
|
}
|
||||||
|
this.fetchNoticeList();
|
||||||
|
this.fetchBrandList();
|
||||||
|
this.fetchSkillList();
|
||||||
|
|
||||||
|
// 2. 停止下拉刷新的动画
|
||||||
|
setTimeout(() => {
|
||||||
|
uni.stopPullDownRefresh();
|
||||||
|
}, 500);
|
||||||
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
uni.hideTabBar();
|
uni.hideTabBar();
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue