Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
fsActive
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
e333bc2a
authored
Jun 17, 2024
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ft活动上线
parent
bb2a991a
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
128 additions
and
25 deletions
activeFt/develop/index.html
activeFt/develop/lib/default.js
activeFt/develop/oldView.html
footseenIcon/action/css/index.css
footseenIcon/action/css/index.less
footseenIcon/action/index.html
footseenIcon/action/lib/default.js
footseenIcon/liveData2/css/index.css
footseenIcon/liveData2/css/index.less
footseenIcon/liveData2/index.html
footseenIcon/liveData2/lib/default.js
ftIcon/liveData/index.html
ftIcon/liveData/lib/default.js
activeFt/develop/index.html
View file @
e333bc2a
...
...
@@ -161,7 +161,7 @@
</body>
<script
src=
"lib/jquery-3.1.1.min.js"
></script>
<script
src=
"layer-v3.1.0/layer/layer.js"
></script>
<script
src=
"lib/default.js?v='202
40614
01'"
></script>
<script
src=
"lib/default.js?v='202
31209
01'"
></script>
<script
src=
"lib/clipboard.js"
></script>
<script>
$
(
function
(){
...
...
activeFt/develop/lib/default.js
View file @
e333bc2a
...
...
@@ -5,7 +5,7 @@
if
(
bbb
.
indexOf
(
"https://fsactive.fusi.club/"
)
>
-
1
)
{
$ip
=
"https://webserver.yabolive.net"
;
_url3
=
'https://webserver.yabolive.net'
;
$url
=
'http
s
://fsActive.fusi.club'
$url
=
'http://fsActive.fusi.club'
}
else
{
$ip
=
'http://ceshi.yabolive.tv/web'
;
...
...
@@ -69,9 +69,9 @@ if(sessionStorage.open==undefined)sessionStorage.open=1
}
if
(
bbb
.
indexOf
(
"file:///E:"
)
>
-
1
)
{
sessionStorage
.
lang
=
1
sessionStorage
.
uid
=
155100
;
sessionStorage
.
uid
=
210102
;
sessionStorage
.
token
=
'debug'
sessionStorage
.
roomId
=
11134747
;
sessionStorage
.
roomId
=
210102
;
sessionStorage
.
version
=
8890
sessionStorage
.
cid
=
'web'
sessionStorage
.
pkg
=
'h5'
...
...
activeFt/develop/oldView.html
View file @
e333bc2a
...
...
@@ -43,7 +43,7 @@
<script
type=
"text/javascript"
src=
"https://app.ixiulive.com/static/js/socket.io.js"
></script>
<script>
$
(
function
(){
var
socketOk
=
null
var
wsTimer
=
null
setTimeout
(
function
(){
$
.
ajax
({
url
:
$ip
+
'/actRaisingBeautifulGril/sustainLogin.html'
,
...
...
@@ -59,6 +59,33 @@ $(function(){
$
(
".en-t2"
).
html
(
"PROG"
)
$
(
".en-t3"
).
html
(
"rank"
)
}
setTimeout
(
function
()
{
wsTimer
=
setInterval
(
function
(){
view
()
},
60000
)
view
()
},
2000
);
function
view
(){
$
.
ajax
({
url
:
$ip
+
'/actRaisingBeautifulGril/getRoomPartData.html'
,
success
:
function
(
data
){
console
.
log
(
data
)
if
(
data
.
result
.
rank
>
0
){
console
.
log
(
data
)
$
(
".room-bg1"
).
show
()
$
(
".room-title"
).
text
(
titleArr
[
data
.
result
.
targetData
.
stage
])
$
(
".room-bg-p1 span"
).
text
(
data
.
result
.
score
)
var
barWidth
=
Math
.
floor
(
data
.
result
.
score
/
data
.
result
.
targetData
.
stageScore
*
100
)
$
(
".room-bg-p2 span"
).
text
(
barWidth
+
'%'
)
$
(
".room-bg-p3 span"
).
text
(
data
.
result
.
rank
)
}
else
{
$
(
".room-bg1"
).
hide
()
clearInterval
(
wsTimer
)
}
}
})
}
// getData()
$
(
".room-bg1"
).
on
(
"click"
,
function
(){
var
obj
=
{
...
...
@@ -74,7 +101,6 @@ $(function(){
appCollaboration
(
obj2
);
})
function
getData
(
roomid
)
{
console
.
log
(
"开始连接"
)
var
opts
=
{
query
:
{
'uid'
:
sessionStorage
.
uid
,
...
...
@@ -86,7 +112,6 @@ $(function(){
socket
=
io
.
connect
(
_url3
+
'/default'
,
opts
);
socket
.
on
(
'connect'
,
function
()
{
console
.
log
(
"连接成功"
);
clearTimeout
(
socketOk
)
});
socket
.
on
(
'RaisingBeautifulGril'
,
function
(
msg
)
{
...
...
@@ -106,7 +131,7 @@ $(function(){
});
socket
.
on
(
'disconnect'
,
function
()
{
s
ocketOk
=
s
etTimeout
(
function
(){
setTimeout
(
function
(){
getData
()
},
3000
)
console
.
log
(
"已下线!"
);
...
...
footseenIcon/action/css/index.css
View file @
e333bc2a
...
...
@@ -38,7 +38,7 @@
/* padding-top: 0.4rem; */
position
:
absolute
;
top
:
3.9rem
;
left
:
4.
5
rem
;
left
:
4.
9
rem
;
}
.room-bg-p3
span
{
color
:
#F83AFF
;
...
...
footseenIcon/action/css/index.less
View file @
e333bc2a
...
...
@@ -38,7 +38,7 @@
/* padding-top: 0.4rem; */
position: absolute;
top: 3.9rem;
left: 4.
5
rem;
left: 4.
9
rem;
span{
color: #F83AFF;
}
...
...
footseenIcon/action/index.html
View file @
e333bc2a
...
...
@@ -44,7 +44,7 @@
<script
type=
"text/javascript"
src=
"https://app.ixiulive.com/static/js/socket.io.js"
></script>
<script>
$
(
function
(){
var
socketOk
=
null
var
wsTimer
=
null
var
titleArr
=
[
''
,
'新秀出道'
,
'嶄露頭角'
,
'光芒萬丈'
]
if
(
sessionStorage
.
lang
!=
2
){
var
titleArr
=
[
''
,
'First level'
,
'Second level'
,
'Third level'
]
...
...
@@ -52,6 +52,31 @@ $(function(){
$
(
".en-t2"
).
html
(
"PROG"
)
$
(
".en-t3"
).
html
(
"rank"
)
}
setTimeout
(
function
()
{
RoomView
()
wsTimer
=
setInterval
(
function
(){
RoomView
()
},
60000
)
},
2000
);
function
RoomView
(){
$
.
ajax
({
url
:
$ip
+
'/actRaisingBeautifulGril/getRoomPartData.html'
,
success
:
function
(
data
){
console
.
log
(
data
)
if
(
data
.
result
.
rank
>
0
){
$
(
".room-bg1"
).
show
()
$
(
".room-title"
).
text
(
titleArr
[
data
.
result
.
targetData
.
stage
])
$
(
".room-bg-p1 span"
).
text
(
data
.
result
.
score
)
var
barWidth
=
Math
.
floor
(
data
.
result
.
score
/
data
.
result
.
targetData
.
stageScore
*
100
)
$
(
".room-bg-p2 span"
).
text
(
barWidth
+
'%'
)
$
(
".room-bg-p3 span"
).
text
(
data
.
result
.
rank
)
}
else
{
$
(
".room-bg1"
).
hide
()
clearInterval
(
wsTimer
)
}
}
})
}
// getData()
setTimeout
(
function
(){
...
...
@@ -108,7 +133,6 @@ $(function(){
socket
=
io
.
connect
(
_url3
+
'/default'
,
opts
);
socket
.
on
(
'connect'
,
function
()
{
console
.
log
(
"连接成功"
);
clearTimeout
(
socketOk
)
});
socket
.
on
(
'RaisingBeautifulGril'
,
function
(
msg
)
{
...
...
@@ -128,9 +152,9 @@ $(function(){
});
socket
.
on
(
'disconnect'
,
function
()
{
s
ocketOk
=
s
etTimeout
(
function
(){
getData
()
},
3000
)
setTimeout
(
function
(){
getData
()
},
3000
)
console
.
log
(
"已下线!"
);
});
...
...
footseenIcon/action/lib/default.js
View file @
e333bc2a
...
...
@@ -44,7 +44,7 @@ if (uid.indexOf("http://localhost:63342") > -1) {
}
if
(
uid
.
indexOf
(
"file:///"
)
>
-
1
)
{
sessionStorage
.
lang
=
2
sessionStorage
.
uid
=
10007
;
sessionStorage
.
uid
=
210102
;
sessionStorage
.
token
=
'debug'
sessionStorage
.
roomId
=
210102
;
sessionStorage
.
version
=
8890
...
...
footseenIcon/liveData2/css/index.css
View file @
e333bc2a
...
...
@@ -174,7 +174,7 @@
/* padding-top: 0.4rem; */
position
:
absolute
;
top
:
12.987vw
;
left
:
1
4.985
vw
;
left
:
1
7.8
vw
;
}
.act-room-bg1
.room-bg-p3
span
{
color
:
#F83AFF
;
...
...
footseenIcon/liveData2/css/index.less
View file @
e333bc2a
...
...
@@ -191,7 +191,7 @@
/* padding-top: 0.4rem; */
position: absolute;
top: 12.987vw;
left: 1
4.985
vw;
left: 1
7.8
vw;
span{
color: #F83AFF;
}
...
...
footseenIcon/liveData2/index.html
View file @
e333bc2a
...
...
@@ -76,6 +76,7 @@
<script
type=
"text/javascript"
src=
"https://app.ixiulive.com/static/js/socket.io.js"
></script>
<script>
$
(
function
(){
var
wsTimer
=
null
var
socketOk
=
null
//活動
var
titleArr
=
[
''
,
'新秀出道'
,
'嶄露頭角'
,
'光芒萬丈'
]
...
...
@@ -84,8 +85,34 @@ $(function(){
$
(
".en-t1"
).
html
(
'score'
)
$
(
".en-t2"
).
html
(
"PROG"
)
$
(
".en-t3"
).
html
(
"rank"
)
}
setTimeout
(
function
()
{
RoomView
()
wsTimer
=
setInterval
(
function
(){
RoomView
()
},
60000
)
},
2000
);
function
RoomView
(){
$
.
ajax
({
url
:
$ip
+
'/actRaisingBeautifulGril/getRoomPartData.html'
,
success
:
function
(
data
){
console
.
log
(
data
)
if
(
data
.
result
.
rank
>
0
){
console
.
log
(
data
)
$
(
".act-room-bg1"
).
show
()
$
(
".room-title"
).
text
(
titleArr
[
data
.
result
.
targetData
.
stage
])
$
(
".room-bg-p1 span"
).
text
(
data
.
result
.
score
)
var
barWidth
=
Math
.
floor
(
data
.
result
.
score
/
data
.
result
.
targetData
.
stageScore
*
100
)
$
(
".room-bg-p2 span"
).
text
(
barWidth
+
'%'
)
$
(
".room-bg-p3 span"
).
text
(
data
.
result
.
rank
)
}
else
{
$
(
".act-room-bg1"
).
hide
()
clearInterval
(
wsTimer
)
}
}
})
}
// getData()
function
getData
()
{
...
...
footseenIcon/liveData2/lib/default.js
View file @
e333bc2a
...
...
@@ -45,9 +45,9 @@ if (bbb.indexOf("http://localhost:63342") > -1) {
}
if
(
bbb
.
indexOf
(
"file:///"
)
>
-
1
)
{
sessionStorage
.
lang
=
1
sessionStorage
.
uid
=
11134747
;
sessionStorage
.
uid
=
210102
;
sessionStorage
.
token
=
'debug'
sessionStorage
.
roomId
=
11134747
;
sessionStorage
.
roomId
=
210102
;
sessionStorage
.
version
=
8890
sessionStorage
.
cid
=
'web'
sessionStorage
.
pkg
=
'h5'
...
...
ftIcon/liveData/index.html
View file @
e333bc2a
...
...
@@ -70,10 +70,11 @@
</body>
<script
src=
"lib/jquery-3.1.1.min.js"
></script>
<script
src=
"layer-v3.1.0/layer/layer.js"
></script>
<script
src=
"lib/default.js?v='20240
616
01'"
></script>
<script
src=
"lib/default.js?v='20240
520
01'"
></script>
<script
type=
"text/javascript"
src=
"https://app.ixiulive.com/static/js/socket.io.js"
></script>
<script>
$
(
function
(){
var
wsTimer
=
null
var
socketOk
=
null
//活動
var
titleArr
=
[
''
,
'新秀出道'
,
'嶄露頭角'
,
'光芒萬丈'
]
...
...
@@ -83,6 +84,32 @@ $(function(){
$
(
".en-t2"
).
html
(
"PROG"
)
$
(
".en-t3"
).
html
(
"rank"
)
}
setTimeout
(
function
()
{
RoomView
()
wsTimer
=
setInterval
(
function
(){
RoomView
()
},
60000
)
},
2000
);
function
RoomView
(){
$
.
ajax
({
url
:
$ip
+
'/actRaisingBeautifulGril/getRoomPartData.html'
,
success
:
function
(
data
){
console
.
log
(
data
)
if
(
data
.
result
.
rank
>
0
){
console
.
log
(
data
)
$
(
".act-room-bg1"
).
show
()
$
(
".room-title"
).
text
(
titleArr
[
data
.
result
.
targetData
.
stage
])
$
(
".room-bg-p1 span"
).
text
(
data
.
result
.
score
)
var
barWidth
=
Math
.
floor
(
data
.
result
.
score
/
data
.
result
.
targetData
.
stageScore
*
100
)
$
(
".room-bg-p2 span"
).
text
(
barWidth
+
'%'
)
$
(
".room-bg-p3 span"
).
text
(
data
.
result
.
rank
)
}
else
{
$
(
".act-room-bg1"
).
hide
()
clearInterval
(
wsTimer
)
}
}
})
}
// getData()
$
(
".act-room-bg1"
).
on
(
"click"
,
function
(){
var
obj
=
{
...
...
ftIcon/liveData/lib/default.js
View file @
e333bc2a
...
...
@@ -5,7 +5,7 @@ var bbb = location.href;
if
(
bbb
.
indexOf
(
"https://fsactive.fusi.club/"
)
>
-
1
)
{
$ip
=
"https://webserver.yabolive.net"
;
_url3
=
'https://webserver.yabolive.net'
;
$url
=
'http
s
://fsActive.fusi.club'
$url
=
'http://fsActive.fusi.club'
}
else
{
$ip
=
'http://ceshi.yabolive.tv/web'
;
...
...
@@ -58,9 +58,9 @@ if (bbb.indexOf("http://localhost:63342") > -1) {
}
if
(
bbb
.
indexOf
(
"file:///"
)
>
-
1
)
{
sessionStorage
.
lang
=
2
sessionStorage
.
uid
=
11134747
;
sessionStorage
.
uid
=
210102
;
sessionStorage
.
token
=
'debug'
sessionStorage
.
roomId
=
11134747
;
sessionStorage
.
roomId
=
210102
;
sessionStorage
.
version
=
8890
sessionStorage
.
cid
=
'web'
sessionStorage
.
pkg
=
'h5'
...
...
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