%
var barText;
var lineHeight;
var isCn=store.getLang()=='en-us'?false:true;
var curDate = utils.formatDate(new Date(), 'yyyy-mm-dd');
var hasLastBtn = false;
var roundJourney = (params.query.journeyType ==2&&(_.isEmpty(params.queryResult.flightGroupInfoList)||!_.isEmpty(store.getMyInfo().defaultSetup)))?true:false;
if(data && data[0]){
if(!params.isSpecial){
var depCity = service.getAirport(data[0].depApt),
arrCity = service.getAirport(data[0].arrApt),
deptDate = data[0].depDate.substring(5,10);
if(isCn){
if(appConfig && appConfig.showAirportFlag == 'N'){//走国内城市列表,显示城市列表
title = (roundJourney ? lang['flight_' + params.flight_list_segmentIndex].toString() : '') + ' ' + depCity.city + ' — ' + arrCity.city;
}
else {
title = (roundJourney ? lang['flight_' + params.flight_list_segmentIndex].toString() : '') + ' ' + depCity.name + ' — ' + arrCity.name;
}
}
else {
if(appConfig && appConfig.showAirportFlag == 'N'){//走国内城市列表,显示城市列表
title = (roundJourney ? lang['flight_' + params.flight_list_segmentIndex].toString() : "") + " " + depCity.city + "
" + " — " + arrCity.city;
}
else {
title = (roundJourney ? lang['flight_' + params.flight_list_segmentIndex].toString() : "") + " " + depCity.name + "
" + " — " + arrCity.name;
}
}
//title = (roundJourney ? lang['flight_'+params.flight_list_segmentIndex].toString():"")+" "+(isCn ? depCity.name:depCity.city)+" — "+(isCn ?arrCity.name:arrCity.city);
barText = deptDate +"/" + lang.short_week[data[0].depWeek];
lineHeight='';
hasLastBtn = true;
//往返程
if(roundJourney&¶ms.flight_list_segmentIndex == 2){
//往返程,回程日期早于出发日期时,不显示按钮
if(params.query.retDate <= params.query.depDate){
hasLastBtn = false;
}
}else{
hasLastBtn = _.isEqual(data[0].depDate,curDate)? false : true;
}
}else{
var curItem0 = data[0];
curDep = curItem0.rtDepartFlightVOList[0];
curRet = curItem0.rtReturnFlightVOList[0];
toDepCity = service.getAirport(curDep.depApt).city,
toArrCity = service.getAirport(curDep.arrApt).city,
goDepCity = service.getAirport(curRet.depApt).city,
goArrCity = service.getAirport(curRet.arrApt).city,
toDate=curDep.depDate.substring(5,10);
goDate=curRet.depDate.substring(5,10);
title = toDate+" "+toDepCity+" — "+toArrCity+""+goDate+" "+goDepCity+" — "+goArrCity;
barText = toDate +"/" + lang.short_week[curDep.depWeek];
//lineHeight='flightlist-bar-line';
hasLastBtn = _.isEqual(curDep.depDate,curDate)? false : true;
}
}
%>
<%= flightItem.depTime%> <%= _flightTime %> <%if(flightItem.stopOver!=1){%> <%} else {%> <%if(!_.isEmpty(stopCity))%> <%= stopCity %> <%}%> <%= flightItem.arrTime%>
<%= flight %> <%if((!flightItem.contrary&&!myInfo.depUser) && (!(utils.isServiceCodeNeed(store,2)) && flightItem.priceType == "PRO") && !_.isEqual(flightItem.carriageAirline,flightItem.marketAirline) && flightItem.stopOver==1){%> <%if(!flightItem.contrary&&!myInfo.depUser && (_.isEmpty(params.order.privateJourney)|| (!_.isEmpty(params.order.privateJourney)&&!_.isEqual(params.order.privateJourney,"Y"))) && ((myInfo.travelPolicyInfo && !_.isEmpty(myInfo.travelPolicyInfo.travelid)) || (appConfig && appConfig.lowestPriceType != 9))){%> <%=lang.policy%> <%}%> <%=lang.protocol%> <%=lang.carriageAir.replace("{n}",flightItem.carriageAirline)%> <%=lang.stopOver%> <%}else{%> <%if(!flightItem.contrary && !myInfo.depUser && !isBCD && (_.isEmpty(params.order.privateJourney)|| (!_.isEmpty(params.order.privateJourney)&&!_.isEqual(params.order.privateJourney,"Y"))) && ((myInfo.travelPolicyInfo && !_.isEmpty(myInfo.travelPolicyInfo.travelid)) || (appConfig && appConfig.lowestPriceType != 9))){%> <%=lang.policy%> <%}%> <%if(!(utils.isServiceCodeNeed(store,2)) && flightItem.priceType == "PRO"){%> <%=lang.protocol%> <%}%> <% if(!_.isEqual(flightItem.carriageAirline,flightItem.marketAirline)){ var _arriage = lang.carriageAir.replace("{n}",flightItem.carriageAirline); %> <%=_arriage%> <%}%> <%if(flightItem.stopOver==1)%> <%=lang.stopOver%> <%}%>
;padding-right: <%=pr%>px;<%=ticketCss%>text-align: right;padding-top:5px;line-height: 23px;'> <%=cabinCount%> <%=dis%>
¥ <%= _cabinPrice%>
¥ <%=cabinItem.yeeXingFareInfoList[0].price%>
<%}%><%= depFlight %>
<%=lang.flight_1%><%= depTime1%>
<%= arrTime1%><%= retFlight %>
<%=lang.flight_2%><%= depTime2%>
<%= arrTime2%><%=discount%>