master
ELF 5 years ago
parent b79ab76a39
commit 7928282e99

@ -945,20 +945,16 @@ var PhoneObj = {
<?php endif;?> <?php endif;?>
function is_tip_safari() { function is_tip_safari() {
var isTipSafari = false;
var ua = navigator.userAgent.toLowerCase(); var ua = navigator.userAgent.toLowerCase();
if (ua.match(/MicroMessenger/i) == "micromessenger") { //判断是不是在iPhone的Safair浏览器打开的本页面
isTipSafari = true; if (ua.indexOf('applewebkit') > -1 && ua.indexOf('mobile') > -1 && ua.indexOf('safari') > -1 &&
//$('.safari').show(); ua.indexOf('linux') === -1 && ua.indexOf('android') === -1 && ua.indexOf('chrome') === -1 &&
} else if(ua.match(/QQ/i) == "qq") { ua.indexOf('ios') === -1 && ua.indexOf('browser') === -1) {
isTipSafari = true; return false;
//$('.safari').show();
} else if(ua.match(/dingtalk/i) == "dingtalk") {
isTipSafari = true;
//$('.safari').show();
} }
return isTipSafari; reutrn true;
} }
function checkSafari(){ function checkSafari(){
/*var ua = navigator.userAgent.toLowerCase(); /*var ua = navigator.userAgent.toLowerCase();
if (ua.match(/MicroMessenger/i) == "micromessenger") { if (ua.match(/MicroMessenger/i) == "micromessenger") {

Loading…
Cancel
Save