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
d5017f98
authored
Nov 01, 2024
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ft活动上线
parent
70f6cbad
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
61 additions
and
88 deletions
ftIcon/liveData/css/index.css
ftIcon/liveData/css/index.less
ftIcon/liveData/index.html
ftIcon/liveData2/css/index.less
ftIcon/liveData2/lib/default.js
ftIcon/liveData/css/index.css
View file @
d5017f98
...
...
@@ -126,46 +126,31 @@ i {
margin-top
:
4vw
;
}
.act-room-bg
{
position
:
relative
;
width
:
10rem
;
height
:
8.563
rem
;
height
:
4.252
rem
;
background
:
url(../images/act-room-bg.png)
no-repeat
;
background-size
:
100%
100%
;
position
:
relative
;
}
.act-room-p1
{
color
:
#fff
;
font-size
:
0.75rem
;
text-indent
:
0.7rem
;
padding-top
:
0.9rem
;
}
.act-room-p2
{
color
:
#fff
;
font-size
:
0.75rem
;
text-indent
:
0.7rem
;
padding-top
:
0.2rem
;
}
.act-room-bg2
{
width
:
10rem
;
height
:
5.577rem
;
position
:
relative
;
width
:
5.04rem
;
height
:
3.402rem
;
background
:
url(../images/act-room-bg2.png)
no-repeat
;
background-size
:
100%
100%
;
}
.act-room-bg2
>
p
{
.act-room-bg2
p
{
display
:
none
;
}
.act-p1
{
color
:
#fff
;
text-align
:
center
;
width
:
10rem
;
font-size
:
0.8rem
;
position
:
absolute
;
top
:
1.2rem
;
}
.act-p1
span
{
width
:
10rem
;
position
:
absolute
;
color
:
#FFF337
;
top
:
2.3rem
;
left
:
0
;
font-size
:
1rem
;
font-weight
:
700
;
}
.act-p2
{
color
:
#fff
;
text-align
:
center
;
width
:
10rem
;
font-size
:
0.8rem
;
position
:
absolute
;
top
:
6rem
;
}
.act-p2
span
{
color
:
#FFF337
;
}
ftIcon/liveData/css/index.less
View file @
d5017f98
...
...
@@ -143,46 +143,32 @@ i{
}
//活動
.act-room-bg{
position: relative;
width: 10rem;
height:
8.563
rem;
height:
4.252
rem;
background: url(../images/act-room-bg.png)no-repeat;
background-size: 100% 100%;
position: relative;
}
.act-room-p1{
color: #fff;
font-size: 0.75rem;
text-indent: 0.7rem;
padding-top: 0.9rem;
}
.act-room-p2{
color: #fff;
font-size: 0.75rem;
text-indent: 0.7rem;
padding-top: 0.2rem;
}
.act-room-bg2{
width: 10rem;
height: 5.577rem;
position: relative;
width: 5.04rem;
height: 3.402rem;
background: url(../images/act-room-bg2.png)no-repeat;
background-size: 100% 100%;
>
p{
p{
display: none;
}
}
.act-p1{
color: #fff;
text-align: center;
width: 10rem;
font-size: 0.8rem;
position: absolute;
top: 1.2rem;
span{
width: 10rem;
position: absolute;
color: #FFF337;
top: 2.3rem;
left: 0;
font-size: 1rem;
font-weight: 700;
}
}
.act-p2{
color: #fff;
text-align: center;
width: 10rem;
font-size: 0.8rem;
position: absolute;
top: 6rem;
span{
color: #FFF337;
}
}
\ No newline at end of file
ftIcon/liveData/index.html
View file @
d5017f98
...
...
@@ -31,9 +31,9 @@
</style>
</head>
<body
c
style=
"background:rgba(0,0,0,0)"
>
<div
style=
"display: none;"
class=
"act-room-bg act-room-bg2
"
>
<p
class=
"act-
p1"
><i
class=
"en-txt1"
>
主播積分
</i>
:
<span>
8000
</span>
</p>
<p
class=
"act-
p2"
><i
class=
"en-txt2"
>
進度
</i>
:
<span
class=
"act-span2"
style=
"margin-right: 0.5rem;"
>
18%
</span>
<i
class=
"en-txt3"
>
排名
</i>
:
<span
class=
"act-span3"
>
5
</span>
</p>
<div
class=
"act-room-bg
"
>
<p
class=
"act-
room-p1"
>
主播積分 : 8000
</p>
<p
class=
"act-
room-p2"
>
排名 : 5
</p>
</div>
<div
class=
"room-bg1"
>
<div
class=
"room-bg-top"
>
人氣
</div>
...
...
@@ -99,15 +99,18 @@ $(function(){
function
ActView
(){
$
.
ajax
({
url
:
$ip
+
'/act
Lucky777
/getRoomPartData.html'
,
url
:
$ip
+
'/act
SpaceOdyssey
/getRoomPartData.html'
,
success
:
function
(
data
){
console
.
log
(
'圖標數據'
,
data
)
jump
=
2
$
(
".act-room-bg"
).
removeClass
(
"act-room-bg2"
).
fadeIn
(
200
)
$
(
".act-p1 span"
).
text
(
data
.
result
.
roomData
.
score
)
$
(
".act-span2"
).
text
(
Math
.
floor
(
data
.
result
.
roomData
.
score
/
15000
*
100
)
+
'%'
)
if
(
data
.
result
.
roomData
.
rank
==-
1
)
$
(
".act-span3"
).
text
(
'--'
)
else
$
(
".act-span3"
).
text
(
data
.
result
.
roomData
.
rank
)
if
(
sessionStorage
.
lang
==
2
){
$
(
".act-room-p1"
).
text
(
'主播積分 : '
+
data
.
result
.
roomData
.
score
+
''
)
if
(
data
.
result
.
roomData
.
rank
!=-
1
)
$
(
".act-room-p2"
).
text
(
'排名 : '
+
data
.
result
.
roomData
.
rank
+
''
)
else
$
(
".act-room-p2"
).
text
(
'排名 : --'
)
}
else
{
$
(
".act-room-p1"
).
text
(
'score : '
+
data
.
result
.
roomData
.
score
+
''
)
if
(
data
.
result
.
roomData
.
rank
!=-
1
)
$
(
".act-room-p2"
).
text
(
'rank : '
+
data
.
result
.
roomData
.
rank
+
''
)
else
$
(
".act-room-p2"
).
text
(
'rank : --'
)
}
}
})
...
...
ftIcon/liveData2/css/index.less
View file @
d5017f98
...
...
@@ -164,15 +164,15 @@
.act-room-bg{
position: relative;
width: 8rem;
height: 3.402rem;
background: url(../images/act-room-bg.png) no-repeat;
background-size: 100% 100%;
float: right;
transform: scale(0.33);
top: -2.55rem;
left: 2.3rem;
position: relative;
width: 8rem;
height: 3.402rem;
background: url(../images/act-room-bg.png) no-repeat;
background-size: 100% 100%;
float: right;
transform: scale(0.33);
top: -2.55rem;
left: 2.3rem;
}
.act-room-p1{
color: #fff;
...
...
ftIcon/liveData2/lib/default.js
View file @
d5017f98
...
...
@@ -45,9 +45,9 @@ if (bbb.indexOf("http://localhost:63342") > -1) {
}
if
(
bbb
.
indexOf
(
"file:///"
)
>
-
1
)
{
sessionStorage
.
lang
=
1
sessionStorage
.
uid
=
174003
;
sessionStorage
.
uid
=
210102
;
sessionStorage
.
token
=
'debug'
sessionStorage
.
roomId
=
174003
;
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