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
d782dc3e
authored
a year ago
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
f1984a5e
master
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
room/liveRoom.html
room/liveRoom.html
View file @
d782dc3e
...
...
@@ -3293,17 +3293,7 @@ $(function () {
ws
.
onmessage
=
function
(
evt
)
{
var
obj
=
JSON
.
parse
(
evt
.
data
);
//系統消息
if
(
JSON
.
parse
(
obj
.
content
).
content
.
roomid
!=
sessionStorage
.
roomId
){
return
;
}
if
(
obj
.
cid
==
10000
){
var
list
=
JSON
.
parse
(
obj
.
content
)
//console.log('系統消息',list);
var
html
=
[];
html
+=
'
<
li
class
=
"live-msg-li"
>
'+list.content.msg+'
<
/li>'
;
$
(
".live-msg-ul"
).
append
(
html
);
}
//充值完成通知
if
(
obj
.
cid
==
8000
){
if
(
newGiftOk
==
false
)
return
;
...
...
@@ -3323,7 +3313,6 @@ $(function () {
}
})
},
500
);
$
(
".layer-gift-btn1"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
layer
.
closeAll
()
})
...
...
@@ -3331,6 +3320,18 @@ $(function () {
newGiftSend
()
})
}
//系統消息
if
(
JSON
.
parse
(
obj
.
content
).
content
.
roomid
!=
sessionStorage
.
roomId
){
return
;
}
if
(
obj
.
cid
==
10000
){
var
list
=
JSON
.
parse
(
obj
.
content
)
//console.log('系統消息',list);
var
html
=
[];
html
+=
'
<
li
class
=
"live-msg-li"
>
'+list.content.msg+'
<
/li>'
;
$
(
".live-msg-ul"
).
append
(
html
);
}
//刷獎送禮
if
(
obj
.
cid
==
5300
){
Reconnection
=
0
;
...
...
This diff is collapsed.
Click to expand it.
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