master
ELF 5 years ago
parent b79ab76a39
commit 7928282e99

@ -945,20 +945,16 @@ var PhoneObj = {
<?php endif;?>
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") {

Loading…
Cancel
Save