Commit 1bf312b3 by libai

测试

parent 42f037bf
...@@ -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
...@@ -175,15 +175,15 @@ ...@@ -175,15 +175,15 @@
</div> </div>
<div class="zone-car-box"> <div class="zone-car-box">
<span>座駕</span> <span>座駕</span>
<span class="zone-car-content"><img src="https://zhibocdn.yabolive.net/comm/motroing/e01599cbf6964f51b62555540e0d202f.png?x-oss-process=image/resize,w_45" alt=""> <span>&gt;</span></span> <span class="zone-car-content"> <span>&gt;</span></span>
</div> </div>
<div class="zone-medal-box"> <div class="zone-medal-box">
<span>勛章</span> <span>勛章</span>
<span> <span>
<ul class="zone-medal-ul"> <ul class="zone-medal-ul">
<!-- <li><img src="https://zhibocdn.yabolive.net/comm/img/medal/wzzm1.png?x-oss-process=image/resize,w_45" alt=""></li>
<li><img src="https://zhibocdn.yabolive.net/comm/img/medal/wzzm1.png?x-oss-process=image/resize,w_45" alt=""></li> <li><img src="https://zhibocdn.yabolive.net/comm/img/medal/wzzm1.png?x-oss-process=image/resize,w_45" alt=""></li>
<li><img src="https://zhibocdn.yabolive.net/comm/img/medal/wzzm1.png?x-oss-process=image/resize,w_45" alt=""></li> <li><img src="https://zhibocdn.yabolive.net/comm/img/medal/wzzm1.png?x-oss-process=image/resize,w_45" alt=""></li> -->
<li><img src="https://zhibocdn.yabolive.net/comm/img/medal/wzzm1.png?x-oss-process=image/resize,w_45" alt=""></li>
</ul> </ul>
<span class="zone-arrow">&gt;</span> <span class="zone-arrow">&gt;</span>
</span> </span>
...@@ -407,13 +407,27 @@ ...@@ -407,13 +407,27 @@
<script> <script>
$(function(){ $(function(){
//判斷渠道 //判斷渠道
newLiveList(1) liveList(1)
if(sessionStorage.type=="pwa"){
$.ajax({
url:$ip+'activeLog/webActive',
data:{
activeType:8,
pageID:localStorage.canvasCode,
},
success:function(data){
}
})
$(".bottom-nav").css("height","1.8rem")
}
if(sessionStorage.pmt!=undefined&&sessionStorage.pmt!='undefined'){ if(sessionStorage.pmt!=undefined&&sessionStorage.pmt!='undefined'){
if(sessionStorage.pmt=="other"){ if(sessionStorage.pmt=="other"){
$.ajax({ $.ajax({
url:$ip+'activeLog/h5Active', url:$ip+'activeLog/h5Active',
data:{ data:{
pmt:'other', pmt:'ftsH5',
pageID:localStorage.canvasCode pageID:localStorage.canvasCode
}, },
success:function(data){ success:function(data){
...@@ -723,7 +737,8 @@ $(function(){ ...@@ -723,7 +737,8 @@ $(function(){
success:function(data){ success:function(data){
} }
}) })
window.open("https://www.footseen.com/footseen/phonepay/applepay.html?lang=2&gofrom=web&cidStr="+sessionStorage.myCid+"&os=h5&appversion=7") window.open("https://www.footseen.com/footseen/phonepay/applepay.html?lang=2&gofrom=web&cidStr="+sessionStorage.myCid+"&os=h5&appversion=7&osStr=h5")
}) })
$(".search-back").on("click",function(){ $(".search-back").on("click",function(){
...@@ -793,7 +808,8 @@ $(function(){ ...@@ -793,7 +808,8 @@ $(function(){
success:function(data){ success:function(data){
} }
}) })
window.open("https://www.footseen.com/footseen/phonepay/applepay.html?lang=2&gofrom=web&cidStr="+sessionStorage.myCid+"&uid="+localStorage.uid+"&token="+localStorage.token+"&os=h5&appversion=7") window.open("https://www.footseen.com/footseen/phonepay/applepay.html?lang=2&gofrom=web&cidStr="+sessionStorage.myCid+"&uid="+localStorage.uid+"&token="+localStorage.token+"&os=h5&appversion=7&osStr=h5")
}) })
$(".right-list-box-face").unbind("click").on("click",function(){ $(".right-list-box-face").unbind("click").on("click",function(){
$("body").css("background","rgb(217, 217, 217)") $("body").css("background","rgb(217, 217, 217)")
...@@ -859,8 +875,7 @@ $(function(){ ...@@ -859,8 +875,7 @@ $(function(){
}) })
} }
function liveList(e){
function newLiveList(e){
$.ajax({ $.ajax({
url:$ip+'frontPage/queryLiveUsers/v2', url:$ip+'frontPage/queryLiveUsers/v2',
data:{ data:{
...@@ -913,7 +928,6 @@ $(function(){ ...@@ -913,7 +928,6 @@ $(function(){
} }
}) })
} }
function layzGo(){ function layzGo(){
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
if ('serviceWorker' in navigator) { if ('serviceWorker' in navigator) {
navigator.serviceWorker navigator.serviceWorker
.register('/mobile/sw.js?V=2022120701') .register('/mobile/sw.js?V=2022122201')
.then(() => { console.log('Service Worker Registered'); }); .then(() => { console.log('Service Worker Registered'); });
} }
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
} }
else{ else{
$ip='http://cpapitest.yabolive.net:81/' $ip='http://cpapitest.yabolive.net:81/'
// $ip = "https://cpapi.footseen.xyz/";
$ip2="http://ceshi.yabolive.tv/web" $ip2="http://ceshi.yabolive.tv/web"
$ws = "ws://47.242.178.187:12308/" $ws = "ws://47.242.178.187:12308/"
......
...@@ -190,7 +190,7 @@ $(function(){ ...@@ -190,7 +190,7 @@ $(function(){
var list=data.topic; var list=data.topic;
var details=JSON.parse(list.content) var details=JSON.parse(list.content)
$("title").text(details.title) $("title").text(details.title)
$(".Thumbnail").attr("content",'https://zhibocdn.yabolive.net/comm'+details.videos[0].cover.split('?')[0]+'?x-oss-process=video/snapshot,t_100000,f_jpg,w_1280,h_0,m_fast,f_jpg') $(".Thumbnail").attr("content",'https://zhibocdn.yabolive.net/comm'+details.videos[0].cover.split('?')[0]+'?x-oss-process=video/snapshot,t_94000,f_jpg,w_1280,h_0,m_fast,f_jpg')
var ua = window.navigator.userAgent.toLowerCase(); var ua = window.navigator.userAgent.toLowerCase();
if (/iphone|ipad|ipod/.test(ua)) { if (/iphone|ipad|ipod/.test(ua)) {
var iosUrl=details.videos[0].url.replace("flv","mp4") var iosUrl=details.videos[0].url.replace("flv","mp4")
...@@ -342,7 +342,7 @@ $(function(){ ...@@ -342,7 +342,7 @@ $(function(){
// html+='</div>'; // html+='</div>';
html+='<div class="add-video-img">'; html+='<div class="add-video-img">';
html+='<img class="play-icon" src="images/play-icon.png" alt="">'; html+='<img class="play-icon" src="images/play-icon.png" alt="">';
html+='<img title="'+keyEArr[Math.floor(Math.random()*200)]+'" class="bg-img" src="https://zhibocdn.yabolive.net/comm'+videoList.videos[0].cover.split('?')[0]+'?x-oss-process=video/snapshot,t_100000,f_jpg,w_400,h_0,m_fast,f_jpg">' html+='<img title="'+keyEArr[Math.floor(Math.random()*200)]+'" class="bg-img" src="https://zhibocdn.yabolive.net/comm'+videoList.videos[0].cover.split('?')[0]+'?x-oss-process=video/snapshot,t_94000,f_jpg,w_400,h_0,m_fast,f_jpg">'
html+='</div>'; html+='</div>';
html+='<div class="add-video-text-box">'; html+='<div class="add-video-text-box">';
html+='<p>'+videoList.title+'</p>'; html+='<p>'+videoList.title+'</p>';
...@@ -390,7 +390,7 @@ $(function(){ ...@@ -390,7 +390,7 @@ $(function(){
html+='<img src="https://zhibocdn.yabolive.net/comm'+list.face+'?x-oss-process=image/resize,w_80" alt="">'; html+='<img src="https://zhibocdn.yabolive.net/comm'+list.face+'?x-oss-process=image/resize,w_80" alt="">';
html+='<p>'+list.nickname+'</p>'; html+='<p>'+list.nickname+'</p>';
html+='</div>'; html+='</div>';
html+='<div style="background: url(https://zhibocdn.yabolive.net/comm'+videoList.videos[0].cover.split('?')[0]+'?x-oss-process=video/snapshot,t_100000,f_jpg,w_400,h_0,m_fast,f_jpg)no-repeat;background-size: cover; background-position-y: center;" class="add-video-img">'; html+='<div style="background: url(https://zhibocdn.yabolive.net/comm'+videoList.videos[0].cover.split('?')[0]+'?x-oss-process=video/snapshot,t_94000,f_jpg,w_400,h_0,m_fast,f_jpg)no-repeat;background-size: cover; background-position-y: center;" class="add-video-img">';
html+='<img class="play-icon" src="images/play-icon.png" alt="">'; html+='<img class="play-icon" src="images/play-icon.png" alt="">';
html+='</div>'; html+='</div>';
html+='<div class="add-video-text-box">'; html+='<div class="add-video-text-box">';
......
...@@ -1797,3 +1797,15 @@ ...@@ -1797,3 +1797,15 @@
margin-top: -1rem; margin-top: -1rem;
z-index: 500; z-index: 500;
} }
.sound-tips {
width: 3.26rem;
height: 2.02rem;
background: url(../images/sound-tips.png) no-repeat;
background-size: 100% 100%;
position: absolute;
z-index: 1000;
bottom: 1rem;
left: 5.5rem;
pointer-events: none;
display: none;
}
...@@ -1852,3 +1852,15 @@ ...@@ -1852,3 +1852,15 @@
margin-top: -1rem; margin-top: -1rem;
z-index: 500; z-index: 500;
} }
.sound-tips{
width: 3.26rem;
height: 2.02rem;
background: url(../images/sound-tips.png) no-repeat;
background-size: 100% 100%;
position: absolute;
z-index: 1000;
bottom: 1rem;
left: 5.5rem;
pointer-events: none;
display: none;
}
\ No newline at end of file
...@@ -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">
...@@ -378,9 +381,36 @@ $(function(){ ...@@ -378,9 +381,36 @@ $(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 downNum=Math.ceil(Math.random()*3) var ua = window.navigator.userAgent.toLowerCase();
window.location.href='download/download.html?qd=ftsBH5SY' try {
if (/iphone|ipad|ipod/.test(ua)) {
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'
}
} catch (e) {
}
}) })
$(".bottom-close-btn").on("click",function(){ $(".bottom-close-btn").on("click",function(){
$(".bottom-nav").fadeOut(350) $(".bottom-nav").fadeOut(350)
...@@ -444,7 +474,7 @@ $(function(){ ...@@ -444,7 +474,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