Commit c0fa93cd by libai

测试

parent 4570cf94
Showing with 54 additions and 46 deletions
...@@ -41,23 +41,26 @@ ...@@ -41,23 +41,26 @@
<script src="lib/jquery-3.1.1.min.js"></script> <script src="lib/jquery-3.1.1.min.js"></script>
<script src="layer-v3.1.0/layer/layer.js"></script> <script src="layer-v3.1.0/layer/layer.js"></script>
<script> <script>
var data = OpenInstall.parseUrlParams();//openinstall.js中提供的工具函数,解析url中的所有查询参数 $(".content-btn").on("click",function(){
new OpenInstall({ window.location.href='https://zhibocdn.lvdou66.com/apk/down/guodong.apk'
appKey : "r06f9c", })
onready : function() { // var data = OpenInstall.parseUrlParams();//openinstall.js中提供的工具函数,解析url中的所有查询参数
var m = this, button = document.getElementById("downloadButton"); // new OpenInstall({
button.style.visibility = "visible"; // appKey : "r06f9c",
/*在app已安装的情况尝试拉起app*/ // onready : function() {
m.schemeWakeup(); // var m = this, button = document.getElementById("downloadButton");
/*用户点击某个按钮时(假定按钮id为downloadButton),安装app*/ // button.style.visibility = "visible";
// /*在app已安装的情况尝试拉起app*/
// m.schemeWakeup();
// /*用户点击某个按钮时(假定按钮id为downloadButton),安装app*/
button.onclick = function() { // button.onclick = function() {
m.wakeupOrInstall(); // m.wakeupOrInstall();
return false; // return false;
} // }
} // }
}, data); // }, data);
</script> </script>
</html> </html>
\ No newline at end of file
...@@ -52,40 +52,43 @@ ...@@ -52,40 +52,43 @@
<script src="lib/jquery-3.1.1.min.js"></script> <script src="lib/jquery-3.1.1.min.js"></script>
<script> <script>
var data = OpenInstall.parseUrlParams();//openinstall.js中提供的工具函数,解析url中的所有查询参数 // var data = OpenInstall.parseUrlParams();//openinstall.js中提供的工具函数,解析url中的所有查询参数
new OpenInstall({ // new OpenInstall({
appKey : "r06f9c", // appKey : "r06f9c",
onready : function() { // onready : function() {
var m = this, button = document.getElementById("downloadButton"); // var m = this, button = document.getElementById("downloadButton");
button.style.visibility = "visible"; // button.style.visibility = "visible";
/*在app已安装的情况尝试拉起app*/ // /*在app已安装的情况尝试拉起app*/
m.schemeWakeup(); // m.schemeWakeup();
$(".banner").addClass("banner2"); // $(".banner").addClass("banner2");
/*用户点击某个按钮时(假定按钮id为downloadButton),安装app*/ // /*用户点击某个按钮时(假定按钮id为downloadButton),安装app*/
button.onclick = function() { // button.onclick = function() {
m.wakeupOrInstall(); // m.wakeupOrInstall();
return false; // 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'
layer.msg("ios版本维护中,请添加“果冻直播”公众号咨询")
}else{
window.location.href='https://a.app.qq.com/o/simple.jsp?pkgname=com.show.guodong.live'
} }
}, data); }else{
// $(".btn").on("click",function(){ if (/iphone|ipad|ipod/.test(ua)) {
// var ua = navigator.userAgent.toLowerCase(); // window.location.href='https://apps.apple.com/cn/app/id1522691256'
// if(ua.match(/MicroMessenger/i) == 'micromessenger'){ layer.msg("ios版本维护中,请添加“果冻直播”公众号咨询")
// if (/iphone|ipad|ipod/.test(ua)) { }else{
// window.location.href='https://apps.apple.com/cn/app/id1522691256' window.location.href='https://zhibocdn.lvdou66.com/apk/down/guodong.apk'
// }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> </script>
</html> </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