Commit 91f1378d by libai

测试

parent e1ac58a3
Showing with 4 additions and 0 deletions
...@@ -1314,6 +1314,7 @@ $(function(){ ...@@ -1314,6 +1314,7 @@ $(function(){
success:function(data){ success:function(data){
// console.log('人氣榜单',data) // console.log('人氣榜单',data)
var html=[]; var html=[];
var myGoing=false
for(var i=0;i<data.rankList.length;i++){ for(var i=0;i<data.rankList.length;i++){
var list=data.rankList[i] var list=data.rankList[i]
html+='<li>'; html+='<li>';
...@@ -1325,7 +1326,9 @@ $(function(){ ...@@ -1325,7 +1326,9 @@ $(function(){
html+='</div>'; html+='</div>';
html+='</li>'; html+='</li>';
if(list.uid==sessionStorage.roomId){ if(list.uid==sessionStorage.roomId){
myGoing=true;
var html2=[] var html2=[]
html2+='<div class="bottom-mc-hot-nav1">'+(i+1)+'</div>'; html2+='<div class="bottom-mc-hot-nav1">'+(i+1)+'</div>';
html2+='<div class="bottom-mc-hot-nav2">'; html2+='<div class="bottom-mc-hot-nav2">';
html2+='<img class="bottom-mc-face" src="https://zhibocdn.yabolive.net/comm'+list.face+'?x-oss-process=image/resize,w_100" alt="">'; html2+='<img class="bottom-mc-face" src="https://zhibocdn.yabolive.net/comm'+list.face+'?x-oss-process=image/resize,w_100" alt="">';
...@@ -1336,6 +1339,7 @@ $(function(){ ...@@ -1336,6 +1339,7 @@ $(function(){
} }
} }
$(".hot-list-ul").html(html) $(".hot-list-ul").html(html)
if(myGoing==false)$(".hot-list-ul").css("height","9.6rem")
} }
}) })
} }
......
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