Commit d9d7b5ee authored by youjie's avatar youjie

修复bug

parent d50bbd0b
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
(line <= end[0] && index < end[1] && line > start[0]) || (line <= end[0] && index < end[1] && line > start[0]) ||
(line < end[0] && line > start[0]) (line < end[0] && line > start[0])
? 'bg-higlt-orange': '', ? 'bg-higlt-orange': '',
((line==0||line==1)&& index + 1 < nowDay)||res.month<nowMonth ? 'time-out' : '', (line == 0 && index + 1 < nowDay)||resDate[line].month<nowMonth ? 'time-out' : '',
isNaN(item) ? 'is-festival' : '', isNaN(item) ? 'is-festival' : '',
(isNaN(item) && line == start[0] && index == start[1]) || (isNaN(item) && line == start[0] && index == start[1]) ||
(isNaN(item) && line == end[0] && index == end[1]) (isNaN(item) && line == end[0] && index == end[1])
...@@ -211,7 +211,6 @@ export default { ...@@ -211,7 +211,6 @@ export default {
}, },
}); });
this.setDate(); this.setDate();
// this.nowDay = new Date().getDate()
/*默认入住离店日期,今日入住明日离店,此处应在setDefaultDate函数内传入vuex里保存的日期进行默认操作 /*默认入住离店日期,今日入住明日离店,此处应在setDefaultDate函数内传入vuex里保存的日期进行默认操作
*不推荐使用本地缓存,下边只是使用缓存的示例 *不推荐使用本地缓存,下边只是使用缓存的示例
...@@ -452,7 +451,7 @@ export default { ...@@ -452,7 +451,7 @@ export default {
//选择入住离开 //选择入住离开
selectDay(line, index) { selectDay(line, index) {
if (((line==0||line==1)&& index + 1 < this.nowDay)||this.resDate[line].month<this.nowMonth) return; if ((line == 0 && index + 1 < this.nowDay)||this.resDate[line].month<this.nowMonth) return;
//如果有入住情况和价格则需要进行一些列的判断 //如果有入住情况和价格则需要进行一些列的判断
if (this.priceStauts.length > 0) { if (this.priceStauts.length > 0) {
if ( if (
......
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