Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
footseen-large-website
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6203cc6b
authored
Dec 21, 2022
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
666aa800
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
32 deletions
mTest/room/liveRoom.html
mTest/room/liveRoom.html
View file @
6203cc6b
...
...
@@ -1224,42 +1224,42 @@ $(function(){
newList
+=
"]"
newList
=
JSON
.
parse
(
newList
)
console
.
log
(
newList
)
//
var bottomNum
//
var topNum
var
bottomNum
var
topNum
// for(var i=0;i
<
data
.
room
List
.
length
;
i
++
){
// var list=data.room
List[i]
//
// list.roomId
//
if(list.roomId==sessionStorage.roomId){
// if(i+1==data.room
List.length){
// BottomRoomId=data.room
List[0].roomId
//
bottomNum=0
//
}else{
// BottomRoomId=data.room
List[i+1].roomId
//
bottomNum=(i+1)
//
}
for
(
var
i
=
0
;
i
<
new
List
.
length
;
i
++
){
var
list
=
new
List
[
i
]
// list.roomId
if
(
list
.
roomId
==
sessionStorage
.
roomId
){
if
(
i
+
1
==
new
List
.
length
){
BottomRoomId
=
new
List
[
0
].
roomId
bottomNum
=
0
}
else
{
BottomRoomId
=
new
List
[
i
+
1
].
roomId
bottomNum
=
(
i
+
1
)
}
//
if(i==0){
// topRoomId=data.roomList[data.room
List.length-1].roomId
// topNum=data.room
List.length-1
//
}else{
// topRoomId=data.room
List[i-1].roomId
//
topNum=(i-1)
//
}
if
(
i
==
0
){
topRoomId
=
newList
[
new
List
.
length
-
1
].
roomId
topNum
=
new
List
.
length
-
1
}
else
{
topRoomId
=
new
List
[
i
-
1
].
roomId
topNum
=
(
i
-
1
)
}
// if(data.room
List.length==1){
//
topRoomId=list.roomId
//
BottomRoomId=list.roomId
//
bottomNum=0
//
topNum=0
//
}
if
(
new
List
.
length
==
1
){
topRoomId
=
list
.
roomId
BottomRoomId
=
list
.
roomId
bottomNum
=
0
topNum
=
0
}
//
}
//
}
//
if(topRoomId==0){
// topRoomId=data.room
List[0].roomId
// BottomRoomId=data.room
List[1].roomId
//
}
}
}
if
(
topRoomId
==
0
){
topRoomId
=
new
List
[
0
].
roomId
BottomRoomId
=
new
List
[
1
].
roomId
}
// var html=[];
// html+='
<
div
class
=
"top-bg-box"
>
<
img
src
=
"https://zhibocdn.yabolive.net/comm'+data.roomList[topNum].face+'?x-oss-process=image/resize,w_350"
>
<
/div>'
;
// html+='
<
div
class
=
"bottom-bg-box"
>
<
img
src
=
"https://zhibocdn.yabolive.net/comm'+data.roomList[bottomNum].face+'?x-oss-process=image/resize,w_350"
>
<
/div>'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment