纸通宝SAAS仓库
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.
 

29 lines
612 B

// pages/message/detail/index.js
import Scene from '../../index/scene'
const util = require('../../../utils/util')
Scene({
/**
* 页面的初始数据
*/
data: {
daytimes: ''
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
var day = new Date()
day.setMinutes(day.getMinutes() + 30)
console.log(day)
this.setData({ daytimes: util.formatDate(day, 'h:m') })
},
onClick: function(e){
if(e.currentTarget.id == 'order'){
wx.redirectTo({ url: '/pages/agent/order-list/index' })
} else {
wx.navigateBack()
}
}
})