Commit 30593e80 authored by zhengke's avatar zhengke

修改显示天数

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