Commit b6e89b8c by libai

测试

parent aec3a384
...@@ -819,3 +819,18 @@ ...@@ -819,3 +819,18 @@
right: 0.3rem; right: 0.3rem;
top: 0.25rem; top: 0.25rem;
} }
.layer-ios {
display: none;
width: 7.3rem;
height: 12.24rem;
background: url(../room/images/layer-ios.png) no-repeat;
background-size: 100% 100%;
position: relative;
}
.layer-ios .layer-ios-close {
width: 0.8rem;
height: 0.8rem;
position: absolute;
right: 0;
top: 0;
}
...@@ -839,3 +839,18 @@ ...@@ -839,3 +839,18 @@
right: 0.3rem; right: 0.3rem;
top: 0.25rem; top: 0.25rem;
} }
.layer-ios{
display: none;
width: 7.3rem;
height: 12.24rem;
background: url(../room/images/layer-ios.png)no-repeat;
background-size: 100% 100%;
position: relative;
.layer-ios-close{
width: 0.8rem;
height: 0.8rem;
position: absolute;
right: 0;
top: 0;
}
}
\ No newline at end of file
...@@ -1604,7 +1604,7 @@ $(function(){ ...@@ -1604,7 +1604,7 @@ $(function(){
if(list.currency!=5)continue; if(list.currency!=5)continue;
html+='<li data-type="'+list.gid+'">'; html+='<li data-type="'+list.gid+'">';
if(list.subimg!=undefined)html+='<img style="width:0.6rem" class="subimg" src="https://zhibocdn.yabolive.net/comm'+list.subimg+'?x-oss-process=image/resize,h_30">' if(list.subimg!=undefined)html+='<img style="width:0.45rem" class="subimg" src="https://zhibocdn.yabolive.net/comm'+list.subimg+'?x-oss-process=image/resize,h_30">'
html+='<img src="https://zhibocdn.yabolive.net/comm' + list.resource + '?x-oss-process=image/resize,w_100" alt="">'; html+='<img src="https://zhibocdn.yabolive.net/comm' + list.resource + '?x-oss-process=image/resize,w_100" alt="">';
html+='<p class="gift-p1">'+list.name+'</p>'; html+='<p class="gift-p1">'+list.name+'</p>';
html+='<p class="gift-p2"><img src="images/dew.png" alt="">'+list.price+'</p>'; html+='<p class="gift-p2"><img src="images/dew.png" alt="">'+list.price+'</p>';
......
...@@ -57,6 +57,9 @@ ...@@ -57,6 +57,9 @@
</head> </head>
<body style="background: #F3F3F3"> <body style="background: #F3F3F3">
<div class="layer-shadow"></div> <div class="layer-shadow"></div>
<div class="layer-ios">
<div class="layer-ios-close"></div>
</div>
<div class="layer-tag-box"> <div class="layer-tag-box">
<div class="layer-tag-title">選擇分類</div> <div class="layer-tag-title">選擇分類</div>
<ul class="layer-tag-ul"> <ul class="layer-tag-ul">
...@@ -379,8 +382,32 @@ $(function(){ ...@@ -379,8 +382,32 @@ $(function(){
$(".layer-shadow").hide() $(".layer-shadow").hide()
}) })
$(".bottom-nav-btn").on("click",function(){ $(".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()
}
})
}
} 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'
}
} catch (e) {
}
}) })
$(".bottom-close-btn").on("click",function(){ $(".bottom-close-btn").on("click",function(){
$(".bottom-nav").fadeOut(350) $(".bottom-nav").fadeOut(350)
...@@ -444,7 +471,7 @@ $(function(){ ...@@ -444,7 +471,7 @@ $(function(){
tag:tagNum, tag:tagNum,
}, },
success:function(data){ success:function(data){
// //// console.log('獲取貼文列表',data) // console.log('獲取貼文列表',data)
var html=[]; var html=[];
var topList=JSON.parse(data.dataList[0].content) var topList=JSON.parse(data.dataList[0].content)
//// console.log(topList) //// console.log(topList)
......
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