Commit 000ae9e3 by libai

测试

parent 053f7c12
Showing with 2 additions and 1 deletions
......@@ -406,6 +406,7 @@ $(function(){
html+='<a href="https://www.footseen.xyz/room/videoRoom.html?topicId='+list.topicId+'&tag='+tagNum+'">'
html+='<li>';
html+='<div style="background: url(https://zhibocdn.yabolive.net/comm'+videoList.videos[0].cover.split('?')[0]+'?x-oss-process=video/snapshot,t_95000,f_jpg,w_342,h_0,m_fast,f_jpg)no-repeat;background-size: cover;" class="video-top-box">';
html+='<img class="videoImgOk" src="https://zhibocdn.yabolive.net/comm'+videoList.videos[0].cover.split('?')[0]+'?x-oss-process=video/snapshot,t_95000,f_jpg,w_342,h_0,m_fast,f_jpg">'
html+='<div class="video-top-shadow"></div>';
html+='<span class="video-time">'+add0(Math.floor(videoList.videos[0].duration/1000/60))+':'+add0(Math.floor(videoList.videos[0].duration/1000)%60)+'</span>';
html+='</div>';
......@@ -423,7 +424,7 @@ $(function(){
}
$(".video-more-ul").html(html);
for(var i=0;i<data.dataList.length;i++){
$(".video-top-box").eq(i).on("error",function(){
$(".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")
......
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