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
abc364e9
authored
a year ago
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
6f12da6e
master
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
75 additions
and
40 deletions
mTest/mobile/room/liveRoom.html
room/liveRoom.html
mTest/mobile/room/liveRoom.html
View file @
abc364e9
...
...
@@ -1012,9 +1012,19 @@ $(function(){
TicketRoom
(
roomCId
,
roomRId
)
}
if
(
data
.
room
.
newPayRegister
){
if
(
sessionStorage
.
newLogin
==
1
&&
localStorage
.
uid
!=
undefined
){
sessionStorage
.
newLogin
=
0
newGift
()
$
.
ajax
({
url
:
$ip
+
'room/doGiftGuidelineCheck'
,
data
:{
roomid
:
sessionStorage
.
roomId
,
},
success
:
function
(
data
){
// console.log('送礼引导前检测',data)
}
})
layer
.
open
({
type
:
1
,
title
:
false
,
...
...
@@ -1036,6 +1046,15 @@ $(function(){
}
else
{
setTimeout
(
function
(){
newGift
()
$
.
ajax
({
url
:
$ip
+
'room/doGiftGuidelineCheck'
,
data
:{
roomid
:
sessionStorage
.
roomId
,
},
success
:
function
(
data
){
// console.log('送礼引导前检测',data)
}
})
layer
.
open
({
type
:
1
,
title
:
false
,
...
...
This diff is collapsed.
Click to expand it.
room/liveRoom.html
View file @
abc364e9
...
...
@@ -804,50 +804,66 @@ $(function () {
// Show a "Play" button so that user can start playback.
});
}
if
(
data
.
room
.
liveScope
==
3
&&
data
.
room
.
selfLock
==
0
&&
localStorage
.
uid
!=
sessionStorage
.
roomId
){
$
(
".secret-rich-btn"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
// if(localStorage.uid==undefined){
// loginLayer()
// return;
// }
// $.ajax({
// url:$ip+'room/to/join/buy',
// data:{
// uid: localStorage.uid,
// token: localStorage.token,
// roomId: sessionStorage.roomId,
// channelId:data.room.channelId,
// pageID: localStorage.canvasCode,
// },
// success:function(data){
// // console.log('进入付费房购买资格',data)
// if(data.code==-100){
// layer.msg(data.msg)
// setTimeout(function() {
// window.open("../reg/index.html")
// }, 500);
// return
// }
// if(data.code==1){
// layer.msg("已付費,即將進入直播間")
// setTimeout(function(){
// window.location.reload()
// },1000)
// }else{
// layer.msg(data.msg)
// }
// }
// })
})
}
}
else
{
$
(
".live-content-box-left-roombox"
).
append
(
"
<
img
class
=
'mc-out'
src
=
'"+langList[sessionStorage.lang].roomSrc4+"'
>
")
}
if(data.room.newPayRegister){
if(sessionStorage.newLogin==1&&localStorage.uid!=undefined){
sessionStorage.newLogin=0
newGift()
layer.open({
type: 1,
title: false,
shadeClose: false,
skin: "
yourclass5
",
area: ["
328
px
","
243
px
"],
content: $("
.
layer
-
gift
-
box
"),
end: function () {
$("
.
layui
-
layer
-
shade
").hide()
layer.closeAll()
}
})
$("
.
layer
-
gift
-
btn1
").unbind("
click
").on("
click
",function(){
layer.closeAll()
})
$("
.
layer
-
gift
-
btn2
").unbind("
click
").on("
click
",function(){
window.open("
https
:
//www.footseen.com/footseen/phonepay/applepay.html?lang="+sessionStorage.lang+"&gofrom=web&cidStr="+sessionStorage.myCid+"&uid="+localStorage.uid+"&token="+localStorage.token+"&os=h5&appversion=7&osStr=h5")
})
}
else
{
setTimeout
(
function
(){
newGift
()
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
()
}
})
$
(
".layer-gift-btn1"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
layer
.
closeAll
()
})
if
(
localStorage
.
uid
==
undefined
){
$
(
".layer-gift-btn2"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
layer
.
closeAll
()
$
(
".layer-shadow"
).
show
()
loginPage
()
sessionStorage
.
newLogin
=
1
return
;
})
}
else
{
$
(
".layer-gift-btn2"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
window
.
open
(
"../reg/index.html"
)
})
}
},
30000
)
}
}
$
(
".hot-box >span"
).
text
(
data
.
roomOtherInfo
.
popularNum
)
$
(
".rich-box >span"
).
text
(
data
.
roomOtherInfo
.
charm
)
$
(
".mc-tips div"
).
text
(
data
.
roomBaseInfo
.
sign
.
replace
(
"Firefly Live"
,
"Footseen"
))
...
...
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