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.
49 lines
824 B
JavaScript
49 lines
824 B
JavaScript
9 months ago
|
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
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
|
||
|
},
|
||
|
|
||
|
gotoIndex: function () {
|
||
|
wx.reLaunch({
|
||
|
url: '/pages/tabbar/index',
|
||
|
})
|
||
|
},
|
||
|
onReady: function () {
|
||
|
|
||
|
},
|
||
|
|
||
|
onShow: function () {
|
||
|
|
||
|
}
|
||
|
})
|