|
|
|
@ -917,7 +917,7 @@ class Information extends CI_Controller
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($addBaseJs) {
|
|
|
|
|
$addonJs = '<script src="'.$apiweb.'/js/mobile-first/base.js"></script>';
|
|
|
|
|
$addonJs = '<script src="'.$apiweb.'/js/mobile-first/base.js" defer></script>';
|
|
|
|
|
}
|
|
|
|
|
/// ----- 总JS判断完成-----
|
|
|
|
|
|
|
|
|
@ -925,21 +925,21 @@ class Information extends CI_Controller
|
|
|
|
|
$data["ADDONJS"] = "";
|
|
|
|
|
$meta_addon_js = get_meta($information->ic_id, 'meta_addon_js');
|
|
|
|
|
if (!empty($meta_addon_js)) {
|
|
|
|
|
$addonJs .= '<script src="' . $meta_addon_js . '"></script>';
|
|
|
|
|
$addonJs .= '<script src="' . $meta_addon_js . '" defer></script>';
|
|
|
|
|
}
|
|
|
|
|
//价格js
|
|
|
|
|
if ($meta_ct_page_price == "yes") {
|
|
|
|
|
$addonJs .= '<script src="'.$apiweb.'/js/mobile-first/getprice.js"></script>';
|
|
|
|
|
$addonJs .= '<script src="'.$apiweb.'/js/mobile-first/getprice.js" defer></script>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//列表js
|
|
|
|
|
if (in_array($meta_ct_page_type, array('daytripindex', 'tourindex', 'attractionindex'))) {
|
|
|
|
|
$addonJs .= '<script src="'.$apiweb.'/js/mobile-first/getlist.js"></script>';
|
|
|
|
|
$addonJs .= '<script src="'.$apiweb.'/js/mobile-first/getlist.js" defer></script>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//天气
|
|
|
|
|
if (in_array($meta_ct_page_type, array('weatherpage'))) {
|
|
|
|
|
$addonJs .= '<script src="'.$apiweb.'/js/mobile-first/getweather.js"></script>';
|
|
|
|
|
$addonJs .= '<script src="'.$apiweb.'/js/mobile-first/getweather.js" defer></script>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -976,7 +976,7 @@ class Information extends CI_Controller
|
|
|
|
|
if (!empty($meta_ct_page_value)) {
|
|
|
|
|
$productCode = $meta_ct_page_value;
|
|
|
|
|
}
|
|
|
|
|
$addonJs .= '<script src="'.$apiweb.'/js/mobile-first/daytripdetail.js"></script>';
|
|
|
|
|
$addonJs .= '<script src="'.$apiweb.'/js/mobile-first/daytripdetail.js" defer></script>';
|
|
|
|
|
//$addonJs .= '<script src="'.$apiweb.'/js/mobile-first/flatpickr.js"></script>';
|
|
|
|
|
$data["ADDONCSS"] .= '<link href="' . $apiweb . '/css/newcss3/flatpickr.css" rel="preload" as="style" onload="this.rel=\'stylesheet\'" />';
|
|
|
|
|
}
|
|
|
|
|