邃芒智像相册
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

20 行
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. })