Commit aafc5ebf authored by huangyuanyuan's avatar huangyuanyuan

修改日历

parent 464c38df
......@@ -367,8 +367,11 @@ export default {
MonthdayList.push(month)
}
let DayList=[];
this.timeStr.forEach(time=>{
// this.timeStr.forEach(time=>{
// console.log("time",time)
MonthdayList.forEach(item=>{
this.timeStr.forEach(time=>{
if(moment(time.startDate).isBefore(item.dateStr) && moment(item.dateStr).isBefore(time.endDate)){
let msg={
price:time.b2bPrice,
......@@ -379,14 +382,16 @@ export default {
dateStr:item.dateStr,
};
DayList.push(msg)
}else{
let date={
dateStr:item.dateStr,
}
DayList.push(date)
}
// else{
// let date={
// dateStr:item.dateStr,
// }
// DayList.push(date)
// }
})
})
console.log("DayList",DayList)
this.creatCalendar(DayList);
},
......
......@@ -73,8 +73,8 @@
<li v-for="item in dataDes.ticketList" :key="item.id">
<el-row>
<el-col :span="19">
{{item.ticketDesc}}
<span class="pfR">({{item.ticketName}})</span>
{{item.ticketName}}
<span class="pfR">({{item.ticketDesc}})</span>
<!-- <span>(18-64周岁)</span> -->
<!-- <span class="colorG">可订今日</span>
<span class="colorG">可订今日</span> -->
......
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