@@ -70,6 +70,13 @@ Page({
*/
onUnload() {
+ },
+ onPullDownRefresh() {
+ app.fetchUserData()
+ const timer = setTimeout(() => {
+ clearTimeout(timer)
+ wx.stopPullDownRefresh()
+ }, 1000)
},
async init() {
// 更新用户信息
@@ -2,5 +2,8 @@
"usingComponents": {
"van-uploader": "@vant/weapp/uploader/index",
"van-popup": "@vant/weapp/popup/index"
- }
+ "backgroundColor": "#F6F6F6",
+ "backgroundTextStyle": "dark",
+ "enablePullDownRefresh": true
}