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
b7b483d7
authored
Dec 22, 2022
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
27aedfd5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
12 deletions
live.html
live.html
View file @
b7b483d7
...
...
@@ -211,27 +211,43 @@ $(function(){
},
success
:
function
(
data
){
// console.log('直播列表',data)
hotList
=
data
if
(
data
.
code
==-
5008
){
setTimeout
(
function
()
{
liveList
(
e
,
type
)
},
500
);
return
;
var
newList
=
''
newList
+=
'['
var
j
=
0
for
(
var
i
=
0
;
i
<
data
.
normalRoomList
.
length
;
i
++
){
var
list
=
data
.
normalRoomList
[
i
]
if
(
i
%
2
==
0
&&
i
!=
0
){
if
(
data
.
vipRoomList
[
j
]
!=
undefined
){
list2
=
data
.
vipRoomList
[
j
]
if
(
i
==
data
.
normalRoomList
.
length
-
1
)
newList
+=
(
','
+
JSON
.
stringify
(
list2
))
else
newList
+=
(
JSON
.
stringify
(
list2
)
+
','
)
j
++
;
}
}
if
(
i
!=
data
.
normalRoomList
.
length
-
1
)
newList
+=
(
JSON
.
stringify
(
list
)
+
','
)
else
newList
+=
(
JSON
.
stringify
(
list
))
}
newList
+=
"]"
newList
=
JSON
.
parse
(
newList
)
hotList
=
newList
console
.
log
(
newList
)
var
html
=
[];
if
(
type
==
1
){
if
(
$
(
"body"
).
width
().
toString
().
split
(
"p"
)[
0
]
>
1440
&&
$
(
"body"
).
width
().
toString
().
split
(
"p"
)[
0
]
<
2400
)
listNum
=
10
else
if
(
$
(
"body"
).
width
().
toString
().
split
(
"p"
)[
0
]
>
2400
)
listNum
=
14
else
listNum
=
8
}
else
listNum
=
data
.
room
List
.
length
else
listNum
=
new
List
.
length
for
(
var
i
=
0
;
i
<
listNum
;
i
++
){
if
(
data
.
room
List
[
i
]
==
undefined
)
break
;
var
list
=
data
.
room
List
[
i
]
if
(
new
List
[
i
]
==
undefined
)
break
;
var
list
=
new
List
[
i
]
html
+=
'
<
li
>
';
html+='
<
a
target
=
"_blank"
rel
=
"opener"
href
=
"
https://www.footseen.xyz/
room/liveRoom.html?roomId='+list.roomId+'"
><
div
style
=
"background: url(https://zhibocdn.yabolive.net/comm'+list.face.split('?')[0]+'?x-oss-process=image/resize,w_368) no-repeat;background-size: cover;"
class
=
"live-top-box"
>
';
if(list.liveScope==3&&list.selfLock==1)html+='
<
img
class
=
"lock"
src
=
"images/Lock-
ok.png
"
>
';
else if(list.liveScope==3&&list.selfLock==0)html+='
<
img
class
=
"lock"
src
=
"images/Lock-no.png"
>
';
html+='
<
a
target
=
"_blank"
rel
=
"opener"
href
=
"room/liveRoom.html?roomId='+list.roomId+'"
><
div
style
=
"background: url(https://zhibocdn.yabolive.net/comm'+list.face.split('?')[0]+'?x-oss-process=image/resize,w_368) no-repeat;background-size: cover;"
class
=
"live-top-box"
>
';
if(list.liveScope==3&&list.selfLock==1)html+='
<
img
class
=
"lock"
src
=
"images/Lock-
no.png?v=2022102001
"
>
';
else if(list.liveScope==3&&list.selfLock==0)html+='
<
img
class
=
"lock"
src
=
"images/Lock-no.png
?v=2022102001
"
>
';
html+='
<
p
class
=
"introduce"
>
'+list.introduce+'
<
/p>
'
html
+=
'
<
div
class
=
"live-cursor-shadow"
><
/div>'
;
html
+=
'
<
img
class
=
"live-icon"
src
=
"images/front/live.webp"
alt
=
"美女直播"
>
';
...
...
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