commit | 7f2665f335cc8830f18adc6f870184c5eb407341 | [log] [tgz] |
---|---|---|
author | binquan.qiu <binquan.qiu@supwisdom.com> | 周五 3月 27 17:19:57 2020 +0800 |
committer | binquan.qiu <binquan.qiu@supwisdom.com> | 周五 3月 27 17:19:57 2020 +0800 |
tree | 7ef0cf5fea050357ba7f4bcac802edfdfa70ad49 | |
parent | 045abf7179ac43d919f718e7660b6011416b3544 [diff] [blame] |
大理市民卡小程序1.0提交
diff --git a/pages/logs/logs.js b/pages/logs/logs.js new file mode 100644 index 0000000..b2b967d --- /dev/null +++ b/pages/logs/logs.js
@@ -0,0 +1,15 @@ +//logs.js +const util = require('../../utils/util.js') + +Page({ + data: { + logs: [] + }, + onLoad: function () { + this.setData({ + logs: (wx.getStorageSync('logs') || []).map(log => { + return util.formatTime(new Date(log)) + }) + }) + } +})