// if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|midp/i.test(navigator.userAgent)) { // //window.location = mainUrl+"mp/home.html"; //可以换成http地址 // window.location = "http://wechat.halmus.com"; // } else { // window.location = 'http://localhost:8081/#/home'; //可以换成http地址 // } if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|midp/i.test(navigator.userAgent)) { //window.location = mainUrl+"mp/home.html"; //可以换成http地址 window.location = "http://wechat.halmus.com"; } else { window.location = 'http://www.halmus.com/#/home'; //可以换成http地址 }