$(".detail-download").click(function() {
var u = navigator.userAgent;
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
// alert('是否是Android:' + isAndroid);
if(isAndroid == true){
window.location.href = "openwjtr://com.tyrbl.wjtr"; /***打开app的协议,有安卓同事提供***/
window.setTimeout(function(){
//window.location.href = "http://wcy.fgtrj.com/jianjie.apk"; /***打开app的协议,有安卓同事提供***/
System.Shell.execute('http://wcy.fgtrj.com/jianjie.apk');
},200);
}
//alert('是否是iOS:' + isiOS);
if(isiOS == true){
var ifr = document.createElement("iframe");
ifr.src = "openwjtr://com.tyrbl.wjtr"; /***打开app的协议,有ios同事提供***/
ifr.style.display = "none";
document.body.appendChild(ifr);
window.setTimeout(function(){
document.body.removeChild(ifr);
window.location.href = "https://itunes.apple.com/us/app/%E8%B7%A8%E5%A2%83%E4%BA%91/id1287819362?mt=8"; /***下载app的地址***/
},200)
}
});