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