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.
33 lines
680 B
33 lines
680 B
// pages/agent/result/index.js
|
|
const util = require('../../../utils/util')
|
|
|
|
Page({
|
|
/**
|
|
* 页面的初始数据
|
|
*/
|
|
data: {
|
|
daytimes: '',
|
|
buttons: [{
|
|
type: 'positive',
|
|
block: true,
|
|
text: '查看订单',
|
|
},
|
|
{
|
|
type: 'light',
|
|
block: true,
|
|
text: '返回首页',
|
|
}]
|
|
},
|
|
onLoad: function (options) {
|
|
var day = new Date()
|
|
day.setMinutes(day.getMinutes() + 30)
|
|
this.setData({ daytimes: util.formatDate(day, 'h:m') })
|
|
},
|
|
onClick(event) {
|
|
if(event.detail.index === 0){
|
|
wx.redirectTo({ url: '/pages/agent/order/index' })
|
|
} else if(event.detail.index === 1){
|
|
wx.navigateBack()
|
|
}
|
|
}
|
|
})
|