From 304675a8b8939e93d589e0c17d1bc83f16dca229 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Tue, 9 Nov 2021 15:10:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=A4=A9=E6=B0=94=E9=A2=84?= =?UTF-8?q?=E6=8A=A5=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 9 + .../mobile_first/ch-weather-forecast.php | 163 ++++++++++++++++++ 2 files changed, 172 insertions(+) create mode 100644 application/views/mobile_first/ch-weather-forecast.php diff --git a/application/controllers/information.php b/application/controllers/information.php index 604e2083..685ef01f 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -636,6 +636,15 @@ class Information extends CI_Controller } } + // 天气预报模板 + $weather_forecast_content = $this->load->view( + $template_path . '-weather-forecast', + array(), + true); + $template = str_replace( + '', + $weather_forecast_content, + $template); //火车票搜索框添加 -- zp if ($information->is_parent_id == "278008234") { diff --git a/application/views/mobile_first/ch-weather-forecast.php b/application/views/mobile_first/ch-weather-forecast.php new file mode 100644 index 00000000..c5f8692f --- /dev/null +++ b/application/views/mobile_first/ch-weather-forecast.php @@ -0,0 +1,163 @@ +
+ + + + + + + + + + + +
+
+
Today
+

...

+

...

+
+

...

+

Humidity: ...

+

Wind: ...

+
+
+
+
Tomorrow
+

...

+

...

+
+

...

+

Humidity: ...

+

Wind: ...

+
+
+
+
Forcast2
+

...

+

...

+
+

...

+

Humidity: ...

+

Wind: ...

+
+
+
+
Forcast3
+

...

+

...

+
+

...

+

Humidity: ...

+

Wind: ...

+
+
+
+
Forcast4
+

...

+

...

+
+

...

+

Humidity: ...

+

Wind: ...

+
+
+
+
Forcast5
+

...

+

...

+
+

...

+

Humidity: ...

+

Wind: ...

+
+
+
+ \ No newline at end of file