From 1752e16f8d169b7fe183804d52fd25fb916e7c12 Mon Sep 17 00:00:00 2001 From: liuweiwen <“529520975@qq.com> Date: Tue, 3 Dec 2019 10:24:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=90=BD=E5=9C=B0=E9=A1=B5=E5=AE=89=E5=8D=93?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=97=A7=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Home/Controller/HomeController.class.php | 25 +++- .../Home/View/default/Home/landingPage2.html | 134 ++++++++++++++++++ 2 files changed, 158 insertions(+), 1 deletion(-) create mode 100644 Application/Home/View/default/Home/landingPage2.html diff --git a/Application/Home/Controller/HomeController.class.php b/Application/Home/Controller/HomeController.class.php index 5a0a198ad..b40b6ac1b 100644 --- a/Application/Home/Controller/HomeController.class.php +++ b/Application/Home/Controller/HomeController.class.php @@ -231,7 +231,30 @@ class HomeController extends Controller $this->assign('promoteId', $promoteId); $cur_url = base64_encode(base64_encode("http://" . $_SERVER['HTTP_HOST'] . __SELF__)); $this->assign('cur_url', $cur_url); - $this->display('landingPage'); + if ($this->get_device_type() == 'ios') { + $this->display('landingPage'); + } else { + $this->display('landingPage2'); + } + + } + + private function get_device_type() + { + //全部变成小写字母 + $agent = strtolower($_SERVER['HTTP_USER_AGENT']); + $type = 'other'; + //分别进行判断 + if(strpos($agent, 'iphone') || strpos($agent, 'ipad')) + { + $type = 'ios'; + } + + if(strpos($agent, 'android')) + { + $type = 'android'; + } + return $type; } diff --git a/Application/Home/View/default/Home/landingPage2.html b/Application/Home/View/default/Home/landingPage2.html new file mode 100644 index 000000000..2a31f76fb --- /dev/null +++ b/Application/Home/View/default/Home/landingPage2.html @@ -0,0 +1,134 @@ + + +
+ + + + + + + + + +