You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
948 B
JavaScript

9 months ago
const util = require('../../utils/util.js');
Page({
data: {
},
onLoad: function(options) {
if (options.msg) {
this.setData({
msg: options.msg
})
var data = JSON.parse(options.msg);
if (data.shopName) {
this.setData({
shopName: data.shopName
})
}
if (data.realAmount) {
this.setData({
realAmount: data.realAmount
})
}
if (data.shopNo) {
this.setData({
shopNo: data.shopNo
})
}
if (data.createDate) {
this.setData({
createDate: data.createDate
})
} else {
console.error(data)
var createDate = util.formatTimeV(new Date(), "yyyy-MM-dd");
this.setData({
createDate: createDate
})
}
}
},
onShow: function() {
},
gotoIndex: function() {
wx.reLaunch({
url: '/pages/tabbar/index',
})
}
})