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
b98a5ddd
authored
Jun 06, 2023
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
c88beddb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
85 additions
and
0 deletions
mTest/mobile/room/liveRoom.html
room/liveRoom.html
mTest/mobile/room/liveRoom.html
View file @
b98a5ddd
...
...
@@ -2672,6 +2672,7 @@ $(function(){
url
:
$ip
+
'room/doGiftGuidelineCheck'
,
data
:{
roomid
:
sessionStorage
.
roomId
,
pageID
:
localStorage
.
canvasCode
},
success
:
function
(
data
){
console
.
log
(
'送礼引导前检测'
,
data
)
...
...
@@ -2684,6 +2685,7 @@ $(function(){
url
:
$ip
+
'gift/doGiftGudielineSend'
,
data
:{
roomid
:
sessionStorage
.
roomId
,
pageID
:
localStorage
.
canvasCode
},
success
:
function
(
data
){
console
.
log
(
'执行引导礼物送礼'
,
data
)
...
...
room/liveRoom.html
View file @
b98a5ddd
...
...
@@ -674,6 +674,8 @@ $(function () {
var
guardShowOk
=
null
;
var
richType
=
0
var
layzT
=
true
;
//首充彈窗
var
newGiftOk
=
true
;
liveList
(
1
)
$
(
window
).
on
(
"scroll"
,
function
(){
if
(
layzT
==
true
){
...
...
@@ -2310,6 +2312,19 @@ $(function () {
}
})
}
function
newGift
(){
$
.
ajax
({
url
:
$ip
+
'gift/getGiftGuidelineInfo'
,
data
:{
pageID
:
localStorage
.
canvasCode
,
},
success
:
function
(
data
){
console
.
log
(
'獲取引導禮物'
,
data
)
$
(
".layer-gift-box1 img"
).
attr
(
"src"
,
"https://zhibocdn.yabolive.net/comm"
+
data
.
giftInfo
.
giftIcon
+
"?x-oss-process=image/resize,w_100"
)
}
})
}
function
cardUp
(
e
){
if
(
e
<
0
){
layer
.
msg
(
langList
[
sessionStorage
.
lang
].
msg6
)
...
...
@@ -3065,6 +3080,47 @@ $(function () {
}
})
}
function
newGiftSend
(){
$
.
ajax
({
url
:
$ip
+
'room/doGiftGuidelineCheck'
,
data
:{
roomid
:
sessionStorage
.
roomId
,
uid
:
localStorage
.
uid
,
token
:
localStorage
.
token
,
pageID
:
localStorage
.
canvasCode
},
success
:
function
(
data
){
// console.log('送礼引导前检测',data)
if
(
data
.
code
!=
1
){
layer
.
msg
(
data
.
msg
)
return
;
}
if
(
data
.
isPay
==
true
){
$
.
ajax
({
url
:
$ip
+
'gift/doGiftGudielineSend'
,
data
:{
roomid
:
sessionStorage
.
roomId
,
uid
:
localStorage
.
uid
,
token
:
localStorage
.
token
,
pageID
:
localStorage
.
canvasCode
},
success
:
function
(
data
){
// console.log('执行引导礼物送礼',data)
if
(
data
.
code
!=
1
){
layer
.
closeAll
()
layer
.
msg
(
data
.
msg
)
return
;
}
layer
.
closeAll
()
}
})
}
else
if
(
data
.
isPay
==
false
){
layer
.
closeAll
()
}
}
})
}
function
guardList
(){
$
.
ajax
({
url
:
$ip
+
'guard/getRoomGuarders'
,
...
...
@@ -3242,6 +3298,33 @@ $(function () {
html
+=
'
<
li
class
=
"live-msg-li"
>
'+list.content.msg+'
<
/li>'
;
$
(
".live-msg-ul"
).
append
(
html
);
}
//充值完成通知
if
(
obj
.
cid
==
8000
){
if
(
newGiftOk
==
false
)
return
;
newGiftOk
=
false
;
layer
.
closeAll
()
setTimeout
(
function
()
{
layer
.
open
({
type
:
1
,
title
:
false
,
shadeClose
:
false
,
skin
:
"yourclass5"
,
area
:
[
"328px"
,
"243px"
],
content
:
$
(
".layer-gift-box"
),
end
:
function
()
{
$
(
".layui-layer-shade"
).
hide
()
layer
.
closeAll
()
}
})
},
500
);
$
(
".layer-gift-btn1"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
layer
.
closeAll
()
})
$
(
".layer-gift-btn2"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
newGiftSend
()
})
}
//刷獎送禮
if
(
obj
.
cid
==
5300
){
Reconnection
=
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