/*ios和安卓跳转 js*/
$(function(){
var u = navigator.userAgent;
var ua = navigator.userAgent.toLowerCase();
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
var isiOS = !!u.match(/(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
if(ua.match(/MicroMessenger/i)=="micromessenger") { //微信内置浏览器+应用宝链接
$(".go").bind('touchstart', function (event) {
//跳转到下载地址 这块我写的是安卓下载地址
window.location.href='http://tstatics.iyuwan.com/files/apk/201605/Iyuwan.apk'
});
}else{
if(isiOS){
$(".go").bind('touchstart', function (event) {
//跳转到ios下载地址
window.location.href='https://appsto.re/cn/KG6P2.i'
});
}else if(isAndroid){
$(".go").bind('touchstart', function (event) {
window.location.href='http://tstatics.iyuwan.com/files/apk/201605/Iyuwan.apk'
});
}else{ //PC 端
$(".go").click(function(){
//跳转到andriod下载地址
window.location.href='http://tstatics.iyuwan.com/files/apk/201605/Iyuwan.apk'
});
}
}
});