master
赵鹏 7 months ago
parent abe6c86e27
commit 48373bcdd3

@ -3396,9 +3396,10 @@ class Information extends CI_Controller {
/**替换左右结构的线路表单标签 2024-7-4*/
if (strpos($ic_content, '<!--@TOUR-FORM@-->') !== false) {
$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_pc = $ic_content; //需要一个变量来过渡,不然$ic_content改变以后PC端就没有标签<!--@TOUR-FORM@-->
$ic_content_pc = str_replace('<!--@TOUR-FORM@-->', $template_form_tourqi, $ic_content_pc);
$data["showFormTourQi"] = false; //如果有标签就不显示外面的表单,因为$ic_content会在第一次就替换掉标签所以第二次pc端这里不执行。
$data["CUSTOMCONENT"] = $ic_content;
$data["CUSTOMCONENT"] = $ic_content_pc;
}
}

Loading…
Cancel
Save