增加微信小程序的登陆的测试代码

This commit is contained in:
YunaiV
2021-10-30 10:09:31 +08:00
parent 038c0b87b9
commit 8dbd6143bf
26 changed files with 381 additions and 20 deletions

View File

@ -0,0 +1,18 @@
// logs.js
const util = require('../../utils/util.js')
Page({
data: {
logs: []
},
onLoad() {
this.setData({
logs: (wx.getStorageSync('logs') || []).map(log => {
return {
date: util.formatTime(new Date(log)),
timeStamp: log
}
})
})
}
})