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) { window.location.href="/xiye_/home/wash/index.html"; }else{ window.location.href="/xiye_/phone/index/index.html"; } if (!isAndroid) { window.location.href="/xiye_/home/wash/index.html"; }else{ window.location.href="/xiye_/phone/index/index.html"; } if (!isIos) { window.location.href="/xiye_/home/wash/index.html"; }else{ window.location.href="/xiye_/phone/index/index.html"; }