Commit de6114ce by libai

测试

parent b40495f5
Showing with 19 additions and 15 deletions
......@@ -408,6 +408,7 @@
<script>
$(function(){
var browserLang = navigator.language
if(browserLang.indexOf("zh")==-1){
$(".bottom-p-name1").text('Popular')
......@@ -528,27 +529,30 @@ $(function(){
var ua = window.navigator.userAgent.toLowerCase();
if(sessionStorage.oneLogin==1){
if (/iphone|ipad|ipod/.test(ua)) {
if(sessionStorage.type=="pwa")return;
sessionStorage.oneLogin=0
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()
}
})
if(sessionStorage.type!="pwa"){
sessionStorage.oneLogin=0
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()
}
})
}
}
}
//ios中PWA隱藏約會
if(sessionStorage.type=="pwa"){
var ua = window.navigator.userAgent.toLowerCase();
if (/iphone|ipad|ipod/.test(ua)) {
$(".bottom-nav >div").eq(2).hide()
$(".bottom-nav >div").css("width","33.3%")
$(".bottom-nav p").css("width","3.33rem")
......
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