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