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
e4148280
authored
Jun 29, 2022
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
46e1b0b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
22 deletions
yazhaiTest/room/liveRoom.html
yazhaiTest/room/liveRoom.html
View file @
e4148280
...
...
@@ -2333,27 +2333,25 @@ $(function () {
}
//发言
if(list.content.type==2){
var html=[];
html+='
<
li
class
=
"live-msg-li"
>
';
// if(list.content.vip_lv>0)html+='
<
span
data
-
type
=
"'+list.content.uid+'"
class
=
"name-span"
><
img
src
=
"https://app.ixiulive.com/static/vip/'+list.content.vip_lv+'.png"
>
'+list.content.uid_nick+'
<
/span><span class="online-lv">'+list.content.live_lv+'</
span
>
:
'+list.content.content+'';
// else html+='
<
span
data
-
type
=
"'+list.content.uid+'"
class
=
"name-span"
>
'+list.content.uid_nick+'
<
/span><span class="online-lv">'+list.content.live_lv+'</
span
>
:
'+list.content.content+'';
html+='
<
span
data
-
type
=
"'+list.content.uid+'"
class
=
"name-span"
>
';
if(list.content.vip_lv>0)html+='
<
img
src
=
"https://app.ixiulive.com/static/vip/'+list.content.vip_lv+'.png"
>
';
html+=''+list.content.uid_nick+'
<
/span>'
;
// if(list.content.live_lv>0)html+='
<
span
class
=
"online-lv"
>
'+list.content.live_lv+'
<
/span>'
;
if
(
list
.
content
.
medal
!=
""
)
html
+=
'
<
img
class
=
"medal-icon"
src
=
"https://zhibocdn.yabolive.net/comm'+list.content.medal+'?x-oss-process=image/resize,w_24"
>
';
html+='
:
'+list.content.content+'';
html+='
<
/li>'
;
$
(
".live-msg-ul"
).
append
(
html
);
}
var html=[];
html+='
<
li
class
=
"live-msg-li"
>
';
// if(list.content.vip_lv>0)html+='
<
span
data
-
type
=
"'+list.content.uid+'"
class
=
"name-span"
><
img
src
=
"https://app.ixiulive.com/static/vip/'+list.content.vip_lv+'.png"
>
'+list.content.uid_nick+'
<
/span><span class="online-lv">'+list.content.live_lv+'</
span
>
:
'+list.content.content+'';
// else html+='
<
span
data
-
type
=
"'+list.content.uid+'"
class
=
"name-span"
>
'+list.content.uid_nick+'
<
/span><span class="online-lv">'+list.content.live_lv+'</
span
>
:
'+list.content.content+'';
html+='
<
span
data
-
type
=
"'+list.content.uid+'"
class
=
"name-span"
>
';
if(list.content.vip_lv>0)html+='
<
img
src
=
"https://app.ixiulive.com/static/vip/'+list.content.vip_lv+'.png"
>
';
html+=''+list.content.uid_nick+'
<
/span>'
;
// if(list.content.live_lv>0)html+='
<
span
class
=
"online-lv"
>
'+list.content.live_lv+'
<
/span>'
;
if
(
list
.
content
.
medal
!=
""
)
html
+=
'
<
img
class
=
"medal-icon"
src
=
"https://zhibocdn.yabolive.net/comm'+list.content.medal+'?x-oss-process=image/resize,w_24"
>
';
html+='
:
'+list.content.content+'';
html+='
<
/li>'
;
$
(
".live-msg-ul"
).
append
(
html
);
}
//点亮直播间
if
(
list
.
content
.
type
==
3
){
var
html
=
[];
html
+=
'
<
li
class
=
"live-msg-other-li"
><
span
data
-
type
=
"'+list.content.uid+'"
class
=
"name-span"
>
'+list.content.nickname+'
<
/span> 點亮了直播間,熱門指數+1</
li
>
'
$(".live-msg-ul").append(html);
}
var
html
=
[];
html
+=
'
<
li
class
=
"live-msg-other-li"
><
span
data
-
type
=
"'+list.content.uid+'"
class
=
"name-span"
>
'+list.content.nickname+'
<
/span> 點亮了直播間,熱門指數+1</
li
>
'
$(".live-msg-ul").append(html);
}
//追踪
if(list.content.type==4){
var html=[];
...
...
@@ -2367,9 +2365,7 @@ $(function () {
$
(
".live-msg-ul"
).
append
(
html
);
}
if
(
$
(
".live-msg-ul"
).
height
()
-
(
$
(
".msg-big-box"
).
scrollTop
()
+
$
(
".msg-big-box"
).
height
())
<
120
){
$
(
".msg-big-box"
).
scrollTop
(
$
(
".live-msg-ul"
).
height
()
-
$
(
".msg-big-box"
).
height
()
+
30
)
}
$
(
".name-span"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
var
_self
=
$
(
this
)
cardUp
(
_self
.
attr
(
"data-type"
))
...
...
@@ -2459,6 +2455,9 @@ $(function () {
alert
(
"您已被移出直播,暫時不能進入"
)
window
.
location
.
href
=
"../pc.html"
}
if
(
$
(
".live-msg-ul"
).
height
()
-
(
$
(
".msg-big-box"
).
scrollTop
()
+
$
(
".msg-big-box"
).
height
())
<
150
){
$
(
".msg-big-box"
).
scrollTop
(
$
(
".live-msg-ul"
).
height
()
-
$
(
".msg-big-box"
).
height
()
+
30
)
}
};
ws
.
onclose
=
function
()
{
...
...
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