Commit c90988c3 by libai

测试

parent 6e26436d
Showing with 5 additions and 1 deletions
......@@ -789,7 +789,7 @@ $(function () {
success:function(data){
//console.log('直播列表',data)
var html=[];
var myNum
var myNum=null
for(var i=0;i<data.roomList.length;i++){
var list=data.roomList[i]
if(list.roomId==sessionStorage.roomId){
......@@ -797,6 +797,10 @@ $(function () {
continue;
}
}
if(myNum==null){
window.location.href="liveRoom.html?roomId="+data.roomList[0].roomId
return;
}
if((myNum+1)!=data.roomList.length)window.location.href="liveRoom.html?roomId="+data.roomList[(myNum+1)].roomId
else window.location.href="liveRoom.html?roomId="+data.roomList[0].roomId
}
......
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