Commit 42f037bf by libai

测试

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