gotList () {
var spancolor = document.querySelectorAll('#Day li span span')
for (const item of this.YueHuiYi) {
console.log(item.MettingList.length > 0)
if (item.MettingList.length > 0) {
for (const ow of item.MettingList) {
// 已结束 小于
if (((new Date(((ow.EndTime).substring(0, 10)).replace(/-/g, '/')).getTime() - new Date((this.Nowtime).replace(/-/g, '/')).getTime()) < 0)) {
for (const span of spancolor) {
if (span.innerHTML === item.NowTime.split('-')[2].replace(/\b(0+)/gi, '')) {
span.className = 'blueColor'
}
}
// 未结束 大于
} else if (((new Date(((ow.EndTime).substring(0, 10)).replace(/-/g, '/')).getTime() - new Date((this.Nowtime).replace(/-/g, '/')).getTime()) > 0)) {
for (const span of spancolor) {
if (span.innerHTML === item.NowTime.split('-')[2].replace(/\b(0+)/gi, '')) {
span.className = 'bluesColor'
}
}
// 未结束 等于
} else if (((new Date(((ow.EndTime).substring(0, 10)).replace(/-/g, '/')).getTime() - new Date((this.Nowtime).replace(/-/g, '/')).getTime()) === 0)) {
for (const span of spancolor) {
if (span.innerHTML === item.NowTime.split('-')[2].replace(/\b(0+)/gi, '')) {
span.className = 'bluesColor'
}
}
}
}
// 没有会议
} else if (item.MettingList.length === 0) {
for (const span of spancolor) {
if (span.innerHTML === item.NowTime.split('-')[2].replace(/\b(0+)/gi, '')) {
span.className = ''
}
}
}
}
},