diff --git a/Application/Home/View/default/Home/landingPage.html b/Application/Home/View/default/Home/landingPage.html index a1ce2751f..7323130de 100644 --- a/Application/Home/View/default/Home/landingPage.html +++ b/Application/Home/View/default/Home/landingPage.html @@ -945,20 +945,16 @@ var PhoneObj = { function is_tip_safari() { - var isTipSafari = false; var ua = navigator.userAgent.toLowerCase(); - if (ua.match(/MicroMessenger/i) == "micromessenger") { - isTipSafari = true; - //$('.safari').show(); - } else if(ua.match(/QQ/i) == "qq") { - isTipSafari = true; - //$('.safari').show(); - } else if(ua.match(/dingtalk/i) == "dingtalk") { - isTipSafari = true; - //$('.safari').show(); + //判断是不是在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 false; } - return isTipSafari; + reutrn true; } + function checkSafari(){ /*var ua = navigator.userAgent.toLowerCase(); if (ua.match(/MicroMessenger/i) == "micromessenger") {