完成了小程序项目列表页,项目明细抽佣表,下级用户项目明细抽佣表的下拉刷新

This commit is contained in:
2025-06-15 21:06:58 +08:00
parent dc3837dbff
commit 0739bdcbb8
8 changed files with 79 additions and 101 deletions

View File

@ -64,4 +64,31 @@ Page({
url: `/pages/projectModule/projectDetail/projectDetail?id=${projectId}&isPromo=0`
});
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
this.onRefresh();
},
onRefresh:function(){
//导航条加载动画
wx.showNavigationBarLoading()
//loading 提示框
wx.showLoading({
title: '加载中...',
})
console.log("下拉刷新啦");
this.onLoad()
setTimeout(function () {
wx.hideLoading();
wx.hideNavigationBarLoading();
//停止下拉刷新
wx.stopPullDownRefresh();
}, 1000)
},
});

View File

@ -1,4 +1,5 @@
{
"navigationBarTitleText": "接单列表",
"usingComponents": {}
"usingComponents": {},
"enablePullDownRefresh": true
}