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
bf5c5bca
authored
Jan 06, 2023
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
9f6cdbbf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
16 deletions
mobile/index.html
mobile/room/liveRoom.html
room/liveRoom.html
mobile/index.html
View file @
bf5c5bca
...
...
@@ -407,6 +407,13 @@
<script>
$
(
function
(){
var
browserLang
=
navigator
.
language
if
(
browserLang
.
indexOf
(
"zh"
)
==-
1
){
$
(
".bottom-nav-img1 p"
).
text
()
$
(
".bottom-nav-img2 p"
).
text
()
$
(
".bottom-nav-img3 p"
).
text
()
$
(
".bottom-nav-img4 p"
).
text
()
}
//判斷渠道
liveList
(
1
)
if
(
sessionStorage
.
type
==
"pwa"
){
...
...
@@ -895,7 +902,7 @@ $(function(){
pageID
:
localStorage
.
canvasCode
},
success
:
function
(
data
){
console
.
log
(
'直播列表'
,
data
)
//
console.log('直播列表',data)
var
html
=
[];
var
j
=
0
for
(
var
i
=
0
;
i
<
data
.
normalRoomList
.
length
;
i
++
){
...
...
mobile/room/liveRoom.html
View file @
bf5c5bca
...
...
@@ -1453,8 +1453,10 @@ $(function(){
for
(
var
i
=
0
;
i
<
10
;
i
++
){
if
(
data
.
dataList
[
i
]
==
undefined
)
continue
;
var
list
=
data
.
dataList
[
i
]
if
(
list
.
face
==
'/user/boy.png'
)
var
faceImg
=
'images/boy.png'
;
else
var
faceImg
=
'https://zhibocdn.yabolive.net/comm'
+
list
.
face
+
'?x-oss-process=image/resize,w_50'
;
html
+=
'
<
li
data
-
type
=
"'+list.uid+'"
>
';
html+='
<
img
src
=
"https://zhibocdn.yabolive.net/comm'+
list.face
+'?x-oss-process=image/resize,w_78"
alt
=
""
>
';
html+='
<
img
src
=
"https://zhibocdn.yabolive.net/comm'+
faceImg
+'?x-oss-process=image/resize,w_78"
alt
=
""
>
';
html+='
<
/li>'
;
}
if
(
data
.
dataList
.
length
<
10
)
$
(
".room-user-ul"
).
css
(
"width"
,
data
.
dataList
.
length
+
'rem'
)
...
...
@@ -2087,9 +2089,9 @@ $(function(){
// $(".richAddShow-go").eq(0).remove()
// }, 1000);
}
//热门值互动值
if
(
obj
.
cid
==
4700
){
var
list
=
JSON
.
parse
(
obj
.
content
)
console
.
log
(
"推了"
,
list
.
content
.
interacNum
,
list
.
content
.
popularNum
)
if
(
list
.
content
.
popularNum
>
0
)
$
(
".hot-list-box >i"
).
text
(
list
.
content
.
popularNum
)
if
(
list
.
content
.
interacNum
>
0
)
$
(
".interac-list-box >i"
).
text
(
list
.
content
.
interacNum
)
}
...
...
room/liveRoom.html
View file @
bf5c5bca
...
...
@@ -111,7 +111,7 @@
<div
style=
"top: 168px;"
class=
"rich-list-box-jiao"
></div>
<img
class=
"list-floor-left"
src=
"images/list-floor.png"
alt=
""
>
<img
class=
"list-floor-right"
src=
"images/list-floor.png"
alt=
""
>
<div
class=
"hot-list-box-top"
>
熱門
榜
</div>
<div
class=
"hot-list-box-top"
>
人氣
榜
</div>
<ul
class=
"hot-list-ul"
>
<!-- <li>
<div class="hot-list-li-box1">4</div>
...
...
@@ -647,7 +647,7 @@ $(function () {
else
{
$
(
".live-content-box-left-roombox"
).
append
(
"
<
img
class
=
'mc-out'
src
=
'images/mc-out.png'
>
")
}
$("
.
hot
-
box
>
span
").text(data.room
.hotResult.score
)
$("
.
hot
-
box
>
span
").text(data.room
OtherInfo.popularNum
)
$("
.
rich
-
box
>
span
").text(data.roomOtherInfo.charm)
$("
.
mc
-
tips
div
").text(data.roomBaseInfo.sign.replace("
Firefly
Live
","
Footseen
"
))
var
html
=
[];
...
...
@@ -1129,20 +1129,15 @@ $(function () {
}
function
hotList
()
{
$
.
ajax
({
url
:
$ip
+
'r
oom/ho
t'
,
url
:
$ip
+
'r
ank/popular/lis
t'
,
data
:
{
roomid
:
sessionStorage
.
roomId
,
pageNum
:
1
,
pageSize
:
99
,
type
:
0
,
pass
:
true
,
pageID
:
localStorage
.
canvasCode
pageID
:
localStorage
.
canvasCode
,
},
success
:
function
(
data
)
{
//console.log("热门榜单", data)
var
html
=
[];
for
(
var
i
=
0
;
i
<
data
.
rank
l
ist
.
length
;
i
++
)
{
var
list
=
data
.
rankl
ist
[
i
]
for
(
var
i
=
0
;
i
<
data
.
rank
L
ist
.
length
;
i
++
)
{
var
list
=
data
.
rankL
ist
[
i
]
if
(
list
.
uid
==
sessionStorage
.
roomId
)
html
+=
'
<
a
href
=
"javascript:;"
><
li
>
';
else html += '
<
a
target
=
"_blank"
href
=
"https://www.footseen.xyz/room/liveRoom.html?roomId='+list.uid+'"
><
li
>
';
html += '
<
div
class
=
"hot-list-li-box1"
>
' + (i + 1) + '
<
/div>'
;
...
...
@@ -2788,13 +2783,17 @@ $(function () {
if
(
obj
.
cid
==
4200
){
var
list
=
JSON
.
parse
(
obj
.
content
)
//console.log('主播數據變更',list);
$
(
".hot-box >span"
).
text
(
list
.
content
.
hotnum
)
$
(
".rich-box >span"
).
text
(
list
.
content
.
bonds
)
$
(
".rich-box"
).
append
(
'
<
div
class
=
"rich-add-box richAddShow-go"
>+
'+list.content.changebonds+'
<
/div>'
)
setTimeout
(
function
()
{
$
(
".richAddShow-go"
).
eq
(
0
).
remove
()
},
1000
);
}
//热门值互动值
if
(
obj
.
cid
==
4700
){
var
list
=
JSON
.
parse
(
obj
.
content
)
if
(
list
.
content
.
popularNum
>
0
)
$
(
".hot-box >span"
).
text
(
list
.
content
.
popularNum
)
}
//主播直播状态
if
(
obj
.
cid
==
4300
){
var
list
=
JSON
.
parse
(
obj
.
content
)
...
...
@@ -2942,7 +2941,7 @@ $(function () {
}
// Reconnection++
ReconnectionT
=
set
Interval
(
function
()
{
ReconnectionT
=
set
Timeout
(
function
()
{
WebSocketGo
()
Reconnection
++
...
...
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