Commit 30593e80 authored by zhengke's avatar zhengke

修改显示天数

parent 2e8850ff
......@@ -184,7 +184,7 @@
</tr>
<tr>
<td colspan="8" style="text-align:left;padding-left:5px;">
<div class="rQ_HtList" v-if="item.IsBookTeam==2&&item.Numbers>0">
<div class="rQ_HtList" v-if="item.IsBookTeam==2&&item.Numbers>0&&isShowCancle">
<span v-for="subItem in item.Numbers"></span>
</div>
<div>注意事项: {{item.SupplierRemarks}}</div>
......@@ -253,6 +253,7 @@
isToday:false,
todayDate:'',
showNum:0,
isShowCancle:false,
}
},
methods: {
......@@ -284,7 +285,6 @@
x.Numbers = 5- this.DateMinus(x.HotelBookTimeStr);
}
})
console.log(this.dataList,'datalist');
} else {
this.Error(res.data.message)
}
......@@ -293,8 +293,13 @@
DateMinus(sDate){
  var sdate = new Date(sDate.replace(/-/g, "/"));
  var now = new Date();
  var days = sdate.getTime()-now.getTime();
  var day = parseInt(days / (1000 * 60 * 60 * 24));
  var days = now.getTime()-sdate.getTime();
  var day = Math.abs(parseInt(days / (1000 * 60 * 60 * 24)));
if(day<=5){
this.isShowCancle=true;
}else{
this.isShowCancle=false;
}
  return day;
},
//获取酒店列表
......
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