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.
45 lines
737 B
JavaScript
45 lines
737 B
JavaScript
const util = require('../../../utils/util.js');
|
|
Page({
|
|
|
|
|
|
data: {
|
|
shopName:'深圳巨为科技开发有限公司'
|
|
},
|
|
|
|
|
|
onLoad: function (options) {
|
|
this.setData({
|
|
msg:options.msg
|
|
})
|
|
if (options.msg){
|
|
var data = JSON.parse(options.msg);
|
|
|
|
if (data.shopName) {
|
|
this.setData({
|
|
shopName: data.shopName
|
|
})
|
|
}
|
|
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
|
|
})
|
|
}
|
|
}
|
|
|
|
},
|
|
|
|
|
|
onReady: function () {
|
|
|
|
},
|
|
|
|
onShow: function () {
|
|
|
|
}
|
|
}) |