落地页

master
liuweiwen 5 years ago
parent 8c3278975e
commit 24747f1ba0

@ -17,7 +17,7 @@
<link rel="stylesheet" type="text/css" href="__CSS__/index2.css"> <link rel="stylesheet" type="text/css" href="__CSS__/index2.css">
<title>{$game['relation_game_name']}</title> <title>{$game['relation_game_name']}</title>
</head> </head>
<body> <body onclick="checkSafari()">
<style> <style>
.layui-layer-btn0 { .layui-layer-btn0 {
font-size: 18px; font-size: 18px;
@ -292,19 +292,37 @@
<script src="__STATIC__/ios9/js/layer/layer.js?VerNo=20190923" type="text/javascript"></script> <script src="__STATIC__/ios9/js/layer/layer.js?VerNo=20190923" type="text/javascript"></script>
<script> <script>
$(function(){ $(function(){
var isTipSafari = false; var isTipSafari = false;
var ua = navigator.userAgent.toLowerCase(); var ua = navigator.userAgent.toLowerCase();
if (ua.match(/MicroMessenger/i) == "micromessenger") { if (ua.match(/MicroMessenger/i) == "micromessenger") {
alert(111);
isTipSafari = true; isTipSafari = true;
} else if(ua.match(/QQ/i) == "qq") { } else if(ua.match(/QQ/i) == "qq") {
alert(222);
isTipSafari = true; isTipSafari = true;
} else if(ua.match(/aliapp/i) == "aliapp") { } else if(ua.match(/aliapp/i) == "aliapp") {
alert(333);
isTipSafari = true; isTipSafari = true;
} else { } else {
isTipSafari = false isTipSafari = false
} }
$(document).on('click','html',function(){ isTipSafari = true;
alert(isTipSafari);
function checkSafari(){
alert(888);
if (isTipSafari) {
console.log(456);
$(".safari").css("position", "fixed");
$('.safari').show();
}
}
$('html').click(function(){
console.log(123);
if (isTipSafari) { if (isTipSafari) {
console.log(456);
$(".safari").css("position", "fixed"); $(".safari").css("position", "fixed");
$('.safari').show(); $('.safari').show();
} }

Loading…
Cancel
Save