落地页

master
liuweiwen 5 years ago
parent 660d9d9550
commit 6590a35319

@ -292,23 +292,23 @@
<script src="__STATIC__/ios9/js/layer/layer.js?VerNo=20190923" type="text/javascript"></script>
<script>
$(function(){
$("body").click(function () {
$('.safari').show();
});
function isTipSafari(){
var ua = navigator.userAgent.toLowerCase();
alert(ua);
return ua.match(/MicroMessenger/i) == "micromessenger" || ua.match(/QQ/i) == "qq" || ua.match(/QQ/i) == "qq";
return ua.match(/MicroMessenger/i) == "micromessenger" || ua.match(/QQ/i) == "qq" || ua.match(/aliapp/i) == "aliapp";
}
isTipSafari();
var issafariBrowser = /Safari/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent);
console.log(issafariBrowser);
if (issafariBrowser) {
$('.safari').hide();
var isTipSafari = isTipSafari();
$("body").click(function () {
if (isTipSafari) {
$('.safari').show();
}
});
$('#go_confirm').click(function () {
if (isTipSafari) {
return;
}
layer.confirm('请您回到手机桌面查看安装包情况,<br/>并在安装完成后点击"点我去信任"进行<br/>快速信任证书即可', {
title: "请确认游戏是否已安装?",
btn: ['已安装', '取消'], //按钮
@ -318,6 +318,9 @@
});
});
$('.down-link').on('click', function () {
if (isTipSafari) {
return;
}
var downLink = $(this).attr('down-link');
// if ($('.bn-rule').length > 0) {
@ -344,6 +347,9 @@
});
$('.no-package').click(function() {
if (isTipSafari) {
return;
}
layer.msg('暂无下载', {
icon: 7,
time: 2000
@ -354,6 +360,9 @@
$("#look_more").hide();
}
$(".more").click(function(){
if (isTipSafari) {
return;
}
$("#look_more").hide();
$("#brief_introduction").css("overflow", "visible");
$("#brief_introduction").css("display", "block");
@ -380,14 +389,23 @@
};
swiperGet();
$(".download").click(function(){
if (isTipSafari) {
return;
}
$(".window").show();
document.body.style.overflow = 'hidden';
});
$(".window").click(function(){
if (isTipSafari) {
return;
}
$(".window").hide();
document.body.style.overflow = 'auto';
});
$(".gray-btn").click(function(){
if (isTipSafari) {
return;
}
event.stopPropagation();
$(".second").show();
// swiperGet();
@ -395,10 +413,16 @@
$(".window").hide();
})
$(".second").click(function(){
if (isTipSafari) {
return;
}
$(".second").hide();
document.body.style.overflow = 'auto';
})
$(".doubt").click(function(){
if (isTipSafari) {
return;
}
$(".second").show();
document.body.style.overflow = 'hidden';
// swiperGet();

Loading…
Cancel
Save