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
2c74cf69
authored
Aug 04, 2023
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
9b572ce9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
12 deletions
mTest/mobile/lib/default.js
mobile/lib/default.js
mobile/room/liveRoom.html
room/liveRoom.html
mTest/mobile/lib/default.js
View file @
2c74cf69
...
...
@@ -5,13 +5,13 @@
var
bbb
=
location
.
href
;
if
(
bbb
.
indexOf
(
"footseen.xyz"
)
>
-
1
)
{
$ip
=
"https://cpapi.footseen.xyz/"
;
$ip2
=
"https://webserver.yabolive.net"
$ip2
=
"https://webserver.yabolive.net"
$ws
=
"wss://websocket.footseen.xyz:12308/"
//
checkIp()
checkIp
()
}
else
{
$ip
=
'http://cpapitest.yabolive.net:81/'
$ip2
=
"http://ceshi.yabolive.tv/web"
$ip
=
'http://cpapitest.yabolive.net:81/'
$ip2
=
"http://ceshi.yabolive.tv/web"
$ws
=
"ws://47.242.178.187:12308/"
// localStorage.canvasCode='phone'
}
...
...
mobile/lib/default.js
View file @
2c74cf69
...
...
@@ -5,16 +5,17 @@
var
bbb
=
location
.
href
;
if
(
bbb
.
indexOf
(
"footseen.xyz"
)
>
-
1
)
{
$ip
=
"https://cpapi.footseen.xyz/"
;
$ip2
=
"https://webserver.yabolive.net"
$ip2
=
"https://webserver.yabolive.net"
$ws
=
"wss://websocket.footseen.xyz:12308/"
checkIp
()
}
else
{
$ip
=
'http://cpapitest.yabolive.net:81/'
$ip2
=
"http://ceshi.yabolive.tv/web"
$ip
=
'http://cpapitest.yabolive.net:81/'
$ip2
=
"http://ceshi.yabolive.tv/web"
$ws
=
"ws://47.242.178.187:12308/"
// localStorage.canvasCode='phone'
}
if
(
bbb
.
indexOf
(
"userRoom.html"
)
==-
1
){
sessionStorage
.
lastUrl
=
bbb
}
...
...
mobile/room/liveRoom.html
View file @
2c74cf69
...
...
@@ -692,6 +692,8 @@ $(function(){
var
startTimer1
=
null
var
startTimer2
=
null
var
startTimer3
=
null
//發言條數
var
sendNum
=
0
$
(
".room-bg"
).
css
(
"height"
,
dHeight
+
'px'
)
$
(
".video-box"
).
css
(
"height"
,
dHeight
+
'px'
)
$
(
".room-content-loading"
).
css
(
"height"
,
dHeight
+
'px'
)
...
...
@@ -756,7 +758,7 @@ $(function(){
startLive
()
//进入直播间
if
(
localStorage
.
uid
!=
undefined
){
//
newReg()
newReg
()
}
function
startLive
(
e
){
$
.
ajax
({
...
...
@@ -1176,6 +1178,13 @@ $(function(){
layer.msg(langRoom[sessionStorage.lang].roomJsTxt3)
$(".room-mc-box").css("transition","0.3s all")
$(".room-mc-box").addClass("room-mc-box2")
if(sessionStorage.firstReg==1){
$(".active-room-shadow").show()
$(".active-room-box").show()
var html=[];
html+='
<
iframe
src
=
"https://activity.yazhaiyabo.com/activeFt/newCharge/index.html?uid='+localStorage.uid+'&token='+localStorage.token+'&lang='+sessionStorage.lang+'&roomid='+sessionStorage.roomId+'"
frameborder
=
"0"
><
/iframe>
'
$
(
".active-room-box"
).
html
(
html
).
css
(
"bottom"
,
"0rem"
)
}
}
else
{
layer
.
msg
(
data
.
msg
)
}
...
...
@@ -1498,15 +1507,16 @@ $(function(){
lang
:
sessionStorage
.
lang
},
success
:
function
(
data
){
//
console.log('首充活动',data)
console
.
log
(
'首充活动'
,
data
)
if
(
data
.
dataList
.
is_show
==
1
){
sessionStorage
.
firstReg
=
1
$
(
".room-reg-icon"
).
fadeIn
(
350
)
$
(
".room-reg-icon"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
$
(
".active-room-shadow"
).
show
()
$
(
".active-room-box"
).
show
()
var
html
=
[];
html
+=
'
<
iframe
src
=
"https://activity.yazhaiyabo.com/activeFt/
firstCharge/firstChargeFootseen/room.html?uid='+localStorage.uid+'&token='+localStorage.token+'&lang='+sessionStorage.lang+'&roomid='+sessionStorage.roomId
+'"
frameborder
=
"0"
><
/iframe>
'
html
+=
'
<
iframe
src
=
"https://activity.yazhaiyabo.com/activeFt/
newCharge/index.html?uid='+localStorage.uid+'&token='+localStorage.token+'&lang='+sessionStorage.lang+'&roomid='+sessionStorage.roomId+'&pageID='+localStorage.canvasCode
+'"
frameborder
=
"0"
><
/iframe>
'
$
(
".active-room-box"
).
html
(
html
).
css
(
"bottom"
,
"0rem"
)
})
$
(
".active-room-shadow"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
...
...
@@ -2638,6 +2648,7 @@ $(function(){
data
:{
uid
:
localStorage
.
uid
,
token
:
localStorage
.
token
,
roomid
:
sessionStorage
.
roomId
,
pass
:
true
,
pageID
:
localStorage
.
canvasCode
,
},
...
...
@@ -3419,7 +3430,17 @@ $(function(){
return
;
}
if
(
data
.
code
==
1
){
sendNum
++
if
(
sessionStorage
.
firstReg
==
1
&&
sendNum
==
3
){
setTimeout
(
function
()
{
$
(
".active-room-shadow"
).
show
()
$
(
".active-room-box"
).
show
()
var
html
=
[];
html
+=
'
<
iframe
src
=
"https://activity.yazhaiyabo.com/activeFt/newCharge/index.html?uid='+localStorage.uid+'&token='+localStorage.token+'&lang='+sessionStorage.lang+'&roomid='+sessionStorage.roomId+'"
frameborder
=
"0"
><
/iframe>
'
$
(
".active-room-box"
).
html
(
html
).
css
(
"bottom"
,
"0rem"
)
},
1000
);
}
$
(
".keyboard-input"
).
val
(
""
)
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
if
(
/android/
.
test
(
ua
))
{
...
...
room/liveRoom.html
View file @
2c74cf69
...
...
@@ -1538,7 +1538,7 @@ $(function () {
// html+='
<
div
class
=
"swiper-slide"
><
img
data
-
type
=
"'+list.url+'"
data
-
type2
=
"'+list.urlType+'"
class
=
"act-btn"
src
=
"https://zhibocdn.yabolive.net/comm'+list.webIcon+'?x-oss-process=image/resize,w_174"
alt
=
""
><
/div>'
;
// }
// }
html
+=
'
<
div
class
=
"swiper-slide"
><
img
data
-
type
=
"https://activity.yazhaiyabo.com/activeFt/
firstCharge/firstChargeFootseen
/index.html"
data
-
type2
=
"0"
class
=
"act-btn"
src
=
"https://zhibocdn.yabolive.net/comm/activity/8069de6c48ca4ed4a924f99ff6901e24.jpg?x-oss-process=image/resize,w_174"
alt
=
""
><
/div>'
;
html
+=
'
<
div
class
=
"swiper-slide"
><
img
data
-
type
=
"https://activity.yazhaiyabo.com/activeFt/
newCharge
/index.html"
data
-
type2
=
"0"
class
=
"act-btn"
src
=
"https://zhibocdn.yabolive.net/comm/activity/8069de6c48ca4ed4a924f99ff6901e24.jpg?x-oss-process=image/resize,w_174"
alt
=
""
><
/div>'
;
if
(
sessionStorage
.
pmt
==
undefined
||
sessionStorage
.
pmt
==
'undefined'
)
html
+=
'
<
div
class
=
"swiper-slide"
><
img
data
-
type
=
"https://www.footseen.xyz/mobile/download/downApp.html?v=2022091601"
data
-
type2
=
"3"
class
=
"act-btn"
src
=
"'+langList[sessionStorage.lang].roomSrc5+'"
alt
=
""
><
/div>'
;
else
html
+=
'
<
div
class
=
"swiper-slide"
><
img
data
-
type
=
"https://www.footseen.xyz/mobile/download/downApp.html?v=2022101101"
data
-
type2
=
"3"
class
=
"act-btn"
src
=
"'+langList[sessionStorage.lang].roomSrc5+'"
alt
=
""
><
p
id
=
"room-qrcode"
><
/p><img class="footseen-icon" src="../im
ages
/
footseen
-
icon
.
png
"
><
/div>
'
$
(
".swiper-wrapper"
).
html
(
html
);
...
...
@@ -1594,7 +1594,7 @@ $(function () {
shadeClose
:
true
,
skin
:
"active-layer"
,
area
:
[
"360px"
,
"634px"
],
content
:
_self
.
attr
(
"data-type"
)
+
'?uid='
+
localStorage
.
uid
+
'&token='
+
localStorage
.
token
+
'&roomid='
+
sessionStorage
.
roomId
+
'&os=pc&v='
+
Math
.
floor
(
Math
.
random
()
*
100
)
+
'&lang='
+
sessionStorage
.
lang
+
''
,
content
:
_self
.
attr
(
"data-type"
)
+
'?uid='
+
localStorage
.
uid
+
'&token='
+
localStorage
.
token
+
'&roomid='
+
sessionStorage
.
roomId
+
'&os=pc&v='
+
Math
.
floor
(
Math
.
random
()
*
100
)
+
'&lang='
+
sessionStorage
.
lang
+
'
&pageID='
+
localStorage
.
canvasCode
+
'
'
,
})
}
...
...
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