|
@@ -293,29 +293,22 @@
|
|
|
this.leaveDateShow = false;
|
|
|
},
|
|
|
compareDate(data) {
|
|
|
- console.log(data)
|
|
|
let data2=data.substring(0,10);
|
|
|
- console.log(new Date(data2).getTime())
|
|
|
- console.log(new Date(this.currentDate).getTime())
|
|
|
if (
|
|
|
new Date(data2).getTime() < new Date(this.currentDate).getTime()
|
|
|
) {
|
|
|
this.today = -1;
|
|
|
- //v.push("-1"); //有时间小于今天
|
|
|
}
|
|
|
if (
|
|
|
new Date(data2).getTime() == new Date(this.currentDate).getTime()
|
|
|
) {
|
|
|
this.today = 1;
|
|
|
- v.push("1"); //有时间等于今天
|
|
|
}
|
|
|
if (
|
|
|
new Date(data2).getTime() > new Date(this.currentDate).getTime()
|
|
|
) {
|
|
|
this.today = 2;
|
|
|
- //v.push("2"); //有时间大于今天
|
|
|
}
|
|
|
- console.log(this.today)
|
|
|
},
|
|
|
//添加入住人
|
|
|
goStayCheck() {
|