完成了小程序项目列表页,项目明细抽佣表,下级用户项目明细抽佣表的下拉刷新
This commit is contained in:
@ -99,52 +99,25 @@ Page({
|
||||
this.getSubCommissionList()
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
this.onRefresh();
|
||||
},
|
||||
onRefresh:function(){
|
||||
//导航条加载动画
|
||||
wx.showNavigationBarLoading()
|
||||
//loading 提示框
|
||||
wx.showLoading({
|
||||
title: '加载中...',
|
||||
})
|
||||
this.getSubCommissionList()
|
||||
setTimeout(function () {
|
||||
wx.hideLoading();
|
||||
wx.hideNavigationBarLoading();
|
||||
//停止下拉刷新
|
||||
wx.stopPullDownRefresh();
|
||||
}, 1000)
|
||||
},
|
||||
})
|
@ -1,5 +1,6 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"commissionRatePop": "/pages/personCenter/component/commissionRatePop/commissionRatePop"
|
||||
}
|
||||
},
|
||||
"enablePullDownRefresh": true
|
||||
}
|
Reference in New Issue
Block a user