master
赵鹏 1 year ago
parent 0657103000
commit 6fe8d3907c

@ -3632,8 +3632,8 @@ class Information extends CI_Controller
$data = array();
#region 公用数据
//$apiurl = "http://202.103.68.104:61/info.php"; //本地测试
$apiurl = "https://ct.mycht.cn/info.php"; //网前
$apiurl = "http://202.103.68.104:61/info.php"; //本地测试
//$apiurl = "https://ct.mycht.cn/info.php"; //网前
//先准备数据,采用直接赋值视图然后返回视图字符串的模式,不使用一次次替换视图模板内容的模式。
$data["TITLE"] = $information->ic_seo_title;
@ -3701,8 +3701,8 @@ class Information extends CI_Controller
}
//主样式表,内联模式
//$apiweb="http://202.103.68.104:71"; //本地测试
$apiweb = "https://www.trainspread.com";
$apiweb="http://202.103.68.104:71"; //本地测试
//$apiweb = "https://www.trainspread.com";
$cssUrl = $apiweb . "/css/base.css?v=" . time();
$main_css_string = compress_css(GET_HTTP($cssUrl));
$data["MAINCSS"] = '<style type="text/css">' . $main_css_string . '</style>';
@ -3803,7 +3803,7 @@ class Information extends CI_Controller
$productCode = $meta_ct_page_value;
}
$addonJs .= '<script src="' . $apiweb . '/js/mobile-first/daytripdetail.js" defer></script>';
//$addonJs .= '<script src="'.$apiweb.'/js/mobile-first/flatpickr.js"></script>';
// $addonJs .= '<script src="'.$apiweb.'/js/mobile-first/flatpickr.js"></script>';
$data["ADDONCSS"] .= '<link href="' . $apiweb . '/css/flatpickr.css" rel="preload" as="style" onload="this.rel=\'stylesheet\'" />';
//一日游表单的替换放到下面的区分PC端和移动端
@ -3839,6 +3839,7 @@ class Information extends CI_Controller
if ($meta_ct_page_type == "daytripform") {
$productType = $meta_ct_page_type;
$addonJs .= '<script src="' . $apiweb . '/js/mobile-first/daytrip-form.js" defer></script>';
$data["ADDONCSS"] .= '<link href="' . $apiweb . '/css/flatpickr.css" rel="preload" as="style" onload="this.rel=\'stylesheet\'" />';
//$data["ADDONCSS"] .= '<link href="' . $apiweb . '/css/css3/form.css" rel="preload" as="style" onload="this.rel=\'stylesheet\'" />';
}
@ -4053,6 +4054,15 @@ class Information extends CI_Controller
//产品汉特信息,测试地址http://202.103.68.104:61/info.php/thirdparty/ctmobilefirst/apits/getDaytripDetail/?param=TS-HKALC-1,TS-HKALC-2,TS-HKALC-3
$TourData = json_decode(GET_HTTP($apiurl . "/thirdparty/ctmobilefirst/apits/getDaytripDetail/?param=" . $paramCode));
$DayTripData["TourData"] = $TourData;
$TourPrice = json_decode(GET_HTTP($apiurl . "/thirdparty/ctmobilefirst/apits/getDaytripsPrice/?param=" . $paramCode));
if ($TourPrice->status == "ok"){
$DayTripData["DaytripPrice"] = $TourPrice->price;
}else{
$TourPrice = json_decode(GET_HTTP($apiurl . "/thirdparty/ctmobilefirst/apits/getDaytripsPrice/?param=" . $paramCode.",3"));
$DayTripData["DaytripPrice"] = $TourPrice->price;
}
//替换模板
$TS_DayTripContent = $ic_content; //因为需要替换所以要转给零时变量。不然手机端替换完了PC端就没有了。
$template_form_daydetail = $this->load->view($template_path . '-daydetail-form', $DayTripData, true); //模板内容

@ -16,7 +16,7 @@
<div class="container-right right-m">
<div class="right-check box-show">
<div class="rcheck-top">
<p><strong>Price from</strong> <span class="font36 red">US$261</span></p>
<p><strong>Price from</strong> <span class="font36 red">US$<?php echo $DaytripPrice ?></span></p>
<p>Per Person/Per Grop up to 3</p>
<p><a href="#modal-guarantee">Lowest Prices Guarantee</a></p>
<article id="modal-guarantee" class="modal-box">

Loading…
Cancel
Save