|
|
|
@ -910,26 +910,29 @@ class Information extends CI_Controller
|
|
|
|
|
|
|
|
|
|
//额外js
|
|
|
|
|
$data["ADDONJS"] = "";
|
|
|
|
|
$jscdn = "";
|
|
|
|
|
//$jscdn = "//data.chinatravel.com";
|
|
|
|
|
$meta_addon_js = get_meta($information->ic_id, 'meta_addon_js');
|
|
|
|
|
if (!empty($meta_addon_js)) {
|
|
|
|
|
$addonJs .= '<script src="' . $meta_addon_js . '"></script>';
|
|
|
|
|
}
|
|
|
|
|
//价格js
|
|
|
|
|
if ($meta_ct_page_price == "yes") {
|
|
|
|
|
$addonJs .= '<script src="'.$jscdn.'/js/mobile-first/getprice.js"></script>';
|
|
|
|
|
$addonJs .= '<script src="'.$apiweb.'/js/mobile-first/getprice.js"></script>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//列表js
|
|
|
|
|
if (in_array($meta_ct_page_type, array('daytripindex', 'tourindex', 'attractionindex'))) {
|
|
|
|
|
$addonJs .= '<script src="'.$jscdn.'/js/mobile-first/getlist.js"></script>';
|
|
|
|
|
$addonJs .= '<script src="'.$apiweb.'/js/mobile-first/getlist.js"></script>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//天气
|
|
|
|
|
if (in_array($meta_ct_page_type, array('weatherpage'))) {
|
|
|
|
|
$addonJs .= '<script src="'.$apiweb.'/js/mobile-first/getweather.js"></script>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//页面传递参数
|
|
|
|
|
$passParam = "";
|
|
|
|
|
if (in_array($meta_ct_page_type, array("daytripindex", "tourindex", "attractionindex"))) { //一日游和线路列表
|
|
|
|
|
if (in_array($meta_ct_page_type, array("daytripindex", "tourindex", "attractionindex","weatherpage"))) { //一日游和线路列表
|
|
|
|
|
//产品首页
|
|
|
|
|
$meta_ct_page_value = get_meta($information->ic_id, 'meta_ct_page_value');
|
|
|
|
|
|
|
|
|
@ -960,9 +963,9 @@ class Information extends CI_Controller
|
|
|
|
|
if (!empty($meta_ct_page_value)) {
|
|
|
|
|
$productCode = $meta_ct_page_value;
|
|
|
|
|
}
|
|
|
|
|
$addonJs .= '<script src="'.$jscdn.'/js/mobile-first/daytripdetail.js"></script>';
|
|
|
|
|
//$addonJs .= '<script src="'.$jscdn.'/js/mobile-first/flatpickr.js"></script>';
|
|
|
|
|
$data["ADDONCSS"] .= '<link href="' . $jscdn . '/css/newcss3/flatpickr.css" rel="stylesheet" />';
|
|
|
|
|
$addonJs .= '<script src="'.$apiweb.'/js/mobile-first/daytripdetail.js"></script>';
|
|
|
|
|
//$addonJs .= '<script src="'.$apiweb.'/js/mobile-first/flatpickr.js"></script>';
|
|
|
|
|
$data["ADDONCSS"] .= '<link href="' . $apiweb . '/css/newcss3/flatpickr.css" rel="stylesheet" />';
|
|
|
|
|
}
|
|
|
|
|
if ($meta_ct_page_type=="tourdetail"){
|
|
|
|
|
//线路
|
|
|
|
|