Commit 2d033150 authored by 黄奎's avatar 黄奎

1

parent 4a8ec5ca
...@@ -166,7 +166,7 @@ ...@@ -166,7 +166,7 @@
{{$t('tips.di')}}{{subItem.DayNum}}{{$t('hotel.hotel_day')}} {{$t('tips.di')}}{{subItem.DayNum}}{{$t('hotel.hotel_day')}}
<br /> <br />
{{GetDayStr(subItem.DayNum-1).DateStr}} {{GetDayStr(subItem.DayNum-1).DateStr}}
<br /> <br />
{{GetDayStr(subItem.DayNum-1).WeekStr}} {{GetDayStr(subItem.DayNum-1).WeekStr}}
</td> </td>
<td> <td>
...@@ -982,9 +982,9 @@ ...@@ -982,9 +982,9 @@
this.isShowDiningDig = true; this.isShowDiningDig = true;
}, },
GetDayStr(dayNum) { GetDayStr(dayNum) {
var objDate={ var objDate = {
DateStr:"", DateStr: "",
WeekStr:"", WeekStr: "",
} }
if (this.offerSelectDate && this.offerSelectDate != '') { if (this.offerSelectDate && this.offerSelectDate != '') {
var dateFormat = new Date(this.offerSelectDate); var dateFormat = new Date(this.offerSelectDate);
...@@ -995,8 +995,8 @@ ...@@ -995,8 +995,8 @@
let m = (dateFormat.getMonth() + 1).toString().padStart(2, '0') let m = (dateFormat.getMonth() + 1).toString().padStart(2, '0')
let d = dateFormat.getDate().toString().padStart(2, '0') let d = dateFormat.getDate().toString().padStart(2, '0')
objDate.DateStr = `${y}-${m}-${d}`; objDate.DateStr = `${y}-${m}-${d}`;
const weekDays = ['星期日','星期一','星期二','星期三','星期四','星期五','星期六']; const weekDays = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
objDate.WeekStr=weekDays[day]; objDate.WeekStr = weekDays[day];
} }
return objDate; return objDate;
}, },
......
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