安卓app和苹果app共用一个二维码
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>app下载</title>
<script type="text/javascript">
/*
* 智能机浏览器版本信息:
*
*/
var browser = {
versions: function() {
var u = ,
app = ;
return { //移动终端浏览器版本信息
trident: ('Trident') > -1, //IE内核
presto: ('Presto') > -1, //opera内核
webKit: ('AppleWebKit') > -1, //苹果、谷歌内核
gecko: ('Gecko') > -1 && ('KHTML') == -1, //火狐内核
mobile: !!(/AppleWebKit.*Mobile.*/) || !!(/AppleWebKit/), //是否为移动终端
ios: !!(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
android: ('Android') > -1 || ('Linux') > -1, //android终端或者uc浏览器
iPhone: ('iPhone') > -1 || ('Mac') > -1, //是否为iPhone或者QQHD浏览器
iPad: ('iPad') > -1, //是否iPad
webApp: ('Safari') == -1 //是否web应该程序,没有头部与底部
};
}(),
language: ( || ).toLowerCase()
}
if ( || || ) {
= "/app/id118005xxx"; //改地址放入IOS跳转链接
} else if () { //该地址放入Android下载包链接
= "http://192.168.0.123:9010/hcgj/static/hcgjapk/hcgj_v2.0.";
}
// ("语言版本: " + );
// (" 是否为移动终端: " + );
// (" ios终端: " + );
// (" android终端: " + );
// (" 是否为iPhone: " + );
// (" 是否iPad: " + );
// ();
</script>
</head>
<body>
</body>
</html>