Commit b496b755 authored by 黄奎's avatar 黄奎
parents 10a6dfad c08ef235
......@@ -505,9 +505,10 @@
/*font-family: 'pingfangR'*/
}
.detail-box .timeline .timeline-item .left{
width: 40px;
margin-right:20px;
/* width: 40px;
margin-right:20px; */
text-align: center;
position: absolute;
}
.detail-box .timeline .timeline-item .left i{
font-size: 20px;
......@@ -643,7 +644,7 @@
}
.detail-box .timeline .timeline-item .new_right{
width:89%;
margin-left:40px;
margin-left:65px;
}
.detail-box .timeline .timeline-item .new_right .Newimg-list .item img{
width:100%;
......
......@@ -17,17 +17,19 @@
font-size:12px;
}
.timeline-item .Arrayleft{
width: 51px;
width: 71px;
height: 25px;
background-color: #fff;
margin-right: 20px;
text-align: center;
font-size: 12px;
padding: 5px 0;
position: absolute;
left:-16px;
}
.timeline-item .Arrayleft i{
position: relative;
left:-4px;
left:1px;
top:-4px;
}
</style>
......@@ -293,12 +295,14 @@
<!-- <traffice :tripItem='son' v-if="son.type==1"></traffice> -->
<template v-if="son.type==1">
<div class="timeline-item">
<div class="Arrayleft">
<!-- <i class="iconfont icon-feiji"></i> -->
<span v-if="son.type==1" v-for="(dns,o) in son.childItem.subTraffic" :key="o">
<span v-if="dns.startTime!=''" style="margin-right:20px;">{{dns.startTime}} </span><span v-if="dns.endTime!=''">-{{dns.endTime}}</span>
</span>
</div>
<template v-for="(dd,Subindex) in son.childItem.subTraffic">
<div class="Arrayleft" v-if="dd.startTime!=''||dd.endTime!=''">
<!-- <i class="iconfont icon-feiji"></i> -->
<span v-if="son.type==1" v-for="(dns,o) in son.childItem.subTraffic" :key="o">
<span v-if="dns.startTime!=''">{{getStartTime(dns.startTime)}}</span><span v-if="dns.endTime!=''">-{{getStartTime(dns.endTime)}}</span>
</span>
</div>
</template>
<div class="new_right">
<span class="time" v-if="dataList.trafficList[0].airportPickUp==1">接早</span>
<span class="time" v-if="dataList.trafficList[0].airportPickUp==2">送机</span>
......@@ -320,10 +324,10 @@
<template v-if="son.type==2">
<div class="timeline-item">
<div class="Arrayleft">
<div class="Arrayleft" v-if="son.childItem.timeStr!=''">
<!-- <i class="iconfont icon-zuji"></i> -->
<template v-if="son.childItem.timeStr!=''">
{{son.childItem.timeStr}}
{{getStartTime(son.childItem.timeStr)}}
</template>
</div>
<div class="new_right">
......@@ -366,10 +370,10 @@
</template>
<template v-if="son.type==4">
<div class="timeline-item">
<div class="Arrayleft">
<div class="Arrayleft" v-if="son.childItem.timeStr!=''">
<!-- <i class="iconfont icon-yongcan"></i> -->
<span v-if="son.childItem.timeStr!=''">
{{son.childItem.timeStr}}
{{getStartTime(son.childItem.timeStr)}}
</span>
</div>
<div class="new_right">
......@@ -1399,6 +1403,18 @@
}
}
},
getStartTime(startTime){
var n = Number(startTime);
if (!isNaN(n)&&startTime.indexOf(':')==-1) {
var strSep=":";
var str1=startTime.substring(0,2);
var str0=startTime.substring(2,startTime.length);
var strNew=str1+strSep+str0;
return strNew;
}else{
return startTime.replace(':',':')
}
}
},
components: {
oneday,
......
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