Commit 0bd9c07b by libai

测试

parent 1e344aae
......@@ -603,3 +603,7 @@ html * {
opacity: 1;
transform: scale(1);
}
.videoImgOk {
display: none;
width: 1px;
}
......@@ -637,4 +637,8 @@
opacity: 1;
transform: scale(1);
}
}
.videoImgOk{
display: none;
width: 1px;
}
\ No newline at end of file
......@@ -724,6 +724,7 @@ $(function(){
html+='<a target="_blank" href="room/videoRoom.html?topicId='+list.topicId+'&tag='+tagNum+'">'
html+='<li>';
html+='<div data-type="'+videoList.videos[0].cover.split('?')[0]+'" style="background: url(images/layz.png)" class="video-top-box">';
html+='<img class="videoImgOk" src="">'
html+='<div class="live-cursor-shadow"></div>';
html+='<img class="play-icon" src="images/front/play-icon.png">'
html+='<div class="video-top-shadow"></div>';
......@@ -860,17 +861,22 @@ $(function(){
function layzImg(){
var iNum=$(".video-box-ul li").length-40
if(iNum<0)iNum=0
for(var i=iNum;i<$(".video-box-ul li").length;i++){
if($(".video-box-ul li .video-top-box").eq(i).attr("data-type2")==1)continue;
if(($(".video-box-ul li").eq(i).offset().top)-($(window).height()+$(document).scrollTop())<300){
$(".video-box-ul li .video-top-box").eq(i).css("background","url(https://zhibocdn.yabolive.net/comm"+$(".video-box-ul li .video-top-box").eq(i).attr("data-type")+"?x-oss-process=video/snapshot,t_90000,f_jpg,w_342,h_0,m_fast,f_jpg)no-repeat")
$(".videoImgOk").eq(i).attr("src","https://zhibocdn.yabolive.net/comm"+$(".video-box-ul li .video-top-box").eq(i).attr("data-type")+"?x-oss-process=video/snapshot,t_90000,f_jpg,w_342,h_0,m_fast,f_jpg")
$(".video-box-ul li .video-top-box").eq(i).css("background-size","cover")
$(".video-box-ul li .video-top-box").eq(i).css("background-position-y","center")
$(".video-box-ul li .video-top-box").eq(i).attr("data-type2",1)
$(".videoImgOk").eq(i).on("error",function(){
$(this).parent().css("background","url(https://app.ixiulive.com/static/footVideo/m/m"+Math.ceil(Math.random()*63)+".jpg)no-repeat")
$(this).parent().css("background-size","cover")
$(this).parent().css("background-position-y","center")
})
}
}
}
})
</script>
......
......@@ -84,6 +84,7 @@
<script src="../lib/login.js"></script>
<script>
$(function(){
var faceGoT=null
loginGo()
$.ajax({
url:$ip+'zone/userInfo/dataCard',
......@@ -114,6 +115,50 @@ $(function(){
}
})
$(".myRoom-face-exc").on("click",function(){
localStorage.face=0
layer.open({
type: 2,
title: false,
shadeClose: true,
skin: "face-exc-layer",
area: ["900px", "588px"],
content:'https://www.footseen.xyz/yazhaiTest/upload/index.html',
// content:'upload/index.html',
})
clearInterval(faceGoT)
faceGoT=setInterval(function(){
if(localStorage.face!=0){
$(".myRoom-face").attr("src",localStorage.face)
clearInterval(faceGoT)
$.ajax({
url:$ip+'user/updateInfo',
data:{
uid:localStorage.uid,
token:localStorage.token,
base64:localStorage.face,
pageID:localStorage.canvasCode,
},
type:'post',
success:function(data){
console.log('修改頭像姓名',data)
if(data.code!=1){
layer.msg(data.msg);
}
if(data.code==1){
layer.closeAll()
layer.msg("修改成功")
sessionStorage.faceGo=0
setTimeout(function(){
window.location.reload()
},1000)
}
}
})
}
},500)
})
})
</script>
</html>
\ No newline at end of file
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