Commit bdf2cee8 authored by 袁玲利's avatar 袁玲利

dom报错问题修复

parent 80a99f82
...@@ -397,24 +397,27 @@ ...@@ -397,24 +397,27 @@
console.log(this.currentDate, 'currentDate1111111111111', this.shareDate, 'this.homeDataInfo', this console.log(this.currentDate, 'currentDate1111111111111', this.shareDate, 'this.homeDataInfo', this
.homeDataInfo) .homeDataInfo)
}, },
async mounted() { mounted() {
console.log(this.dataRangeArr, 'dataRangeArr') console.log(this.dataRangeArr, 'dataRangeArr')
this.homeDataInfo = JSON.parse(sessionStorage.getItem('HomeDataInfo')) this.homeDataInfo = JSON.parse(sessionStorage.getItem('HomeDataInfo'))
this.getCampusConsumerReport()
if (this.homeDataInfo.vipStatus === 1) { if (this.homeDataInfo.vipStatus === 1) {
this.isVip = true; this.isVip = true;
this.vipExpiredDt = moment(this.homeDataInfo.vipExpiredDt).format('YYYY年MM月DD日') this.vipExpiredDt = moment(this.homeDataInfo.vipExpiredDt).format('YYYY年MM月DD日')
console.log(this.vipExpiredDt, 'this.vipExpiredDt') console.log(this.vipExpiredDt, 'this.vipExpiredDt')
this.initPieCharts()
this.getCateringAbnormalTypeGroupList()
} }
console.log(this.isVip, 'isVip') console.log(this.isVip, 'isVip')
this.columns = this.dataRangeArr.map(x => x.month) this.columns = this.dataRangeArr.map(x => x.month)
console.log(this.columns, 'columns') console.log(this.columns, 'columns')
// await this.CloudGatewayToken()
await this.getCampusConsumerReport()
await this.initPieCharts()
await this.getCateringAbnormalTypeGroupList()
// await this.getUserDealReportListAndSum()
}, },
methods: { methods: {
async init(){
// await this.getCampusConsumerReport()
// await this.initPieCharts()
// await this.getCateringAbnormalTypeGroupList()
},
shareHandler: function() { shareHandler: function() {
let htmlCanvasImg = document.getElementsByClassName("htmlCanvasImg")[0]; let htmlCanvasImg = document.getElementsByClassName("htmlCanvasImg")[0];
if (htmlCanvasImg) { if (htmlCanvasImg) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment