您好,登錄后才能下訂單哦!
<script type="text/javascript">
function checkFlag(){
var userType=navigator.userAgent;
var Agents=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"];
var flag=false;
for(var i=0;i<Agents.length;i++){
if(userType.indexOf(Agents[i])>0){
flag=true;
break;
}
}
return flag;
}
init();
function init(){
var flag=checkFlag();
if(flag){
var ua = navigator.userAgent.toLowerCase();
var isWeixin = ua.indexOf('micromessenger') != -1;
var isAndroid = ua.indexOf('android') != -1;
var isIos = (ua.indexOf('iphone') != -1) || (ua.indexOf('ipad') != -1);
if (!isWeixin) {
document.head.innerHTML = '<title>抱歉,出錯了</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0"><link rel="stylesheet" type="text/css" ;
document.body.innerHTML = '<div class="weui_msg"><div class="weui_icon_area"><i class="weui_icon_info weui_icon_msg"></i></div><div class="weui_text_area"><h5 class="weui_msg_title">請在微信客戶端打開鏈接</h5></div></div>';
}else{
window.location.href ="xxxx.html";
}
}else{
document.head.innerHTML = '<title>抱歉,出錯了,請在手機微信打開</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0"><link rel="stylesheet" type="text/css" ;
document.body.innerHTML = '<div class="weui_msg"><div class="weui_icon_area"><i class="weui_icon_info weui_icon_msg"></i></div><div class="weui_text_area"><h5 class="weui_msg_title">請在手機端微信客戶端打開鏈接</h5></div></div>';
}
}
</script>
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。