文件 pages.json
javascript
"globalStyle": {
"...",
"mp-alipay": {
"allowsBounceVertical": "YES"
}
}
javascript
{
"path": "rechargeRecord/rechargeRecord",
"style": {
"navigationBarTitleText": "充值记录",
"mp-alipay": {
"transparentTitle": "none",
"pullRefresh": true
}
}
}
- 页面正常监听即可
xxx.vue
javascript
onPullDownRefresh() {
console.log('refresh');
setTimeout(function () {
uni.stopPullDownRefresh();
}, 1000)
}