mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 12:18:42 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			305 B
		
	
	
	
		
			JavaScript
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			305 B
		
	
	
	
		
			JavaScript
		
	
	
		
			Executable File
		
	
	
	
	
// 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
 | 
						|
        }
 | 
						|
      })
 | 
						|
    })
 | 
						|
  }
 | 
						|
})
 |