小程序源码

This commit is contained in:
mindskip
2020-09-02 08:44:41 +08:00
parent 30b54a23ff
commit 593017f562
277 changed files with 5497 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
const app = getApp()
Page({
data: {
logList: null,
len: 0
},
onLoad: function(options) {
this.search();
},
search: function() {
let _this = this
_this.setData({
spinShow: true
});
app.formPost('/api/wx/student/user/log', null).then(res => {
_this.setData({
spinShow: false
});
if (res.code === 1) {
_this.setData({
logList: res.response,
len: res.response.length
});
}
}).catch(e => {
_this.setData({
spinShow: false
});
app.message(e, 'error')
})
}
})