Commit 23a32b3d by libai

测试

parent 307168ec
Showing with 36 additions and 17 deletions
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8"/>
<script type="text/javascript" charset="UTF-8" src="//res.cdn.openinstall.io/openinstall.js"></script>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
......@@ -46,7 +46,7 @@
<body style="background: #FEF09D;">
<div class="banner">
<a href="login.html"><span class="Recharge">充值<span style="font-weight: 700;font-family:'黑体'">&gt;&gt;</span></span></a>
<div class="btn"></div>
<div id="downloadButton" class="btn"></div>
</div>
<div class="Safari">
<img src="images/Safari.png" alt="">
......@@ -55,21 +55,39 @@
<script src="lib/jquery-3.1.1.min.js"></script>
<script>
$(".btn").on("click",function(){
var ua = navigator.userAgent.toLowerCase();
if(ua.match(/MicroMessenger/i) == 'micromessenger'){
if (/iphone|ipad|ipod/.test(ua)) {
window.location.href='https://apps.apple.com/cn/app/id1522691256'
}else{
window.location.href='https://a.app.qq.com/o/simple.jsp?pkgname=com.show.guodong.live'
}
}else{
if (/iphone|ipad|ipod/.test(ua)) {
window.location.href='https://apps.apple.com/cn/app/id1522691256'
}else{
window.location.href='https://zhibocdn.ishuaji.cn/apk/down/guodong-1.0.0-gdgw.apk'
var data = OpenInstall.parseUrlParams();//openinstall.js中提供的工具函数,解析url中的所有查询参数
new OpenInstall({
appKey : "r06f9c",
onready : function() {
var m = this, button = document.getElementById("downloadButton");
button.style.visibility = "visible";
/*在app已安装的情况尝试拉起app*/
m.schemeWakeup();
/*用户点击某个按钮时(假定按钮id为downloadButton),安装app*/
button.onclick = function() {
m.wakeupOrInstall();
return false;
}
}
}
})
}, data);
// $(".btn").on("click",function(){
// var ua = navigator.userAgent.toLowerCase();
// if(ua.match(/MicroMessenger/i) == 'micromessenger'){
// if (/iphone|ipad|ipod/.test(ua)) {
// window.location.href='https://apps.apple.com/cn/app/id1522691256'
// }else{
// window.location.href='https://a.app.qq.com/o/simple.jsp?pkgname=com.show.guodong.live'
// }
// }else{
// if (/iphone|ipad|ipod/.test(ua)) {
// window.location.href='https://apps.apple.com/cn/app/id1522691256'
// }else{
// window.location.href='https://zhibocdn.ishuaji.cn/apk/down/guodong-1.0.0-gdgw.apk'
// }
// }
// })
</script>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment