diff --git a/application/third_party/flightsystem/views/searchForHt.php b/application/third_party/flightsystem/views/searchForHt.php index 2a5ed55f..38bbe091 100644 --- a/application/third_party/flightsystem/views/searchForHt.php +++ b/application/third_party/flightsystem/views/searchForHt.php @@ -11,23 +11,28 @@ queryResultList as $items){ - echo '
'; - echo '

'.$items->flight->airlineCompany.'('.$items->flight->flightNo.')

'; - echo '
'.$items->flight->departTime.'
'; - echo '
'.$items->flight->arriveTime.'
'; - echo '
'.$items->flight->meal.'
'; - echo '
'.$items->resourceList['0']->price->adultPrice.'
'; + echo '
'; + echo '

'.$items->flight->airlineCompany.' ('.$items->flight->flightNo.')

'; + echo '
'.$items->flight->departAirportName.' ('.$items->flight->departAirportTerminal.') '.$items->flight->departTime.'
'; + echo '
'.$items->flight->duration.':00
'; + echo '
'.$items->flight->arriveAirportName.' ('.$items->flight->arriveAirportTerminal.') '.$items->flight->arriveTime.'
'; + echo '
'.$items->flight->craftType.' ('.$items->flight->meal.')
'; + echo '
经济舱全价:
'; echo ''; echo '
'; echo '
'; foreach ($items->resourceList as $seatItems){ - echo '
'; + echo '
'; echo '
'.$seatItems->cabinList['0']->cabinClassName.'('.$seatItems->cabinList['0']->cabinClass.')
'; echo '
免费托运行李额:'.$seatItems->cabinList['0']->freeLuggage.$seatItems->cabinList['0']->freeLuggageUnit.'
'; - echo '
成人价:'.$seatItems->price->adultFacePrice.'
'; - echo '
儿童价:'.$seatItems->price->childPrice.'
'; + if($seatItems->price->adultFacePrice != $seatItems->price->cabinClassFullPrice){ + echo '
票面价(折扣):'.$seatItems->price->adultFacePrice.' ('.round(($seatItems->price->adultFacePrice / $seatItems->price->cabinClassFullPrice),2) *10 .')
'; + }else{ + echo '
票面价:'.$seatItems->price->adultFacePrice.'(全价)
'; + } + echo '
全价:'.$seatItems->price->cabinClassFullPrice.'
'; echo '
余票数:'.$seatItems->cabinList['0']->seatStatus.'
'; - echo '
'; + echo '
'; echo '
'; } echo '
'; @@ -69,5 +74,10 @@ $(function(){ $('#alltime').click(function(){ $('.flightItems').show(); }); + + $('.seatList').hover(function(){ + $('.seatList').css('background-color','#fff'); + $(this).css('background-color','#ccc'); + }); });