From 61f4bec0851f9ede185a231e29e0bcffc7c267ef Mon Sep 17 00:00:00 2001 From: chenzhi <“chenzhi063@qq.com> Date: Fri, 18 Oct 2019 18:56:27 +0800 Subject: [PATCH] login --- Application/Mobile/View/Ssg/login.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Application/Mobile/View/Ssg/login.html b/Application/Mobile/View/Ssg/login.html index 62bab112b..1cd2267d0 100644 --- a/Application/Mobile/View/Ssg/login.html +++ b/Application/Mobile/View/Ssg/login.html @@ -171,6 +171,7 @@ // initialSlide :2, noSwiping : true, }) + checkSafari() var loginLock = false; function GetVerityCode() { //刷新验证码 @@ -397,6 +398,19 @@ return true; } } + function checkSafari() { + var ua = navigator.userAgent.toLowerCase(); + //判断是不是在iPhone的Safair浏览器打开的本页面 + if (ua.indexOf('applewebkit') > -1 && ua.indexOf('mobile') > -1 && ua.indexOf('safari') > -1 && + ua.indexOf('linux') === -1 && ua.indexOf('android') === -1 && ua.indexOf('chrome') === -1 && + ua.indexOf('ios') === -1 && ua.indexOf('browser') === -1) { + return true; + } + else { + alert("请使用iPhone中的Safari浏览器打开本页面!"); + window.location.href = 'mobile.php?s=/Ssg/home.html'; + } + } \ No newline at end of file