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
666aa800
authored
Dec 21, 2022
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
9e11cb8d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
46 deletions
mTest/index.html
mTest/room/liveRoom.html
mTest/index.html
View file @
666aa800
...
...
@@ -407,7 +407,6 @@
<script>
$
(
function
(){
//判斷渠道
liveList
(
1
)
newLiveList
(
1
)
if
(
sessionStorage
.
pmt
!=
undefined
&&
sessionStorage
.
pmt
!=
'undefined'
){
if
(
sessionStorage
.
pmt
==
"other"
){
...
...
@@ -921,44 +920,6 @@ $(function(){
})
}
function liveList(e){
$.ajax({
url:$ip+'
frontPage
/
queryLiveUsers
',
data:{
pageNum:e,
pageSize:100,
uid:localStorage.uid || '',
token:localStorage.token || '',
pageID:localStorage.canvasCode
},
success:function(data){
// console.log('
直播列表'
,
data
)
if
(
data
.
code
==-
5008
){
setTimeout
(
function
()
{
liveList
(
1
)
},
500
);
return
;
}
var
html
=
[];
for
(
var
i
=
0
;
i
<
data
.
roomList
.
length
;
i
++
){
var
list
=
data
.
roomList
[
i
]
html
+=
'
<
a
href
=
"room/liveRoom.html?roomId='+list.roomId+'&sound=1&v=2022112502&back=1"
><
li
data
-
type
=
"https://zhibocdn.yabolive.net/comm'+list.face.split("
?
")[0]+'?x-oss-process=image/resize,w_180"
>
';
if(list.liveScope==3)html+='
<
img
class
=
"secret"
src
=
"images/Lock-no.png"
alt
=
""
>
';
if(list.liveScope!=3)html+='
<
div
class
=
"hot-num-box"
><
img
src
=
"images/hot.png"
><
span
>
'+list.onlinenum+'
<
/span></
div
>
';
// html+='
<
img
class
=
"live-li-face"
src
=
"images/layz.png"
alt
=
""
>
';
html+='
<
img
class
=
"live-li-face"
src
=
"https://zhibocdn.yabolive.net/comm'+list.face.split("
?
")[0]+'?x-oss-process=image/resize,w_300"
alt
=
""
>
';
html+='
<
div
class
=
"live-shadow"
><
/div>'
;
html
+=
'
<
div
class
=
"live-bottom-box"
>
';
html+='
<
p
>
'+list.nickname+'
<
/p>'
;
html
+=
'
<
p
>
'+list.introduce+'
<
/p>'
;
html
+=
'
<
/div>'
;
html
+=
'
<
/li></
a
>
';
}
$(".box1 .live-ul").html(html);
}
})
}
function layzGo(){
}
...
...
mTest/room/liveRoom.html
View file @
666aa800
...
...
@@ -1195,7 +1195,7 @@ $(function(){
}
function liveList(e){
$.ajax({
url:$ip+'
frontPage
/
queryLiveUsers
',
url:$ip+'
frontPage
/
queryLiveUsers
/
v2
',
data:{
pageNum:e,
pageSize:100,
...
...
@@ -1205,12 +1205,6 @@ $(function(){
},
success:function(data){
console.log('
直播列表
',data)
if(data.code==-5008){
setTimeout(function() {
liveList(1)
}, 500);
return;
}
var newList=''
newList+='
[
'
var
j
=
0
...
...
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