Commit 4b6d05c6 by liang ce

首页修改

parent a2d14732
......@@ -89,7 +89,7 @@ Page({
let date2 = this.data.AllScheduleList[y].endTime.slice(0, 10).replace(/-/g, '/')
let count = this.count(date1, date2)
if (count == 0) {
if (DateMap.get(new Date(time.getFullYear(), time.getMonth(), time.getDate()).toLocaleDateString())){
if (DateMap.get(`${new Date(this.data.AllScheduleList[y].startTime.replace(/-/g, '/')).toLocaleDateString()}`)){
DateMap.get(`${new Date(this.data.AllScheduleList[y].startTime.replace(/-/g, '/')).toLocaleDateString()}`).scheduleList.push({
...this.data.AllScheduleList[y],
thisDayStartTime: this.data.AllScheduleList[y].startTime.slice(11, 16),
......@@ -180,7 +180,6 @@ Page({
})
}
});
console.log(DateList)
return DateList
},
count(date1, date2) {
......
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