From 31813c5cd655b18e8a1039d96e2c7a19aa2ccd32 Mon Sep 17 00:00:00 2001 From: lyt Date: Fri, 29 Jan 2021 14:07:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=8Eflight=E5=A4=8D=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/flight/flight.book.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/js/flight/flight.book.js b/js/flight/flight.book.js index fac714e..4f5834c 100644 --- a/js/flight/flight.book.js +++ b/js/flight/flight.book.js @@ -31,7 +31,7 @@ function readData() { DepartFlightInfo = JSON.parse(DepartFlightInfo); DepartCabinInfo = JSON.parse(DepartCabinInfo); let citys = DepartFlightInfo.departCityIataNameEn + " - " + DepartFlightInfo.arriveCityIataNameEn; - let iconSrc = "/china-flights/images/icon/" + DepartFlightInfo.airLineIcon + ".gif"; + let iconSrc = "https://data.chinahighlights.com/china-flights/images/icon/" + DepartFlightInfo.airLineIcon + ".gif"; $('#selected__one_airlineicon').attr('src', iconSrc); $('#selected__one_airlineicon').attr('alt', DepartFlightInfo.showAirLineCompany); $('#selected__one_airline').html(DepartFlightInfo.showAirLineCompany); @@ -46,20 +46,20 @@ function readData() { $('#selected__one_fromairport').html(DepartFlightInfo.departAirportNameEn + '(' + DepartFlightInfo.departAirportTerminal + ')'); $('#selected__one_toairport').html(DepartFlightInfo.arriveAirportNameEn + '(' + DepartFlightInfo.arriveAirportTerminal + ')'); $('#selected__one_duration').html(DepartFlightInfo.duration); - let stopPic = '/images/airArrowDirect.png'; + let stopPic = '/airArrowDirect.png'; if (parseInt(DepartFlightInfo.stopNum) > 0) { - stopPic = '/images/airArrowStop.png'; + stopPic = '/airArrowStop.png'; let stopinfo = DepartFlightInfo.showStopCityName + "," + DepartFlightInfo.stoparrivalTime + "-" + DepartFlightInfo.stopdepartrueTime; let stopinfoHtml = '' + DepartFlightInfo.stopCityCode + ''; $('#selected__one_stopinfo').html(stopinfoHtml); } - $('#selected__one_stoppic').attr('src', 'https://www.trainspread.com'+stopPic); + $('#selected__one_stoppic').attr('src', 'https://data.chinahighlights.com/css/images/flight'+stopPic); } if (ArriveFlightInfo && roundTrip == 'true') { ArriveFlightInfo = JSON.parse(ArriveFlightInfo); ArriveCabinInfo = JSON.parse(ArriveCabinInfo); let citys = ArriveFlightInfo.departCityIataNameEn + " - " + ArriveFlightInfo.arriveCityIataNameEn; - let iconSrc = "/china-flights/images/icon/" + ArriveFlightInfo.airLineIcon + ".gif"; + let iconSrc = "https://data.chinahighlights.com/china-flights/images/icon/" + ArriveFlightInfo.airLineIcon + ".gif"; $('#selected__two_airlineicon').attr('src', iconSrc); $('#selected__two_airlineicon').attr('alt', ArriveFlightInfo.showAirLineCompany); $('#selected__two_airline').html(ArriveFlightInfo.showAirLineCompany); @@ -74,14 +74,14 @@ function readData() { $('#selected__two_fromairport').html(ArriveFlightInfo.departAirportNameEn + '(' + ArriveFlightInfo.departAirportTerminal + ')'); $('#selected__two_toairport').html(ArriveFlightInfo.arriveAirportNameEn + '(' + ArriveFlightInfo.arriveAirportTerminal + ')'); $('#selected__two_duration').html(ArriveFlightInfo.duration); - let stopPic = '/images/airArrowDirect.png'; + let stopPic = '/airArrowDirect.png'; if (parseInt(ArriveFlightInfo.stopNum) > 0) { - stopPic = '/images/airArrowStop.png'; + stopPic = '/airArrowStop.png'; let stopinfo = ArriveFlightInfo.showStopCityName + "," + ArriveFlightInfo.stoparrivalTime + "-" + ArriveFlightInfo.stopdepartrueTime; let stopinfoHtml = '' + ArriveFlightInfo.stopCityCode + ''; $('#selected__two_stopinfo').html(stopinfoHtml); } - $('#selected__two_stoppic').attr('src', 'https://www.trainspread.com'+stopPic); + $('#selected__two_stoppic').attr('src', 'https://data.chinahighlights.com/css/images/flight'+stopPic); $('#selected__two').removeClass('hidden'); } }