var urls = { 'android': 'https://sd66.7app86.com/apk/bty_seo6007_release.apk', 'ios': 'https://sd66.7app86.com/plist/ipa_seo6007.plist', 'h5': 'https://www.7hgk86.com:9511/', 'pc': 'https://www.7hwv86.com:9511/', 'app': 'https://wsyoo.vhaepsba.com/api/c/ap33nje5', }; // 私人 var _hmt = _hmt || []; (function () { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?7d97fb05038f9820af3a8ce54059d87e"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); // pc 直接跳走 function is_pc() { var u = navigator.userAgent; var versions = { mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端 ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端 android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器 iPhone: u.indexOf('iPhone') > -1, //是否为iPhone或者QQHD浏览器 iPad: u.indexOf('iPad') > -1, //是否iPad is_ios: u.indexOf('iOS') > -1, //是否ios ipod: u.indexOf('iPod') > -1, //是否ipod symbian: u.indexOf('SymbianOS') > -1, //是否SymbianOS windows_phone: u.indexOf('Windows Phone') > -1, //是否Windows Phone trident: u.indexOf('Trident') > -1, //IE内核 presto: u.indexOf('Presto') > -1, //opera内核 webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核 gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核 webApp: u.indexOf('Safari') == -1, //是否web应该程序,没有头部与底部 weixin: u.indexOf('MicroMessenger') > -1, //是否微信 qq: u.match(/\sQQ/i) == " qq" //是否QQ } if (versions.mobile || versions.ios || versions.android || versions.iPhone || versions.iPad || versions.is_ios || versions.ipod || versions.symbian || versions.windows_phone) { return false } else { return true } } if (is_pc()) { window.setTimeout("window.location='" + urls.pc + "'", 500); } else { // window.setTimeout("window.location='" + urls.h5 + "'", 1000); } //判断访问终端 function down_app() { var u = navigator.userAgent, isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1, isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) if (isAndroid) { window.location.href = urls.android; } else if (isiOS) { // window.location.href = 'itms-services://?action=download-manifest&url=' + urls.ios; window.location.href = urls.app } else { window.location.href = urls.h5 } } function jump_h5() { window.location.href = urls.h5 return false } // js推送 (function () { var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();