From 1e5fc5a10adc4d452e7575ba48323436ca135636 Mon Sep 17 00:00:00 2001 From: YCC Date: Thu, 27 Mar 2025 17:13:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=9B=E9=80=89jh=E7=BD=91=E9=A1=B5=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 49 +- application/models/infoStructures_model.php | 4 + .../mobile_first/jh-feedback-30-list.php | 12 + .../mobile_first/jh-feedback-city-list.php | 76 ++ .../views/mobile_first/jh-feedback-list.php | 32 + .../views/mobile_first/jh-inquiry-form.php | 715 ++++++++++++++++++ .../views/mobile_first/jh-tips-right-list.php | 26 + 7 files changed, 870 insertions(+), 44 deletions(-) create mode 100644 application/views/mobile_first/jh-feedback-30-list.php create mode 100644 application/views/mobile_first/jh-feedback-city-list.php create mode 100644 application/views/mobile_first/jh-feedback-list.php create mode 100644 application/views/mobile_first/jh-inquiry-form.php create mode 100644 application/views/mobile_first/jh-tips-right-list.php diff --git a/application/controllers/information.php b/application/controllers/information.php index 61fca673..65fe9f60 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -2683,7 +2683,7 @@ class Information extends CI_Controller } $tips_right_list_content = $this->load->view( - 'mobile_first/ah-tips-right-list', + 'mobile_first/jh-tips-right-list', array( 'tips_right_a' => $tips_right_a, 'tips_right_b' => $tips_right_b, @@ -2720,9 +2720,7 @@ class Information extends CI_Controller $meta_product_code = get_meta($information->ic_id, 'meta_product_code'); // 非产品页面 if (empty($meta_product_code)) { - $addthis_widget = $this->load->view($template_path . '-add-this', false, true); - $template = str_replace('', $addthis_widget, $template); - $template = str_replace('?product_code=', '', $template); + } else { $template = str_replace('?product_code=', '?product_code=' . $meta_product_code, $template); $inquiry_form_template = $this->load->view( @@ -2732,29 +2730,6 @@ class Information extends CI_Controller ); $information->ic_content = str_replace('', $inquiry_form_template, $information->ic_content); - // GP 表单 - $gp_form_content = $this->load->view( - $template_path . '-gp-form', - array('meta_product_code' => $meta_product_code, 'information' => $information), - true - ); - $information->ic_content = str_replace('', $gp_form_content, $information->ic_content); - - // tour-list 表单 - $tour_list_form_content = $this->load->view( - $template_path . '-tour-list-form', - array('meta_product_code' => $meta_product_code, 'information' => $information), - true - ); - $information->ic_content = str_replace('', $tour_list_form_content, $information->ic_content); - - // 水灯节 GP 线路表单 - $gp_form_content = $this->load->view( - $template_path . '-lantern-festival-gp-form', - array('meta_product_code' => $meta_product_code, 'information' => $information), - true - ); - $information->ic_content = str_replace('', $gp_form_content, $information->ic_content); } $price_tag_list = $this->parse_price_tag($information->ic_content); @@ -2766,20 +2741,6 @@ class Information extends CI_Controller $information->ic_content ); } - // why-us 相关的标签 - $why_us_mobile = $this->load->view($template_path . '-why-us-mobile', false, true); - $information->ic_content = str_replace('', $why_us_mobile, $information->ic_content); - - $why_us_tour_detail_pc = $this->load->view($template_path . '-why-us-tour-detail-pc', false, true); - $information->ic_content = str_replace('', $why_us_tour_detail_pc, $information->ic_content); - - $why_us_tour_list_pc = $this->load->view($template_path . '-why-us-tour-list-pc', false, true); - $information->ic_content = str_replace('', $why_us_tour_list_pc, $information->ic_content); - - $info_page_form_content = $this->load->view($template_path . '-info-page-form', false, true); - $information->ic_content = str_replace('', $info_page_form_content, $information->ic_content); - - // 动态加载反馈标签,第一个城市不足八条,使用第二城市数据。 // HTLM:
@@ -2794,7 +2755,7 @@ class Information extends CI_Controller // 防止触发 Google 网络垃圾政策只返回前三条 $top3_feedback_list = array_slice($feedback_list, 0, 3); $feedback_content = $this->load->view( - 'mobile_first/ah-feedback-list', + 'mobile_first/jh-feedback-list', array('feedback_list' => $top3_feedback_list), true ); @@ -2816,7 +2777,7 @@ class Information extends CI_Controller $city_name = $feedback30_array[1][$index]; $feedback_list = $this->Feedback_model->get_feedback_by_city_name($city_name); $feedback_30_content = $this->load->view( - 'mobile_first/ah-feedback-30-list', + 'mobile_first/jh-feedback-30-list', array('feedback_list' => $feedback_list), true ); @@ -2843,7 +2804,7 @@ class Information extends CI_Controller } $feedback_city_content = $this->load->view( - 'mobile_first/ah-feedback-city-list', + 'mobile_first/jh-feedback-city-list', $feedback_city_list, true ); diff --git a/application/models/infoStructures_model.php b/application/models/infoStructures_model.php index 6628f90f..36adf959 100644 --- a/application/models/infoStructures_model.php +++ b/application/models/infoStructures_model.php @@ -263,6 +263,10 @@ class InfoStructures_model extends CI_Model . "WHERE is_id = ?"; $this->HT->query($set_sql, array($set_parent_id, $set_level, $set_path,$set_is_sitecode, $item->is_id)); } + + //因为支持跨站点,所以要修改ic_sitecode和结构树一致 todo: 太耗时了,以后再优化 + //$sql="update infoContents set ic_sitecode=? where ic_id in( select is_ic_id from infoStructures where is_sitecode=?)" + //$this->HT->query($sql,array($set_is_sitecode,$set_is_sitecode)); } /** diff --git a/application/views/mobile_first/jh-feedback-30-list.php b/application/views/mobile_first/jh-feedback-30-list.php new file mode 100644 index 00000000..6a7b4389 --- /dev/null +++ b/application/views/mobile_first/jh-feedback-30-list.php @@ -0,0 +1,12 @@ + + $feedback) {?> +
+ + tour rating +

+ More +
,
+
+ + + \ No newline at end of file diff --git a/application/views/mobile_first/jh-feedback-city-list.php b/application/views/mobile_first/jh-feedback-city-list.php new file mode 100644 index 00000000..aefe1dc3 --- /dev/null +++ b/application/views/mobile_first/jh-feedback-city-list.php @@ -0,0 +1,76 @@ + + +

Thailand Travel Reviews

+ + $feedback) {?> +
+ + tour rating +

+ More +
,
+
+
More Thailand reviews
+ + + + +

Vietnam Travel Reviews

+ + $feedback) {?> +
+ + tour rating +

+ More +
,
+
+
More Vietnam reviews
+ + + + +

Cambodia Travel Reviews

+ + $feedback) {?> +
+ + tour rating +

+ More +
,
+
+
More Cambodia reviews
+ + + + +

Japan Travel Reviews

+ + $feedback) {?> +
+ + tour rating +

+ More +
,
+
+
More Japan reviews
+ + + + + + +

China Travel Reviews

+ + $feedback) {?> +
+ + tour rating +

+ More +
,
+
+
More China reviews
+ \ No newline at end of file diff --git a/application/views/mobile_first/jh-feedback-list.php b/application/views/mobile_first/jh-feedback-list.php new file mode 100644 index 00000000..e81f707f --- /dev/null +++ b/application/views/mobile_first/jh-feedback-list.php @@ -0,0 +1,32 @@ + +

Discover real reviews of Highlights Travel Family's best-rated service across trusted platforms.

+
+ Trip Advisor certificate of excellence 2024 + tour rating +
+
+ + + + + $feedback) {?> + + + + +
+
\ No newline at end of file diff --git a/application/views/mobile_first/jh-inquiry-form.php b/application/views/mobile_first/jh-inquiry-form.php new file mode 100644 index 00000000..61b8e688 --- /dev/null +++ b/application/views/mobile_first/jh-inquiry-form.php @@ -0,0 +1,715 @@ + +
+

Inquire now! Your 1:1 travel consultant will reply within 1 working day.

+
+ + +
+

+ * How would you travel? +

+ +
+ + +
+
+ + +
+
+ + +
+
+ + +
+ + +
+ + +
+ +
+

+ * What's your hotel choice? +

+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+

+ * When would you travel? +

+ +
+ + +
+
+ + +
+
+ + +
+ + + +
+ + + + + + + + + + +

I am also available on:

+
+ + +
+
+ + +
+ + + +
+
+ + + + + + + diff --git a/application/views/mobile_first/jh-tips-right-list.php b/application/views/mobile_first/jh-tips-right-list.php new file mode 100644 index 00000000..9794bc43 --- /dev/null +++ b/application/views/mobile_first/jh-tips-right-list.php @@ -0,0 +1,26 @@ +
+ + + +
Make the most of your time
+ +
+ +
Choose the best time to visit
+ +
+
\ No newline at end of file