Commit 42f037bf by libai

测试

parent b6e89b8c
Showing with 19 additions and 16 deletions
......@@ -381,26 +381,29 @@ $(function(){
$(".layer-tag-box").css("top","-12rem")
$(".layer-shadow").hide()
})
var ua = window.navigator.userAgent.toLowerCase();
if (/iphone|ipad|ipod/.test(ua)) {
if(sessionStorage.type=='pwa'){
$(".bottom-nav").hide()
}
}
$(".bottom-nav-btn").on("click",function(){
var ua = window.navigator.userAgent.toLowerCase();
try {
if (/iphone|ipad|ipod/.test(ua)) {
if(sessionStorage.type=='pwa'){
$(".bottom-nav").hide()
}else{
layer.open({
type: 1,
title: false,
shadeClose: true,
skin: "yourclass5",
area: ["7.3rem", "12.24rem"],
content: $(".layer-ios"),
end: function () {
$(".layui-layer-shade").hide()
layer.closeAll()
}
})
}
layer.open({
type: 1,
title: false,
shadeClose: true,
skin: "yourclass5",
area: ["7.3rem", "12.24rem"],
content: $(".layer-ios"),
end: function () {
$(".layui-layer-shade").hide()
layer.closeAll()
}
})
} else{
var downNum=Math.ceil(Math.random()*3)
window.location.href='download/download.html?qd=ftsBH5SY'
......
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