@@ -4,7 +4,7 @@ | |||||
"ext": { | "ext": { | ||||
"weappId": "wxea71200db93d756b", | "weappId": "wxea71200db93d756b", | ||||
"name": "富茂客官开发", | "name": "富茂客官开发", | ||||
"appVersion": "C.4.2.107", | |||||
"appVersion": "C.4.2.108", | |||||
"attr": { | "attr": { | ||||
"configUrl": "https://ciformall.youlane.cn/C/api", | "configUrl": "https://ciformall.youlane.cn/C/api", | ||||
"socketUrl": "wss://mp.youlane.cn/W/ws", | "socketUrl": "wss://mp.youlane.cn/W/ws", | ||||
@@ -47,6 +47,7 @@ Page({ | |||||
pageSize: 20, | pageSize: 20, | ||||
} | } | ||||
}).then(res => { | }).then(res => { | ||||
wx.stopPullDownRefresh(); | |||||
res.data.list.map(file => { | res.data.list.map(file => { | ||||
file.createDate = util.formatTime( | file.createDate = util.formatTime( | ||||
file.createDate, | file.createDate, | ||||
@@ -73,6 +74,18 @@ Page({ | |||||
}) | }) | ||||
} | } | ||||
}, | }, | ||||
/** | |||||
* 刷新 | |||||
*/ | |||||
onPullDownRefresh: function (e) { | |||||
let that = this; | |||||
that.setData({ | |||||
pageNum: 1, | |||||
list: [], | |||||
allow_load: true | |||||
}); | |||||
that.record(1); | |||||
}, | |||||
getScore: function() { | getScore: function() { | ||||
let that = this; | let that = this; | ||||
Http.get({ | Http.get({ | ||||
@@ -1,3 +1,4 @@ | |||||
{ | { | ||||
"navigationBarTitleText": "成长值" | |||||
"navigationBarTitleText": "成长值", | |||||
"enablePullDownRefresh": true | |||||
} | } |
@@ -89,7 +89,8 @@ Page({ | |||||
let that = this; | let that = this; | ||||
that.setData({ | that.setData({ | ||||
pageNum: 1, | pageNum: 1, | ||||
list:[] | |||||
list:[], | |||||
allow_load:true | |||||
}); | }); | ||||
that.record(1); | that.record(1); | ||||
}, | }, | ||||