master
赵鹏 1 year ago
parent a541af9a47
commit ae3daef11b

@ -2720,6 +2720,7 @@ class Information extends CI_Controller
#region 移动端和PC端差别处理区域 #region 移动端和PC端差别处理区域
$arrDevice = array("mobile", "pc"); $arrDevice = array("mobile", "pc");
$data["showFormTourQi"]=true; //是否显示线路表单,默认显示
foreach ($arrDevice as $device) { foreach ($arrDevice as $device) {
//顶部全屏大图 //顶部全屏大图
$data["TOPBANNER"] = ""; $data["TOPBANNER"] = "";
@ -2774,7 +2775,7 @@ class Information extends CI_Controller
} }
} }
$data["template_form_tourqi"]=""; //是否显示线路表单,默认为空
if ($meta_ct_page_type == "tourdetail") { if ($meta_ct_page_type == "tourdetail") {
$dataform['device'] = $device; $dataform['device'] = $device;
$template_form_tourqi = $this->load->view($template_path . '-form-tourqi', $dataform, true); $template_form_tourqi = $this->load->view($template_path . '-form-tourqi', $dataform, true);
@ -2784,7 +2785,7 @@ class Information extends CI_Controller
if (strpos($ic_content, '<!--@TOUR-FORM@-->') !== false) { if (strpos($ic_content, '<!--@TOUR-FORM@-->') !== false) {
$template_form_tourqi = $this->load->view($template_path . '-form-tourqi-new', $dataform, true); $template_form_tourqi = $this->load->view($template_path . '-form-tourqi-new', $dataform, true);
$ic_content = str_replace('<!--@TOUR-FORM@-->', $template_form_tourqi, $ic_content); $ic_content = str_replace('<!--@TOUR-FORM@-->', $template_form_tourqi, $ic_content);
$data["template_form_tourqi"]=""; $data["showFormTourQi"]=false; //如果有标签就不显示外面的表单,因为$ic_content会在第一次就替换掉标签所以第二次pc端这里不执行。
$data["CUSTOMCONENT"] = $ic_content; $data["CUSTOMCONENT"] = $ic_content;
} }
} }

Loading…
Cancel
Save