邃芒智像相册
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 lines
352 B

  1. // logs.ts
  2. // const util = require('../../utils/util.js')
  3. import { formatTime } from '../../utils/util'
  4. Page({
  5. data: {
  6. logs: [],
  7. },
  8. onLoad() {
  9. this.setData({
  10. logs: (wx.getStorageSync('logs') || []).map(log => {
  11. return {
  12. date: formatTime(new Date(log)),
  13. timeStamp: log
  14. }
  15. }),
  16. })
  17. },
  18. })