diff --git a/application/controllers/information.php b/application/controllers/information.php index ea557538..eddecdb6 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -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"] = ''; @@ -3803,7 +3803,7 @@ class Information extends CI_Controller $productCode = $meta_ct_page_value; } $addonJs .= ''; - //$addonJs .= ''; + // $addonJs .= ''; $data["ADDONCSS"] .= ''; //一日游表单的替换,放到下面的区分PC端和移动端 @@ -3839,6 +3839,7 @@ class Information extends CI_Controller if ($meta_ct_page_type == "daytripform") { $productType = $meta_ct_page_type; $addonJs .= ''; + $data["ADDONCSS"] .= ''; //$data["ADDONCSS"] .= ''; } @@ -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); //模板内容 diff --git a/application/views/mobile_first/trainspread-daydetail-form.php b/application/views/mobile_first/trainspread-daydetail-form.php index b012e11d..afaf1c3a 100644 --- a/application/views/mobile_first/trainspread-daydetail-form.php +++ b/application/views/mobile_first/trainspread-daydetail-form.php @@ -16,7 +16,7 @@
-

Price from US$261

+

Price from US$

Per Person/Per Grop up to 3

Lowest Prices Guarantee