<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="gb2312" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<script>
function is_weixin(){
var ua = navigator.userAgent.toLowerCase();
if(ua.match(/MicroMessenger/i)=="micromessenger") {
return true;
} else {
return false;
}
}
var wx=is_weixin();
if(wx){
document.write('<%
Response.Write("请用浏览器打开<br>"+HttpContext.Current.Request.Url);
//Response.Redirect("http://www.jieshanghui168.com/down/jieshanghui.apk")
%>');
}else{
self.location='http://www.jieshanghui168.com/down/jieshanghui.apk';
<%
//Response.Redirect("http://www.jieshanghui168.com/down/jieshanghui.apk")
%>
}
/* var ua = navigator.userAgent.toLowerCase();//获取判断用的对象
if (ua.match(/MicroMessenger/i) == "MicroMessenger") {
//在微信中打开
document.write('<%
Response.Write("请用浏览器打开<br>"+HttpContext.Current.Request.Url);
//Response.Redirect("http://www.jieshanghui168.com/down/jieshanghui.apk")
%>');
}
if (ua.match(/WeiBo/i) == "weibo") {
document.write('//在新浪微博客户端打开');
}
if (ua.match(/QQ/i) == "qq") {
document.write('//在QQ空间打开');
}
if (browser.versions.ios) {
document.write(' //是否在IOS浏览器打开');
}
if(browser.versions.android){
document.write('//是否在安卓浏览器打开');
}
} else {
Document.Write('//否则就是PC浏览器打开');
}*/
</script>
</body>
</html>