Compare commits
30 Commits
guardianPl
...
2024-white
Author | SHA1 | Date | |
---|---|---|---|
![]() |
efb6649c23 | ||
![]() |
36e00a2193 | ||
![]() |
b1261cf787 | ||
![]() |
17b91c9cc5 | ||
![]() |
99f27fc1d7 | ||
![]() |
c431b9aabf | ||
![]() |
00c8f39c48 | ||
![]() |
309dc6097a | ||
![]() |
ec732f0c75 | ||
![]() |
cfab5b8cc9 | ||
![]() |
4453a09a92 | ||
![]() |
a033d971cb | ||
![]() |
a378783cdc | ||
![]() |
696286103e | ||
![]() |
f4e0dcc71c | ||
![]() |
a288347760 | ||
![]() |
41bb7136ab | ||
![]() |
a57dd223a8 | ||
![]() |
c83c6e0240 | ||
![]() |
abf5178c62 | ||
![]() |
5fce805f9b | ||
![]() |
e533052973 | ||
![]() |
e3f6712622 | ||
![]() |
09d94a22ee | ||
![]() |
81d1f8e918 | ||
![]() |
62b59ca91a | ||
![]() |
92c9774b18 | ||
![]() |
8722c6584b | ||
![]() |
dd3d0ae151 | ||
![]() |
5f45fdcbf0 |
498
view/peko/activity/2024-goddessesDay/css/index.css
Normal file
@@ -0,0 +1,498 @@
|
|||||||
|
html,
|
||||||
|
body {
|
||||||
|
width: 100%;
|
||||||
|
background: #FBABAD;
|
||||||
|
}
|
||||||
|
|
||||||
|
.back {
|
||||||
|
position: fixed;
|
||||||
|
top: 0.93333rem;
|
||||||
|
left: 0.45333rem;
|
||||||
|
z-index: 99;
|
||||||
|
width: 0.82667rem;
|
||||||
|
height: 0.82667rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.back img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.back p {
|
||||||
|
color: #fff;
|
||||||
|
font-size: 0.42667rem;
|
||||||
|
position: absolute;
|
||||||
|
width: 9rem;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
height: 100%;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 0.82667rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
width: 10rem;
|
||||||
|
height: 14.56rem;
|
||||||
|
background: url(../images/header.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
position: relative;
|
||||||
|
margin: 0 auto 0.24rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header .rule_icon {
|
||||||
|
width: 1.14667rem;
|
||||||
|
height: 3.4rem;
|
||||||
|
position: absolute;
|
||||||
|
right: 0rem;
|
||||||
|
top: 6.25333rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tabBox {
|
||||||
|
width: 7.66667rem;
|
||||||
|
height: 1.13333rem;
|
||||||
|
margin: 0 auto 0.22667rem;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tabBox div {
|
||||||
|
width: 3.58667rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tabBox .tab1 {
|
||||||
|
background: url(../images/tab1.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tabBox .tab2 {
|
||||||
|
background: url(../images/tab2.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tabBox .tabAct1 {
|
||||||
|
background: url(../images/tabAct1.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tabBox .tabAct2 {
|
||||||
|
background: url(../images/tabAct2.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page1 {
|
||||||
|
width: 9.44rem;
|
||||||
|
height: 18.6rem;
|
||||||
|
margin: 0 auto 0.34667rem;
|
||||||
|
background: url(../images/page1Bg.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 {
|
||||||
|
display: none;
|
||||||
|
width: 9.44rem;
|
||||||
|
height: 18.42667rem;
|
||||||
|
background: url(../images/page2Bg.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
margin: 0 auto 2.06667rem;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .tablist {
|
||||||
|
width: 4.90667rem;
|
||||||
|
height: 0.70667rem;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin: 0.50667rem auto 0.93333rem;
|
||||||
|
background: url(../images/tabListBg.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .tablist div {
|
||||||
|
width: 2.45333rem;
|
||||||
|
height: 0.70667rem;
|
||||||
|
line-height: 0.70667rem;
|
||||||
|
color: #FFFFFF;
|
||||||
|
font-size: 0.38667rem;
|
||||||
|
font-weight: 500;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .tablist .act {
|
||||||
|
background: url(../images/tabListAct.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .top3Box {
|
||||||
|
width: 8.33333rem;
|
||||||
|
height: 3.13333rem;
|
||||||
|
position: relative;
|
||||||
|
margin: 0 auto 0.33333rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .top3Box .no1 {
|
||||||
|
width: 2.73333rem;
|
||||||
|
height: 3.49333rem;
|
||||||
|
background: url(../images/no1Bg.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .top3Box .no1 .ts {
|
||||||
|
width: 1.56rem;
|
||||||
|
height: 1.58667rem;
|
||||||
|
z-index: 2;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: 1.96rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .top3Box .no1 .tx {
|
||||||
|
width: 1.21333rem;
|
||||||
|
height: 1.21333rem;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: 2.10667rem;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .top3Box .no1 .name {
|
||||||
|
width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
color: #AE3E4E;
|
||||||
|
font-size: 0.30667rem;
|
||||||
|
font-weight: 500;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: 1.38667rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .top3Box .no1 p {
|
||||||
|
width: 100%;
|
||||||
|
color: #AE3E4E;
|
||||||
|
font-size: 0.26667rem;
|
||||||
|
font-weight: 400;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: 0.70667rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .top3Box .no1 .score {
|
||||||
|
width: 100%;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 0.26667rem;
|
||||||
|
font-weight: 400;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: 0.24rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .top3Box .no2 {
|
||||||
|
width: 2.73333rem;
|
||||||
|
height: 3.13333rem;
|
||||||
|
background: url(../images/no23Bg.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
position: absolute;
|
||||||
|
left: 0%;
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .top3Box .no2 .ts {
|
||||||
|
width: 1.56rem;
|
||||||
|
height: 1.58667rem;
|
||||||
|
z-index: 2;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: 1.72rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .top3Box .no2 .tx {
|
||||||
|
width: 1.21333rem;
|
||||||
|
height: 1.21333rem;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: 1.89333rem;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .top3Box .no2 .name {
|
||||||
|
width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
color: #AE3E4E;
|
||||||
|
font-size: 0.30667rem;
|
||||||
|
font-weight: 500;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: 1.26667rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .top3Box .no2 p {
|
||||||
|
width: 100%;
|
||||||
|
color: #AE3E4E;
|
||||||
|
font-size: 0.26667rem;
|
||||||
|
font-weight: 400;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: 0.72rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .top3Box .no2 .score {
|
||||||
|
width: 100%;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 0.26667rem;
|
||||||
|
font-weight: 400;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: 0.26667rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .top3Box .no3 {
|
||||||
|
width: 2.73333rem;
|
||||||
|
height: 3.13333rem;
|
||||||
|
background: url(../images/no23Bg.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
position: absolute;
|
||||||
|
right: 0%;
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .top3Box .no3 .ts {
|
||||||
|
width: 1.56rem;
|
||||||
|
height: 1.58667rem;
|
||||||
|
z-index: 2;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: 1.72rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .top3Box .no3 .tx {
|
||||||
|
width: 1.21333rem;
|
||||||
|
height: 1.21333rem;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: 1.89333rem;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .top3Box .no3 .name {
|
||||||
|
width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
color: #AE3E4E;
|
||||||
|
font-size: 0.30667rem;
|
||||||
|
font-weight: 500;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: 1.26667rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .top3Box .no3 p {
|
||||||
|
width: 100%;
|
||||||
|
color: #AE3E4E;
|
||||||
|
font-size: 0.26667rem;
|
||||||
|
font-weight: 400;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: 0.72rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .top3Box .no3 .score {
|
||||||
|
width: 100%;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 0.26667rem;
|
||||||
|
font-weight: 400;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: 0.26667rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 ul {
|
||||||
|
width: 9.26667rem;
|
||||||
|
height: 12.6rem;
|
||||||
|
overflow-y: scroll;
|
||||||
|
margin: 0 auto 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 ul::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 ul li {
|
||||||
|
width: 100%;
|
||||||
|
height: 1.53333rem;
|
||||||
|
background: url(../images/liBg.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
margin-bottom: 0.02667rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 ul li .num {
|
||||||
|
width: 0.46667rem;
|
||||||
|
height: 1.53333rem;
|
||||||
|
line-height: 1.53333rem;
|
||||||
|
color: #AE3E4E;
|
||||||
|
font-size: 0.4rem;
|
||||||
|
font-weight: 400;
|
||||||
|
margin-left: 0.38667rem;
|
||||||
|
text-align: center;
|
||||||
|
margin-right: 0.6rem;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 ul li .tx {
|
||||||
|
width: 1.16rem;
|
||||||
|
height: 1.16rem;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 0.02667rem solid #AE3E4E;
|
||||||
|
margin-top: 0.2rem;
|
||||||
|
margin-right: 0.37333rem;
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 ul li .name {
|
||||||
|
width: 3rem;
|
||||||
|
height: 1.53333rem;
|
||||||
|
line-height: 1.53333rem;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
color: #AE3E4E;
|
||||||
|
font-size: 0.36rem;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 ul li .score {
|
||||||
|
float: right;
|
||||||
|
height: 1.53333rem;
|
||||||
|
line-height: 1.53333rem;
|
||||||
|
color: #AE3E4E;
|
||||||
|
font-weight: 400;
|
||||||
|
margin-right: 0.56rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .my {
|
||||||
|
position: fixed;
|
||||||
|
width: 10rem;
|
||||||
|
height: 2.06667rem;
|
||||||
|
background: url(../images/my.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
margin-bottom: 0.02667rem;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .my .num {
|
||||||
|
width: 1.33333rem;
|
||||||
|
height: 2.06667rem;
|
||||||
|
line-height: 2.06667rem;
|
||||||
|
color: #AE3E4E;
|
||||||
|
font-size: 0.4rem;
|
||||||
|
font-weight: 400;
|
||||||
|
margin-left: 0.38667rem;
|
||||||
|
text-align: center;
|
||||||
|
margin-right: 0.25333rem;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .my .tx {
|
||||||
|
width: 1.16rem;
|
||||||
|
height: 1.16rem;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 0.02667rem solid #AE3E4E;
|
||||||
|
margin-top: 0.42667rem;
|
||||||
|
margin-right: 0.37333rem;
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .my .name {
|
||||||
|
width: 3rem;
|
||||||
|
height: 2.06667rem;
|
||||||
|
line-height: 2.06667rem;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
color: #AE3E4E;
|
||||||
|
font-size: 0.36rem;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 .my .score {
|
||||||
|
float: right;
|
||||||
|
height: 2.06667rem;
|
||||||
|
line-height: 2.06667rem;
|
||||||
|
color: #AE3E4E;
|
||||||
|
font-weight: 400;
|
||||||
|
margin-right: 0.56rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rule {
|
||||||
|
display: none;
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
right: 0;
|
||||||
|
z-index: 999;
|
||||||
|
background: rgba(0, 0, 0, 0.6);
|
||||||
|
}
|
||||||
|
|
||||||
|
.rule .rule_in {
|
||||||
|
width: 8.76rem;
|
||||||
|
height: 13.13333rem;
|
||||||
|
background: url(../images/ruleBg.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.rule .rule_in .rulebox {
|
||||||
|
width: 8.06667rem;
|
||||||
|
height: 11.5rem;
|
||||||
|
margin: 1.38667rem auto 0;
|
||||||
|
overflow-y: scroll;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rule .rule_in .rulebox::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rule .rule_in .rulebox img {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
507
view/peko/activity/2024-goddessesDay/css/index.scss
Normal file
@@ -0,0 +1,507 @@
|
|||||||
|
@function px2rem($px) {
|
||||||
|
@return $px / 75+rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
html,
|
||||||
|
body {
|
||||||
|
width: 100%;
|
||||||
|
background: #FBABAD;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 返回按钮
|
||||||
|
.back {
|
||||||
|
position: fixed;
|
||||||
|
top: px2rem(70);
|
||||||
|
left: px2rem(34);
|
||||||
|
z-index: 99;
|
||||||
|
width: px2rem(62);
|
||||||
|
height: px2rem(62);
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
color: #fff;
|
||||||
|
font-size: px2rem(32);
|
||||||
|
position: absolute;
|
||||||
|
width: 9rem;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
height: 100%;
|
||||||
|
text-align: center;
|
||||||
|
line-height: px2rem(62);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
width: px2rem(750);
|
||||||
|
height: px2rem(1092);
|
||||||
|
background: url(../images/header.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
position: relative;
|
||||||
|
margin: 0 auto px2rem(18);
|
||||||
|
|
||||||
|
.rule_icon {
|
||||||
|
width: px2rem(86);
|
||||||
|
height: px2rem(255);
|
||||||
|
position: absolute;
|
||||||
|
right: px2rem(0);
|
||||||
|
top: px2rem(469);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.tabBox {
|
||||||
|
width: px2rem(575);
|
||||||
|
height: px2rem(85);
|
||||||
|
margin: 0 auto px2rem(17);
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
div {
|
||||||
|
width: px2rem(269);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab1 {
|
||||||
|
background: url(../images/tab1.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab2 {
|
||||||
|
background: url(../images/tab2.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tabAct1 {
|
||||||
|
background: url(../images/tabAct1.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tabAct2 {
|
||||||
|
background: url(../images/tabAct2.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.page1 {
|
||||||
|
// display: none;
|
||||||
|
width: px2rem(708);
|
||||||
|
height: px2rem(1395);
|
||||||
|
margin: 0 auto px2rem(26);
|
||||||
|
background: url(../images/page1Bg.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page2 {
|
||||||
|
display: none;
|
||||||
|
width: px2rem(708);
|
||||||
|
height: px2rem(1382);
|
||||||
|
background: url(../images/page2Bg.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
margin: 0 auto px2rem(155);
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
.tablist {
|
||||||
|
width: px2rem(368);
|
||||||
|
height: px2rem(53);
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin: px2rem(38) auto px2rem(70);
|
||||||
|
background: url(../images/tabListBg.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
|
||||||
|
div {
|
||||||
|
width: px2rem(184);
|
||||||
|
height: px2rem(53);
|
||||||
|
line-height: px2rem(53);
|
||||||
|
color: #FFFFFF;
|
||||||
|
font-size: px2rem(29);
|
||||||
|
font-weight: 500;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.act {
|
||||||
|
background: url(../images/tabListAct.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.top3Box {
|
||||||
|
width: px2rem(625);
|
||||||
|
height: px2rem(235);
|
||||||
|
position: relative;
|
||||||
|
margin: 0 auto px2rem(25);
|
||||||
|
|
||||||
|
.no1 {
|
||||||
|
width: px2rem(205);
|
||||||
|
height: px2rem(262);
|
||||||
|
background: url(../images/no1Bg.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: 0;
|
||||||
|
|
||||||
|
.ts {
|
||||||
|
width: px2rem(117);
|
||||||
|
height: px2rem(119);
|
||||||
|
z-index: 2;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: px2rem(147);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tx {
|
||||||
|
width: px2rem(91);
|
||||||
|
height: px2rem(91);
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: px2rem(158);
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.name {
|
||||||
|
width: 100%;
|
||||||
|
//超出省略号
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
color: #AE3E4E;
|
||||||
|
font-size: px2rem(23);
|
||||||
|
font-weight: 500;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: px2rem(104);
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
width: 100%;
|
||||||
|
color: #AE3E4E;
|
||||||
|
font-size: px2rem(20);
|
||||||
|
font-weight: 400;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: px2rem(53);
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.score {
|
||||||
|
width: 100%;
|
||||||
|
color: #fff;
|
||||||
|
font-size: px2rem(20);
|
||||||
|
font-weight: 400;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: px2rem(18);
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.no2 {
|
||||||
|
width: px2rem(205);
|
||||||
|
height: px2rem(235);
|
||||||
|
background: url(../images/no23Bg.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
position: absolute;
|
||||||
|
left: 0%;
|
||||||
|
bottom: 0;
|
||||||
|
|
||||||
|
.ts {
|
||||||
|
width: px2rem(117);
|
||||||
|
height: px2rem(119);
|
||||||
|
z-index: 2;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: px2rem(129);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tx {
|
||||||
|
width: px2rem(91);
|
||||||
|
height: px2rem(91);
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: px2rem(142);
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.name {
|
||||||
|
width: 100%;
|
||||||
|
//超出省略号
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
color: #AE3E4E;
|
||||||
|
font-size: px2rem(23);
|
||||||
|
font-weight: 500;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: px2rem(95);
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
width: 100%;
|
||||||
|
color: #AE3E4E;
|
||||||
|
font-size: px2rem(20);
|
||||||
|
font-weight: 400;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: px2rem(54);
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.score {
|
||||||
|
width: 100%;
|
||||||
|
color: #fff;
|
||||||
|
font-size: px2rem(20);
|
||||||
|
font-weight: 400;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: px2rem(20);
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.no3 {
|
||||||
|
width: px2rem(205);
|
||||||
|
height: px2rem(235);
|
||||||
|
background: url(../images/no23Bg.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
position: absolute;
|
||||||
|
right: 0%;
|
||||||
|
bottom: 0;
|
||||||
|
|
||||||
|
.ts {
|
||||||
|
width: px2rem(117);
|
||||||
|
height: px2rem(119);
|
||||||
|
z-index: 2;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: px2rem(129);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tx {
|
||||||
|
width: px2rem(91);
|
||||||
|
height: px2rem(91);
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: px2rem(142);
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.name {
|
||||||
|
width: 100%;
|
||||||
|
//超出省略号
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
color: #AE3E4E;
|
||||||
|
font-size: px2rem(23);
|
||||||
|
font-weight: 500;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: px2rem(95);
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
width: 100%;
|
||||||
|
color: #AE3E4E;
|
||||||
|
font-size: px2rem(20);
|
||||||
|
font-weight: 400;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: px2rem(54);
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.score {
|
||||||
|
width: 100%;
|
||||||
|
color: #fff;
|
||||||
|
font-size: px2rem(20);
|
||||||
|
font-weight: 400;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: px2rem(20);
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
width: px2rem(695);
|
||||||
|
height: 12.6rem;
|
||||||
|
overflow-y: scroll;
|
||||||
|
margin: 0 auto 0;
|
||||||
|
|
||||||
|
&::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
li {
|
||||||
|
width: 100%;
|
||||||
|
height: px2rem(115);
|
||||||
|
background: url(../images/liBg.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
margin-bottom: px2rem(2);
|
||||||
|
|
||||||
|
.num {
|
||||||
|
width: px2rem(35);
|
||||||
|
height: px2rem(115);
|
||||||
|
line-height: px2rem(115);
|
||||||
|
color: #AE3E4E;
|
||||||
|
font-size: px2rem(30);
|
||||||
|
font-weight: 400;
|
||||||
|
margin-left: px2rem(29);
|
||||||
|
text-align: center;
|
||||||
|
margin-right: px2rem(45);
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tx {
|
||||||
|
width: px2rem(87);
|
||||||
|
height: px2rem(87);
|
||||||
|
border-radius: 50%;
|
||||||
|
border: px2rem(2) solid #AE3E4E;
|
||||||
|
margin-top: px2rem(15);
|
||||||
|
margin-right: px2rem(28);
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.name {
|
||||||
|
width: 3rem;
|
||||||
|
height: px2rem(115);
|
||||||
|
line-height: px2rem(115);
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
color: #AE3E4E;
|
||||||
|
font-size: px2rem(27);
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.score {
|
||||||
|
float: right;
|
||||||
|
height: px2rem(115);
|
||||||
|
line-height: px2rem(115);
|
||||||
|
color: #AE3E4E;
|
||||||
|
font-weight: 400;
|
||||||
|
margin-right: px2rem(42);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.my {
|
||||||
|
position: fixed;
|
||||||
|
width: px2rem(750);
|
||||||
|
height: px2rem(155);
|
||||||
|
background: url(../images/my.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
margin-bottom: px2rem(2);
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: 0;
|
||||||
|
|
||||||
|
.num {
|
||||||
|
width: px2rem(100);
|
||||||
|
height: px2rem(155);
|
||||||
|
line-height: px2rem(155);
|
||||||
|
color: #AE3E4E;
|
||||||
|
font-size: px2rem(30);
|
||||||
|
font-weight: 400;
|
||||||
|
margin-left: px2rem(29);
|
||||||
|
text-align: center;
|
||||||
|
margin-right: px2rem(19);
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tx {
|
||||||
|
width: px2rem(87);
|
||||||
|
height: px2rem(87);
|
||||||
|
border-radius: 50%;
|
||||||
|
border: px2rem(2) solid #AE3E4E;
|
||||||
|
margin-top: px2rem(32);
|
||||||
|
margin-right: px2rem(28);
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.name {
|
||||||
|
width: 3rem;
|
||||||
|
height: px2rem(155);
|
||||||
|
line-height: px2rem(155);
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
color: #AE3E4E;
|
||||||
|
font-size: px2rem(27);
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.score {
|
||||||
|
float: right;
|
||||||
|
height: px2rem(155);
|
||||||
|
line-height: px2rem(155);
|
||||||
|
color: #AE3E4E;
|
||||||
|
font-weight: 400;
|
||||||
|
margin-right: px2rem(42);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.rule {
|
||||||
|
display: none;
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
right: 0;
|
||||||
|
z-index: 999;
|
||||||
|
background: rgba(0, 0, 0, .6);
|
||||||
|
|
||||||
|
.rule_in {
|
||||||
|
width: px2rem(657);
|
||||||
|
height: px2rem(985);
|
||||||
|
background: url(../images/ruleBg.png) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
|
||||||
|
.rulebox {
|
||||||
|
width: px2rem(605);
|
||||||
|
height: 11.5rem;
|
||||||
|
margin: px2rem(104) auto 0;
|
||||||
|
overflow-y: scroll;
|
||||||
|
|
||||||
|
&::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
view/peko/activity/2024-goddessesDay/images/header.png
Normal file
After Width: | Height: | Size: 784 KiB |
BIN
view/peko/activity/2024-goddessesDay/images/liBg.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
view/peko/activity/2024-goddessesDay/images/logo.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
view/peko/activity/2024-goddessesDay/images/my.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
view/peko/activity/2024-goddessesDay/images/no1.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
view/peko/activity/2024-goddessesDay/images/no1Bg.png
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
view/peko/activity/2024-goddessesDay/images/no2.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
view/peko/activity/2024-goddessesDay/images/no23Bg.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
view/peko/activity/2024-goddessesDay/images/no3.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
view/peko/activity/2024-goddessesDay/images/page1Bg.png
Normal file
After Width: | Height: | Size: 539 KiB |
BIN
view/peko/activity/2024-goddessesDay/images/page2Bg.png
Normal file
After Width: | Height: | Size: 278 KiB |
BIN
view/peko/activity/2024-goddessesDay/images/rule.png
Normal file
After Width: | Height: | Size: 336 KiB |
BIN
view/peko/activity/2024-goddessesDay/images/ruleBg.png
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
view/peko/activity/2024-goddessesDay/images/rule_icon.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
view/peko/activity/2024-goddessesDay/images/tab1.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
view/peko/activity/2024-goddessesDay/images/tab2.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
view/peko/activity/2024-goddessesDay/images/tabAct1.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
view/peko/activity/2024-goddessesDay/images/tabAct2.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
view/peko/activity/2024-goddessesDay/images/tabListAct.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
view/peko/activity/2024-goddessesDay/images/tabListBg.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
view/peko/activity/2024-goddessesDay/images/travel/back.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
101
view/peko/activity/2024-goddessesDay/index.html
Normal file
@@ -0,0 +1,101 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>女神請就位</title>
|
||||||
|
<link rel="stylesheet" href="../../common/css/reset.css">
|
||||||
|
<link rel="stylesheet" href="./css/index.css">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<!-- 頂部返回 -->
|
||||||
|
<div class="back">
|
||||||
|
<img src="./images/travel/back.png" alt="">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- header -->
|
||||||
|
<div class="header">
|
||||||
|
<img src="./images/rule_icon.png" alt="" class="rule_icon">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- tab -->
|
||||||
|
<div class="tabBox">
|
||||||
|
<div class="tab1 tabAct1"></div>
|
||||||
|
<div class="tab2"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- page1 -->
|
||||||
|
<div class="page1"></div>
|
||||||
|
|
||||||
|
<!-- page2 -->
|
||||||
|
<div class="page2">
|
||||||
|
<!-- tab -->
|
||||||
|
<div class="tablist">
|
||||||
|
<div class="act">守護榜</div>
|
||||||
|
<div>女神榜</div>
|
||||||
|
</div>
|
||||||
|
<!-- 前三 -->
|
||||||
|
<div class="top3Box">
|
||||||
|
<div class="no1">
|
||||||
|
<img src="./images/no1.png" alt="" class="ts">
|
||||||
|
<img src="./images/logo.png" alt="" class="tx">
|
||||||
|
<div class="name">用戶昵稱</div>
|
||||||
|
<p>守護榜</p>
|
||||||
|
<div class="score">0</div>
|
||||||
|
</div>
|
||||||
|
<div class="no2">
|
||||||
|
<img src="./images/no2.png" alt="" class="ts">
|
||||||
|
<img src="./images/logo.png" alt="" class="tx">
|
||||||
|
<div class="name">用戶昵稱</div>
|
||||||
|
<p>守護榜</p>
|
||||||
|
<div class="score">0</div>
|
||||||
|
</div>
|
||||||
|
<div class="no3">
|
||||||
|
<img src="./images/no3.png" alt="" class="ts">
|
||||||
|
<img src="./images/logo.png" alt="" class="tx">
|
||||||
|
<div class="name">用戶昵稱</div>
|
||||||
|
<p>守護榜</p>
|
||||||
|
<div class="score">0</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 非前三 -->
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<div class="num">04</div>
|
||||||
|
<img src="./images/logo.png" alt="" class="tx">
|
||||||
|
<div class="name">用戶昵稱</div>
|
||||||
|
<div class="score">守護榜:0</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<!-- 我自己 -->
|
||||||
|
<div class="my">
|
||||||
|
<div class="num">未上榜</div>
|
||||||
|
<img src="./images/logo.png" alt="" class="tx">
|
||||||
|
<div class="name">用戶昵稱</div>
|
||||||
|
<div class="score">守護榜:0</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 活動規則 -->
|
||||||
|
<div class="rule">
|
||||||
|
<div class="rule_in">
|
||||||
|
<div class="rulebox">
|
||||||
|
<img src="./images/rule.png" alt="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
<script src="../../common/js/flexible.js"></script>
|
||||||
|
<script src="../../common/js/jquery-3.2.1.min.js"></script>
|
||||||
|
<script src="../../common/js/common2.js"></script>
|
||||||
|
<script src="../../common/js/layer.js"></script>
|
||||||
|
<script src="../../common/js/vconsole.min.js"></script>
|
||||||
|
<script src="../../common/js/route-constant.js"></script>
|
||||||
|
<script src="./js/index.js"></script>
|
||||||
|
|
||||||
|
</html>
|
140
view/peko/activity/2024-goddessesDay/js/index.js
Normal file
@@ -0,0 +1,140 @@
|
|||||||
|
let urlPrefix = getUrlPrefix()
|
||||||
|
let browser = checkVersion()
|
||||||
|
let env = EnvCheck();
|
||||||
|
if (env == 'test') {
|
||||||
|
new VConsole();
|
||||||
|
}
|
||||||
|
// 封裝layer消息提醒框
|
||||||
|
let layerIndex
|
||||||
|
const showLoading = (content = '加載中...') => {
|
||||||
|
layer.open({
|
||||||
|
type: 2,
|
||||||
|
shadeClose: false,
|
||||||
|
content,
|
||||||
|
success (e) {
|
||||||
|
layerIndex = $(e).attr('index')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
const hideLoading = (index) => {
|
||||||
|
layer.close(index)
|
||||||
|
}
|
||||||
|
const toastMsg = (content = '操作完成', time = 2) => {
|
||||||
|
layer.open({
|
||||||
|
content,
|
||||||
|
time,
|
||||||
|
skin: 'msg'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
var rankType = 2;
|
||||||
|
// 初始化函數
|
||||||
|
$(function () {
|
||||||
|
getInfoFromClient()
|
||||||
|
setTimeout(function () {
|
||||||
|
// 頁面全屏
|
||||||
|
if (browser.app) {
|
||||||
|
if (browser.android) {
|
||||||
|
window.androidJsObj.initShowNav(false)
|
||||||
|
} else {
|
||||||
|
window.webkit.messageHandlers.initShowNav.postMessage(0)
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// 頂部返回事件
|
||||||
|
$('.back').click(() => {
|
||||||
|
if (browser.android) {
|
||||||
|
window.androidJsObj.closeWebView()
|
||||||
|
} else {
|
||||||
|
window.webkit.messageHandlers.closeWebView.postMessage(null)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}, 100)
|
||||||
|
})
|
||||||
|
|
||||||
|
// 獲取榜單接口
|
||||||
|
function getRank () {
|
||||||
|
showLoading()
|
||||||
|
networkRequest({
|
||||||
|
type: 'get',
|
||||||
|
url: urlPrefix + '/act/special/gift/getRank',
|
||||||
|
data: {
|
||||||
|
rankType,
|
||||||
|
pageSize: 30
|
||||||
|
},
|
||||||
|
success (res) {
|
||||||
|
if (res.code === 200) {
|
||||||
|
// 處理前三
|
||||||
|
var top3 = res.data.rankList.slice(0, 3);
|
||||||
|
var notTop3 = res.data.rankList.slice(3);
|
||||||
|
if (top3.length < 3) {
|
||||||
|
let arr = new Array(3 - top3.length).fill({
|
||||||
|
avatar: './images/logo.png',
|
||||||
|
nick: '虛位以待',
|
||||||
|
score: "0",
|
||||||
|
})
|
||||||
|
top3.push(...arr)
|
||||||
|
}
|
||||||
|
top3.forEach((res, i) => {
|
||||||
|
$(`.page2 .top3Box .no${i + 1} .tx`).attr('src', res.avatar);
|
||||||
|
$(`.page2 .top3Box .no${i + 1} .name`).text(res.nick);
|
||||||
|
$(`.page2 .top3Box .no${i + 1} p`).text(`${rankType == 2 ? "守護值" : "女神值"}`);
|
||||||
|
$(`.page2 .top3Box .no${i + 1} .score`).text(unitProcessing(res.score, 10000, 1, 'w'));
|
||||||
|
})
|
||||||
|
// 非前三
|
||||||
|
$('.page2 ul li').remove();
|
||||||
|
var str = '';
|
||||||
|
notTop3.forEach((res, i) => {
|
||||||
|
str += `
|
||||||
|
<li>
|
||||||
|
<div class="num">${res.ranking}</div>
|
||||||
|
<img src="${res.avatar}" alt="" class="tx">
|
||||||
|
<div class="name">${res.nick}</div>
|
||||||
|
<div class="score">${rankType == 2 ? "守護值" : "女神值"}:${unitProcessing(res.score, 10000, 1, 'w')}</div>
|
||||||
|
</li>
|
||||||
|
`
|
||||||
|
})
|
||||||
|
$('.page2 ul').append(str);
|
||||||
|
// 處理自己榜單
|
||||||
|
$('.page2 .my .num').text(res.data.meRank.ranking == 0 ? '未上榜' : res.data.meRank.ranking);
|
||||||
|
$('.page2 .my .tx').attr('src', res.data.meRank.avatar);
|
||||||
|
$('.page2 .my .name').text(res.data.meRank.nick);
|
||||||
|
$('.page2 .my .score').text(`${rankType == 2 ? "守護值:" : "女神值:"}${unitProcessing(res.data.meRank.score, 10000, 1, 'w')}`);
|
||||||
|
} else {
|
||||||
|
toastMsg(res.message)
|
||||||
|
}
|
||||||
|
hideLoading(layerIndex)
|
||||||
|
},
|
||||||
|
error (err) {
|
||||||
|
hideLoading(layerIndex)
|
||||||
|
toastMsg('網路錯誤,請退出重進')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// tab切換
|
||||||
|
$('.tabBox div').click(function () {
|
||||||
|
var i = $(this).index() + 1;
|
||||||
|
$('.tabBox div').removeClass('tabAct1').removeClass('tabAct2');
|
||||||
|
$(this).addClass(`tabAct${i}`);
|
||||||
|
$('.page1,.page2').hide();
|
||||||
|
$(`.page${i}`).show();
|
||||||
|
if (i == 2) {
|
||||||
|
getRank();
|
||||||
|
}
|
||||||
|
})
|
||||||
|
$('.page2 .tablist div').click(function () {
|
||||||
|
var i = $(this).index() + 1;
|
||||||
|
$(this).addClass('act').siblings().removeClass('act');
|
||||||
|
rankType = i == 1 ? 2 : 4;
|
||||||
|
getRank();
|
||||||
|
})
|
||||||
|
|
||||||
|
// 打開規則
|
||||||
|
$('.header .rule_icon').click(function () {
|
||||||
|
$('.rule').show();
|
||||||
|
bodyScroolFun(true);
|
||||||
|
})
|
||||||
|
// 關閉規則
|
||||||
|
$('.rule').click(function () {
|
||||||
|
$('.rule').hide();
|
||||||
|
bodyScroolFun(false);
|
||||||
|
})
|
1449
view/peko/activity/2024-whiteLove/css/index.css
Normal file
1486
view/peko/activity/2024-whiteLove/css/index.scss
Normal file
BIN
view/peko/activity/2024-whiteLove/images/1.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
view/peko/activity/2024-whiteLove/images/2.png
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
view/peko/activity/2024-whiteLove/images/3.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
view/peko/activity/2024-whiteLove/images/4.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
view/peko/activity/2024-whiteLove/images/5.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
view/peko/activity/2024-whiteLove/images/6.png
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
view/peko/activity/2024-whiteLove/images/bottom.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
view/peko/activity/2024-whiteLove/images/buyBgPub.png
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
view/peko/activity/2024-whiteLove/images/buyTitle.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
view/peko/activity/2024-whiteLove/images/buy_z.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
view/peko/activity/2024-whiteLove/images/close.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
view/peko/activity/2024-whiteLove/images/diamond.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
view/peko/activity/2024-whiteLove/images/end.png
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
view/peko/activity/2024-whiteLove/images/endTitle.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
view/peko/activity/2024-whiteLove/images/failureBuyTitle.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
view/peko/activity/2024-whiteLove/images/giftNameBg.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
view/peko/activity/2024-whiteLove/images/header.png
Normal file
After Width: | Height: | Size: 202 KiB |
BIN
view/peko/activity/2024-whiteLove/images/logo.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
view/peko/activity/2024-whiteLove/images/loveBox.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
view/peko/activity/2024-whiteLove/images/love_h.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
view/peko/activity/2024-whiteLove/images/love_z.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
view/peko/activity/2024-whiteLove/images/mp.jpg
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
view/peko/activity/2024-whiteLove/images/mp.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
view/peko/activity/2024-whiteLove/images/myBg.png
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
view/peko/activity/2024-whiteLove/images/myBg2.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
view/peko/activity/2024-whiteLove/images/ok.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
view/peko/activity/2024-whiteLove/images/page1Bg.png
Normal file
After Width: | Height: | Size: 351 KiB |
BIN
view/peko/activity/2024-whiteLove/images/page1Bg1Title.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
view/peko/activity/2024-whiteLove/images/page1Bg2Title.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
view/peko/activity/2024-whiteLove/images/page1_bg1.png
Normal file
After Width: | Height: | Size: 218 KiB |
BIN
view/peko/activity/2024-whiteLove/images/page1_bg2.png
Normal file
After Width: | Height: | Size: 51 KiB |
BIN
view/peko/activity/2024-whiteLove/images/page2Bg.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
view/peko/activity/2024-whiteLove/images/page2But.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
view/peko/activity/2024-whiteLove/images/page2Buy_icon.png
Normal file
After Width: | Height: | Size: 6.0 KiB |
BIN
view/peko/activity/2024-whiteLove/images/page2RuleTitle.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
view/peko/activity/2024-whiteLove/images/page2Title.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
view/peko/activity/2024-whiteLove/images/page3Li.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
view/peko/activity/2024-whiteLove/images/page3RuleBg.png
Normal file
After Width: | Height: | Size: 72 KiB |
BIN
view/peko/activity/2024-whiteLove/images/page3Rule_icon.png
Normal file
After Width: | Height: | Size: 6.0 KiB |
BIN
view/peko/activity/2024-whiteLove/images/page3Rule_inBg.png
Normal file
After Width: | Height: | Size: 164 KiB |
BIN
view/peko/activity/2024-whiteLove/images/page3Title.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
view/peko/activity/2024-whiteLove/images/page3Top1.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
view/peko/activity/2024-whiteLove/images/page3Top2.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
view/peko/activity/2024-whiteLove/images/page3Top3.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
view/peko/activity/2024-whiteLove/images/page3boxBg.png
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
view/peko/activity/2024-whiteLove/images/page3mp.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
view/peko/activity/2024-whiteLove/images/page3qp.png
Normal file
After Width: | Height: | Size: 5.8 KiB |
BIN
view/peko/activity/2024-whiteLove/images/page3ts.png
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
view/peko/activity/2024-whiteLove/images/pageTop3.png
Normal file
After Width: | Height: | Size: 208 KiB |
BIN
view/peko/activity/2024-whiteLove/images/qp.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
view/peko/activity/2024-whiteLove/images/ruleTitle.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
view/peko/activity/2024-whiteLove/images/rule_icon.png
Normal file
After Width: | Height: | Size: 6.9 KiB |
BIN
view/peko/activity/2024-whiteLove/images/sureTitle.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
view/peko/activity/2024-whiteLove/images/tab1.png
Normal file
After Width: | Height: | Size: 6.2 KiB |
BIN
view/peko/activity/2024-whiteLove/images/tab2.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
view/peko/activity/2024-whiteLove/images/tasks1.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
view/peko/activity/2024-whiteLove/images/tasks2.png
Normal file
After Width: | Height: | Size: 90 KiB |
BIN
view/peko/activity/2024-whiteLove/images/top.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
view/peko/activity/2024-whiteLove/images/travel/back.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
268
view/peko/activity/2024-whiteLove/index.html
Normal file
@@ -0,0 +1,268 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>熱戀情人節</title>
|
||||||
|
<link rel="stylesheet" href="../../common/css/reset.css">
|
||||||
|
<link rel="stylesheet" href="./css/index.css">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<!-- 頂部返回 -->
|
||||||
|
<div class="back">
|
||||||
|
<img src="./images/travel/back.png" alt="">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 頭部 -->
|
||||||
|
<div class="header">
|
||||||
|
<div class="rule_icon"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- tab切換 -->
|
||||||
|
<div class="tab">
|
||||||
|
<div class="act">告白攻略</div>
|
||||||
|
<div>甜蜜升溫</div>
|
||||||
|
<div>熱戀時刻</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 頁面1 -->
|
||||||
|
<div class="page1">
|
||||||
|
<div class="page1Bg"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 頁面2 -->
|
||||||
|
<div class="page2">
|
||||||
|
<div class="box">
|
||||||
|
<!-- 標題 -->
|
||||||
|
<img src="./images/page2Title.png" alt="" class="title">
|
||||||
|
<!-- 購買記錄icon -->
|
||||||
|
<img src="./images/page2Buy_icon.png" alt="" class="page2Buy_icon">
|
||||||
|
<!-- 文案 -->
|
||||||
|
<i class="i1">剩余時間:00天12時12分</i>
|
||||||
|
<i class="i2">活動期間送禮到達指定任務值,可解鎖超珍稀限時禮物直購權</i>
|
||||||
|
<i class="i3">(1鉆石送禮=1禮物值)</i>
|
||||||
|
<!-- 任務 -->
|
||||||
|
<div class="tasks tasks1 taskss">
|
||||||
|
<div class="giftBox">
|
||||||
|
<div class="qp"></div>
|
||||||
|
<img src="./images/tasks1.png" alt="" class="gift">
|
||||||
|
<div class="giftName">心動一剎</div>
|
||||||
|
<div class="giftVAlue">13140鉆</div>
|
||||||
|
</div>
|
||||||
|
<p class="p1">每達到52000禮物值,可解鎖1次直購權</p>
|
||||||
|
<p class="p2">禮物值</p>
|
||||||
|
<p class="p3">當前可購買: X個</p>
|
||||||
|
<div class="line">
|
||||||
|
<span></span>
|
||||||
|
<i class="i">0/1000</i>
|
||||||
|
</div>
|
||||||
|
<div class="buy">
|
||||||
|
<img src="./images/diamond.png" alt="" class="diamond">
|
||||||
|
1314購買
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="tasks2 taskss">
|
||||||
|
<div class="giftBox">
|
||||||
|
<div class="qp"></div>
|
||||||
|
<img src="./images/tasks2.png" alt="" class="gift">
|
||||||
|
<div class="giftName">絕對寵溺</div>
|
||||||
|
<div class="giftVAlue">33440鉆</div>
|
||||||
|
</div>
|
||||||
|
<p class="p1">每達到1314520禮物值,可解鎖1次直購權</p>
|
||||||
|
<p class="p2">禮物值</p>
|
||||||
|
<p class="p3">當前可購買: X個</p>
|
||||||
|
<div class="line">
|
||||||
|
<span></span>
|
||||||
|
<i class="i">0/2000</i>
|
||||||
|
</div>
|
||||||
|
<div class="buy">
|
||||||
|
<img src="./images/diamond.png" alt="" class="diamond">
|
||||||
|
3344購買
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 頁面3 -->
|
||||||
|
<div class="page3">
|
||||||
|
<!-- 前三 -->
|
||||||
|
<div class="top3">
|
||||||
|
<!-- 標題 -->
|
||||||
|
<div class="title">熱戀榜單</div>
|
||||||
|
<!-- 榜單獎勵 -->
|
||||||
|
<img src="./images/page3Rule_icon.png" alt="" class="rule_icon">
|
||||||
|
<!-- 前三列錶 -->
|
||||||
|
<div class="no1">
|
||||||
|
<img src="./images/page3Top1.png" alt="" class="ts">
|
||||||
|
<img src="./images/logo.png" alt="" class="leftlogo">
|
||||||
|
<img src="./images/logo.png" alt="" class="rightlogo">
|
||||||
|
<div class="name">我是男用戶6...<i> & </i>我是女用戶6...</div>
|
||||||
|
<span class="score">9999熱戀值</span>
|
||||||
|
</div>
|
||||||
|
<div class="no2">
|
||||||
|
<img src="./images/page3Top2.png" alt="" class="ts">
|
||||||
|
<img src="./images/logo.png" alt="" class="leftlogo">
|
||||||
|
<img src="./images/logo.png" alt="" class="rightlogo">
|
||||||
|
<div class="name">我是男用戶6...<i> & </i>我是女用戶6...</div>
|
||||||
|
<span class="score">9999熱戀值</span>
|
||||||
|
</div>
|
||||||
|
<div class="no3">
|
||||||
|
<img src="./images/page3Top3.png" alt="" class="ts">
|
||||||
|
<img src="./images/logo.png" alt="" class="leftlogo">
|
||||||
|
<img src="./images/logo.png" alt="" class="rightlogo">
|
||||||
|
<div class="name">我是男用戶6...<i> & </i>我是女用戶6...</div>
|
||||||
|
<span class="score">9999熱戀值</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 非前三 -->
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<div class="num">4</div>
|
||||||
|
<img src="./images/logo.png" alt="" class="leftTx">
|
||||||
|
<img src="./images/logo.png" alt="" class="rightTx">
|
||||||
|
<div class="leftName">我是男用戶的...</div>
|
||||||
|
<div class="rightName">我是男用戶的...</div>
|
||||||
|
<div class="score">0</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<!-- 自己組合 -->
|
||||||
|
<div class="my">
|
||||||
|
<img src="./images/top.png" alt="" class="icon">
|
||||||
|
<div class="scroll">
|
||||||
|
<div class="myBox">
|
||||||
|
<div class="num">4</div>
|
||||||
|
<img src="./images/logo.png" alt="" class="leftTx">
|
||||||
|
<img src="./images/logo.png" alt="" class="rightTx">
|
||||||
|
<div class="leftName">1我是男用戶的...</div>
|
||||||
|
<div class="rightName">1我是男用戶的...</div>
|
||||||
|
<div class="score">0</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 購買記錄彈窗 -->
|
||||||
|
<div class="buyRecords">
|
||||||
|
<div class="buyRecords_in">
|
||||||
|
<!-- 標題 -->
|
||||||
|
<img src="./images/page2RuleTitle.png" alt="" class="title">
|
||||||
|
<!-- 列錶 -->
|
||||||
|
<ul>
|
||||||
|
<li class="liTitle">
|
||||||
|
<div>購買時間</div>
|
||||||
|
<div>購買禮物</div>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<div class="left">
|
||||||
|
<p>2024/2/1</p>
|
||||||
|
<span>00:00:00</span>
|
||||||
|
</div>
|
||||||
|
<div>xxxx禮物*1個</div>
|
||||||
|
</li>
|
||||||
|
<li class="null">
|
||||||
|
<div>暫無購買記錄~</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 活動規則彈窗 -->
|
||||||
|
<div class="rule">
|
||||||
|
<div class="rule_in">
|
||||||
|
<!-- 標題 -->
|
||||||
|
<img src="./images/ruleTitle.png" alt="" class="title">
|
||||||
|
<!-- 列錶 -->
|
||||||
|
<ul>
|
||||||
|
<li>一、活動時間:</li>
|
||||||
|
<li>2024年3月13日11:00:00-3月16日23:59:59</li>
|
||||||
|
<li>二、活動規則</li>
|
||||||
|
<li>1.告白攻略</li>
|
||||||
|
<li>a.活動期間禮物欄限時上新白色情人節限定禮物;</li>
|
||||||
|
<li>b.活動期間送/收到白色情人節限定全套禮物,可獲得一套銘牌、頭飾、氣泡裝扮(根據送禮方or收禮方贈對應裝扮款式);</li>
|
||||||
|
<li>c.每送齊或收齊一次全套,所獲得的裝扮贈禮天數會纍加;</li>
|
||||||
|
<li>2.甜蜜升溫</li>
|
||||||
|
<li>a.活動期間,超珍稀禮物直購限時開放,贈送禮物每達指定價值即可解鎖直購;</li>
|
||||||
|
<li>b.贈送禮物價值每滿13140鉆,即可購買【心動一剎13140鉆】,贈送禮物價值每滿33440鉆,即可購買【絕對寵溺33440鉆】;</li>
|
||||||
|
<li>c.購買的禮物將直接放入背包當中;</li>
|
||||||
|
<li>3.熱戀時刻</li>
|
||||||
|
<li>a.活動期間,比拼熱戀值;</li>
|
||||||
|
<li>b.詳細榜單規則與獎勵可見榜單說明;</li>
|
||||||
|
<li> 三、特別說明</li>
|
||||||
|
<li>1.靚號持有者需要在活動結束後2周內確認靚號,否則將自動過期無法使用;</li>
|
||||||
|
<li>2.本活動以及獎勵與蘋果公司無關。</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- 活動結束彈窗 -->
|
||||||
|
<div class="end">
|
||||||
|
<div class="end_in">
|
||||||
|
<img src="./images/endTitle.png" alt="" class="title">
|
||||||
|
<div class="but">檢視榜單</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 購買失敗彈窗 -->
|
||||||
|
<div class="failureBuy">
|
||||||
|
<div class="failureBuy_in">
|
||||||
|
<img src="./images/failureBuyTitle.png" alt="" class="title">
|
||||||
|
<div class="text">鉆石余額不足</div>
|
||||||
|
<div class="but close">關閉</div>
|
||||||
|
<div class="but ok">前往充值</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 購買成功彈窗 -->
|
||||||
|
<div class="success">
|
||||||
|
<div class="success_in">
|
||||||
|
<img src="./images/buyTitle.png" alt="" class="title">
|
||||||
|
<div class="giftListSuccess">
|
||||||
|
<div class="qp"></div>
|
||||||
|
<img src="./images/logo.png" alt="" class="gift">
|
||||||
|
<div class="giftName">禮物名稱</div>
|
||||||
|
<div class="giftVAlue">0鉆</div>
|
||||||
|
</div>
|
||||||
|
<div class="text">xxxx禮物名*1已發放至「我的背包」</div>
|
||||||
|
<div class="but">知道了</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 二次確認購買彈窗 -->
|
||||||
|
<div class="sure">
|
||||||
|
<div class="sure_in">
|
||||||
|
<img src="./images/sureTitle.png" alt="" class="title">
|
||||||
|
<div class="text">購買成功後將自動發放至「我的背包」</div>
|
||||||
|
<div class="giftListSuccess">
|
||||||
|
<div class="qp"></div>
|
||||||
|
<img src="./images/logo.png" alt="" class="gift">
|
||||||
|
<div class="giftName">禮物名稱</div>
|
||||||
|
<div class="giftVAlue">0鉆</div>
|
||||||
|
</div>
|
||||||
|
<div class="but close">下次再說</div>
|
||||||
|
<div class="but ok">立即購買</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 榜單獎勵彈窗 -->
|
||||||
|
<div class="page3Rule">
|
||||||
|
<div class="page3Rule_in">
|
||||||
|
<img src="./images/page3Title.png" alt="" class="title">
|
||||||
|
<div class="box">
|
||||||
|
<img src="./images/page3Rule_inBg.png" alt="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
|
<script src="../../common/js/flexible.js"></script>
|
||||||
|
<script src="../../common/js/jquery-3.2.1.min.js"></script>
|
||||||
|
<script src="../../common/js/common2.js"></script>
|
||||||
|
<script src="../../common/js/layer.js"></script>
|
||||||
|
<script src="../../common/js/vconsole.min.js"></script>
|
||||||
|
<script src="../../common/js/route-constant.js"></script>
|
||||||
|
<script src="./js/index.js"></script>
|
516
view/peko/activity/2024-whiteLove/js/index.js
Normal file
@@ -0,0 +1,516 @@
|
|||||||
|
let urlPrefix = getUrlPrefix()
|
||||||
|
let browser = checkVersion()
|
||||||
|
let env = EnvCheck();
|
||||||
|
if (env == 'test') {
|
||||||
|
new VConsole();
|
||||||
|
}
|
||||||
|
// 封裝layer消息提醒框
|
||||||
|
let layerIndex
|
||||||
|
const showLoading = (content = '加載中...') => {
|
||||||
|
layer.open({
|
||||||
|
type: 2,
|
||||||
|
shadeClose: false,
|
||||||
|
content,
|
||||||
|
success (e) {
|
||||||
|
layerIndex = $(e).attr('index')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
const hideLoading = (index) => {
|
||||||
|
layer.close(index)
|
||||||
|
}
|
||||||
|
const toastMsg = (content = '操作完成', time = 2) => {
|
||||||
|
layer.open({
|
||||||
|
content,
|
||||||
|
time,
|
||||||
|
skin: 'msg'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
var activityCode1;
|
||||||
|
var activityCode2;
|
||||||
|
var activityCode;
|
||||||
|
var diamondNum;
|
||||||
|
var taskCode;
|
||||||
|
var taskIcon;
|
||||||
|
var taskName;
|
||||||
|
var showValue;
|
||||||
|
var countupTime;
|
||||||
|
// 初始化函數
|
||||||
|
$(function () {
|
||||||
|
getInfoFromClient()
|
||||||
|
setTimeout(function () {
|
||||||
|
// 頁面全屏
|
||||||
|
if (browser.app) {
|
||||||
|
if (browser.android) {
|
||||||
|
window.androidJsObj.initShowNav(false)
|
||||||
|
} else {
|
||||||
|
window.webkit.messageHandlers.initShowNav.postMessage(0)
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// 頂部返回事件
|
||||||
|
$('.back').click(() => {
|
||||||
|
if (browser.android) {
|
||||||
|
window.androidJsObj.closeWebView()
|
||||||
|
} else {
|
||||||
|
window.webkit.messageHandlers.closeWebView.postMessage(null)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
getTask_MENG_DONG_HUA_HE();
|
||||||
|
getTask_TIAN_MI_SHENG_WEN();
|
||||||
|
getRank();
|
||||||
|
}, 100)
|
||||||
|
})
|
||||||
|
// 獲取榜單接口
|
||||||
|
function getRank () {
|
||||||
|
showLoading()
|
||||||
|
networkRequest({
|
||||||
|
type: 'get',
|
||||||
|
url: urlPrefix + '/act/2024Valentines/cpRank/getRank',
|
||||||
|
success (res) {
|
||||||
|
if (res.code === 200) {
|
||||||
|
// 處理前三
|
||||||
|
var top3 = res.data.rankList.slice(0, 3);
|
||||||
|
var notTop3 = res.data.rankList.slice(3);
|
||||||
|
if (top3.length < 3) {
|
||||||
|
let arr = new Array(3 - top3.length).fill({
|
||||||
|
leftAvatar: './images/logo.png',
|
||||||
|
rightAvatar: './images/logo.png',
|
||||||
|
leftNick: '虛位以待',
|
||||||
|
rightNick: '虛位以待',
|
||||||
|
score: "0"
|
||||||
|
})
|
||||||
|
top3.push(...arr)
|
||||||
|
}
|
||||||
|
top3.forEach((res, i) => {
|
||||||
|
$(`.page3 .top3 .no${i + 1} .leftlogo`).attr('src', res.leftAvatar);
|
||||||
|
$(`.page3 .top3 .no${i + 1} .rightlogo`).attr('src', res.rightAvatar);
|
||||||
|
$(`.page3 .top3 .no${i + 1} .name`).html(`${res.leftNick.length > 6 ? res.leftNick.slice(0, 6) + '...' : res.leftNick}<i> & </i>${res.rightNick.length > 6 ? res.rightNick.slice(0, 6) + '...' : res.rightNick}`);
|
||||||
|
$(`.page3 .top3 .no${i + 1} .score`).text(unitProcessing(res.score, 10000, 1, 'w') + '熱戀值')
|
||||||
|
})
|
||||||
|
// 非前三
|
||||||
|
var str = '';
|
||||||
|
$('.page3 ul li').remove();
|
||||||
|
notTop3.forEach((res, i) => {
|
||||||
|
str += `
|
||||||
|
<li>
|
||||||
|
<div class="num">${res.ranking}</div>
|
||||||
|
<img src="${res.leftAvatar}" alt="" class="leftTx">
|
||||||
|
<img src="${res.rightAvatar}" alt="" class="rightTx">
|
||||||
|
<div class="leftName">${res.leftNick}</div>
|
||||||
|
<div class="rightName">${res.rightNick}</div>
|
||||||
|
<div class="score">${unitProcessing(res.score, 10000, 1, 'w')}</div>
|
||||||
|
</li>
|
||||||
|
`
|
||||||
|
})
|
||||||
|
$('.page3 ul').append(str);
|
||||||
|
// 處理自己榜單排名
|
||||||
|
$('.page3 .my .myBox').remove();
|
||||||
|
var strMy = '';
|
||||||
|
res.data.meRankList.forEach((res, i) => {
|
||||||
|
strMy += `
|
||||||
|
<div class="myBox">
|
||||||
|
<div class="num">${res.ranking == 0 ? '未上榜' : res.ranking}</div>
|
||||||
|
<img src="${res.leftAvatar}" alt="" class="leftTx">
|
||||||
|
<img src="${res.rightAvatar}" alt="" class="rightTx">
|
||||||
|
<div class="leftName">${res.leftNick}</div>
|
||||||
|
<div class="rightName">${res.rightNick}</div>
|
||||||
|
<div class="score">${unitProcessing(res.score, 10000, 1, 'w')}</div>
|
||||||
|
</div>
|
||||||
|
`
|
||||||
|
})
|
||||||
|
$('.page3 .my .scroll').append(strMy)
|
||||||
|
} else {
|
||||||
|
toastMsg(res.message)
|
||||||
|
}
|
||||||
|
hideLoading(layerIndex)
|
||||||
|
},
|
||||||
|
error (err) {
|
||||||
|
hideLoading(layerIndex)
|
||||||
|
toastMsg('網路錯誤,請退出重進')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 獲取萌動禮盒點亮任務接口
|
||||||
|
function activityInfo () {
|
||||||
|
showLoading()
|
||||||
|
networkRequest({
|
||||||
|
type: 'get',
|
||||||
|
url: urlPrefix + '/activity/info',
|
||||||
|
data: { activityCode: activityCode2 },
|
||||||
|
success (res) {
|
||||||
|
if (res.code === 200) {
|
||||||
|
if (res.data.endTime - res.timestamp > 0) {
|
||||||
|
countup(res.data.endTime - res.timestamp);
|
||||||
|
} else {
|
||||||
|
$('.end').show();
|
||||||
|
bodyScroolFun(true);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
toastMsg(res.message)
|
||||||
|
}
|
||||||
|
hideLoading(layerIndex)
|
||||||
|
},
|
||||||
|
error (err) {
|
||||||
|
hideLoading(layerIndex)
|
||||||
|
toastMsg('網路錯誤,請退出重進')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 倒計時
|
||||||
|
function countup (leftTime) {
|
||||||
|
clearTimeout(countupTime)
|
||||||
|
//獲取當前時間
|
||||||
|
// var now = nowTime;
|
||||||
|
var d = 0;
|
||||||
|
var h = 0;
|
||||||
|
var m = 0;
|
||||||
|
var s = 0;
|
||||||
|
//定義變數 d,h,m,s保存倒計時的時間
|
||||||
|
var d, h, m, s;
|
||||||
|
//遞歸每秒調⽤countTime⽅法,顯⽰動態時間效果
|
||||||
|
if (leftTime > 0) {
|
||||||
|
d = getzf(Math.floor(leftTime / 1000 / 60 / 60 / 24));
|
||||||
|
h = getzf(Math.floor(leftTime / 1000 / 60 / 60 % 24));
|
||||||
|
m = getzf(Math.floor(leftTime / 1000 / 60 % 60));
|
||||||
|
s = getzf(Math.floor(leftTime / 1000 % 60));
|
||||||
|
//將倒計時賦值到div中
|
||||||
|
$('.page2 .box .i1').text(`剩余時間:${d}天${h}時${m}分${s}秒`);
|
||||||
|
} else {
|
||||||
|
$('.page2 .box .i1').text(`剩余時間:已結束`);
|
||||||
|
|
||||||
|
}
|
||||||
|
if (leftTime > 0) {
|
||||||
|
leftTime = leftTime - 1000;
|
||||||
|
}
|
||||||
|
countupTime = setTimeout(function () {
|
||||||
|
countup(leftTime);
|
||||||
|
}, 1000);
|
||||||
|
}
|
||||||
|
// 獲取萌動禮盒點亮任務接口
|
||||||
|
function getTask_MENG_DONG_HUA_HE () {
|
||||||
|
showLoading()
|
||||||
|
networkRequest({
|
||||||
|
type: 'get',
|
||||||
|
url: urlPrefix + '/activity/task/user',
|
||||||
|
data: { componentCode: "MENG_DONG_HUA_HE" },
|
||||||
|
success (res) {
|
||||||
|
if (res.code === 200) {
|
||||||
|
// 渲染合成列錶
|
||||||
|
$('.page1 .bg1 .giftListBox .giftList').remove();
|
||||||
|
var str = '';
|
||||||
|
res.data[0].children.forEach((res, i) => {
|
||||||
|
str += `
|
||||||
|
<div class="giftList giftList${i + 1} ${res.completed ? '' : 'filter'}">
|
||||||
|
<div class="qp"></div>
|
||||||
|
<img src="${res.taskIcon}" alt="" class="gift">
|
||||||
|
<div class="giftName">${res.taskName}</div>
|
||||||
|
<div class="giftVAlue">${res.taskValue}鉆</div>
|
||||||
|
</div>
|
||||||
|
`
|
||||||
|
});
|
||||||
|
$('.page1 .bg1 .giftListBox').append(str);
|
||||||
|
activityCode1 = 'ACT_2024_WHITE_VALENTINES_DAY';
|
||||||
|
recordPage(activityCode1, 'MENG_DONG_HUA_HE',);
|
||||||
|
if (res.data[0].reward.granted) {
|
||||||
|
$('.page1 .bg1 .p3').show();
|
||||||
|
} else {
|
||||||
|
$('.page1 .bg1 .p3').hide();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
toastMsg(res.message)
|
||||||
|
}
|
||||||
|
hideLoading(layerIndex)
|
||||||
|
},
|
||||||
|
error (err) {
|
||||||
|
hideLoading(layerIndex)
|
||||||
|
toastMsg('網路錯誤,請退出重進')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 獲取甜蜜升溫任務接口
|
||||||
|
function getTask_TIAN_MI_SHENG_WEN () {
|
||||||
|
showLoading()
|
||||||
|
networkRequest({
|
||||||
|
type: 'get',
|
||||||
|
url: urlPrefix + '/activity/task/user',
|
||||||
|
data: { componentCode: "WHITE_TIAN_MI_SHENG_WEN" },
|
||||||
|
success (res) {
|
||||||
|
if (res.code === 200) {
|
||||||
|
activityCode2 = 'ACT_2024_WHITE_VALENTINES_DAY';
|
||||||
|
res.data.forEach((res, i) => {
|
||||||
|
$(`.page2 .box .tasks${i + 1} .giftBox .gift`).attr('src', res.taskIcon);
|
||||||
|
$(`.page2 .box .tasks${i + 1} .giftBox .giftName`).text(res.reward.rewardName);
|
||||||
|
$(`.page2 .box .tasks${i + 1} .giftBox .giftVAlue`).text(res.reward.showValue + '鉆');
|
||||||
|
$(`.page2 .box .tasks${i + 1} .p1`).text(`每達到${res.taskValue}禮物值,可解鎖1次直購權`);
|
||||||
|
$(`.page2 .box .tasks${i + 1} .line .i`).text(`${res.completeValue % res.taskValue}/${res.taskValue}`);
|
||||||
|
$(`.page2 .box .tasks${i + 1} .line span`).css('width', `${(res.completeValue % res.taskValue / res.taskValue) * 100 >= 100 ? 98.8 : (res.completeValue % res.taskValue / res.taskValue) * 100}%`);
|
||||||
|
$(`.page2 .box .tasks${i + 1} .p3`).text(`當前可購買: ${Math.floor(res.activityValue / res.taskValue)}個`);
|
||||||
|
$(`.page2 .box .tasks${i + 1} .buy`).html(`<img src="./images/diamond.png" alt="" class="diamond">
|
||||||
|
${res.reward.showValue}購買`);
|
||||||
|
$(`.page2 .box .tasks${i + 1} .buy`).attr('activityCode', res.activityCode);
|
||||||
|
$(`.page2 .box .tasks${i + 1} .buy`).attr('taskCode', res.taskCode);
|
||||||
|
$(`.page2 .box .tasks${i + 1} .buy`).attr('diamondNum', res.reward.showValue);
|
||||||
|
$(`.page2 .box .tasks${i + 1} .buy`).attr('num', Math.floor(res.activityValue / res.taskValue));
|
||||||
|
$(`.page2 .box .tasks${i + 1} .buy`).attr('taskIcon', res.taskIcon);
|
||||||
|
$(`.page2 .box .tasks${i + 1} .buy`).attr('taskName', res.reward.rewardName);
|
||||||
|
$(`.page2 .box .tasks${i + 1} .buy`).attr('showValue', res.reward.showValue);
|
||||||
|
})
|
||||||
|
activityInfo();
|
||||||
|
} else {
|
||||||
|
toastMsg(res.message)
|
||||||
|
}
|
||||||
|
hideLoading(layerIndex)
|
||||||
|
},
|
||||||
|
error (err) {
|
||||||
|
hideLoading(layerIndex)
|
||||||
|
toastMsg('網路錯誤,請退出重進')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 購買接口
|
||||||
|
function exchange (activityCode, diamondNum, taskCode, taskIcon, taskName, showValue) {
|
||||||
|
showLoading()
|
||||||
|
networkRequest({
|
||||||
|
type: 'post',
|
||||||
|
url: urlPrefix + '/activity/task/exchange',
|
||||||
|
data: { activityCode, diamondNum, taskCode, num: 1 },
|
||||||
|
success (res) {
|
||||||
|
if (res.code === 200) {
|
||||||
|
$('.success .success_in .giftListSuccess .gift').attr('src', taskIcon);
|
||||||
|
$('.success .success_in .giftListSuccess .giftName').text(taskName);
|
||||||
|
$('.success .success_in .giftListSuccess .giftVAlue').text(`${showValue}鉆`);
|
||||||
|
$('.success .success_in .text').text(`${taskName}*1已發放至「我的背包」`);
|
||||||
|
$('.success').show();
|
||||||
|
getTask_TIAN_MI_SHENG_WEN();
|
||||||
|
bodyScroolFun(true);
|
||||||
|
} else if (res.code == 31005) {
|
||||||
|
$('.failureBuy').show();
|
||||||
|
bodyScroolFun(true);
|
||||||
|
} else {
|
||||||
|
toastMsg(res.message)
|
||||||
|
}
|
||||||
|
hideLoading(layerIndex)
|
||||||
|
},
|
||||||
|
error (err) {
|
||||||
|
hideLoading(layerIndex)
|
||||||
|
toastMsg('網路錯誤,請退出重進')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 購買禮物按鈕
|
||||||
|
$(`.page2 .box .taskss .buy`).click(function () {
|
||||||
|
var num = $(this).attr('num');
|
||||||
|
activityCode = $(this).attr('activityCode');
|
||||||
|
diamondNum = $(this).attr('diamondNum');
|
||||||
|
taskCode = $(this).attr('taskCode');
|
||||||
|
taskIcon = $(this).attr('taskIcon');
|
||||||
|
taskName = $(this).attr('taskName');
|
||||||
|
showValue = $(this).attr('showValue');
|
||||||
|
if (num > 0) {//true
|
||||||
|
$('.sure .sure_in .giftListSuccess .gift').attr('src', taskIcon);
|
||||||
|
$('.sure .sure_in .giftListSuccess .giftName').text(taskName);
|
||||||
|
$('.sure .sure_in .giftListSuccess .giftVAlue').text(showValue + '鉆');
|
||||||
|
$('.sure').show();
|
||||||
|
bodyScroolFun(true);
|
||||||
|
} else {
|
||||||
|
toastMsg('當前購買次數不足~')
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// 二次確認彈窗
|
||||||
|
$('.sure .sure_in .ok').click(function () {
|
||||||
|
exchange(activityCode, diamondNum, taskCode, taskIcon, taskName, showValue);
|
||||||
|
$('.sure').hide();
|
||||||
|
bodyScroolFun(false);
|
||||||
|
})
|
||||||
|
// tab切換
|
||||||
|
$('.tab div').click(function () {
|
||||||
|
var i = $(this).index() + 1;
|
||||||
|
$('.page1,.page2,.page3').hide();
|
||||||
|
$(`.page${i}`).show();
|
||||||
|
$(this).addClass(`act`).siblings().removeClass('act')
|
||||||
|
if (i == 3) {
|
||||||
|
getRank();
|
||||||
|
}
|
||||||
|
})
|
||||||
|
// 記錄接口
|
||||||
|
function recordPage (activityCode, componentCode) {
|
||||||
|
showLoading()
|
||||||
|
networkRequest({
|
||||||
|
type: 'get',
|
||||||
|
url: urlPrefix + '/activity/task/user/record/page',
|
||||||
|
data: { activityCode, componentCode, pageNum: 1, pageSize: 9999 },
|
||||||
|
success (res) {
|
||||||
|
if (res.code === 200) {
|
||||||
|
var str = '';
|
||||||
|
if (componentCode == 'MENG_DONG_HUA_HE') {
|
||||||
|
$('.page1 .bg2 ul li').remove()
|
||||||
|
if (res.data.records.length <= 0) {
|
||||||
|
str = `<li class="null"><div>暫無點亮記錄,快去集齊禮物吧~</div></li>`
|
||||||
|
} else {
|
||||||
|
res.data.records.forEach(res => {
|
||||||
|
str += `
|
||||||
|
<li class="liTitle">
|
||||||
|
<div>點亮時間</div>
|
||||||
|
<div>獲得獎勵</div>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<div class="left">
|
||||||
|
<p>${dateFormat(res.createTime, 'yyyy/MM/dd')}</p>
|
||||||
|
<span>${dateFormat(res.createTime, 'hh/mm/ss')}</span>
|
||||||
|
</div>
|
||||||
|
<div>${res.rewardName}銘牌</div>
|
||||||
|
</li>
|
||||||
|
`})
|
||||||
|
}
|
||||||
|
$('.page1 .bg2 ul').append(str);
|
||||||
|
} else if (componentCode == 'WHITE_TIAN_MI_SHENG_WEN') {
|
||||||
|
$('.buyRecords .buyRecords_in ul li').remove();
|
||||||
|
if (res.data.records.length <= 0) {
|
||||||
|
str = `<li class="null"><div>暫無購買記錄~</div></li>`
|
||||||
|
} else {
|
||||||
|
res.data.records.forEach(res => {
|
||||||
|
str += `
|
||||||
|
<li class="liTitle">
|
||||||
|
<div>購買時間</div>
|
||||||
|
<div>購買禮物</div>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<div class="left">
|
||||||
|
<p>${dateFormat(res.createTime, 'yyyy/MM/dd')}</p>
|
||||||
|
<span>${dateFormat(res.createTime, 'hh/mm/ss')}</span>
|
||||||
|
</div>
|
||||||
|
<div>${res.rewardName}禮物*1個</div>
|
||||||
|
</li>
|
||||||
|
`})
|
||||||
|
}
|
||||||
|
$('.buyRecords .buyRecords_in ul').append(str);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
toastMsg(res.message)
|
||||||
|
}
|
||||||
|
hideLoading(layerIndex)
|
||||||
|
},
|
||||||
|
error (err) {
|
||||||
|
hideLoading(layerIndex)
|
||||||
|
toastMsg('網路錯誤,請退出重進')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 打開購買記錄
|
||||||
|
$('.page2 .box .page2Buy_icon').click(function () {
|
||||||
|
recordPage(activityCode2, 'WHITE_TIAN_MI_SHENG_WEN',);
|
||||||
|
$('.buyRecords').show();
|
||||||
|
bodyScroolFun(true);
|
||||||
|
})
|
||||||
|
|
||||||
|
// 關閉購買記錄
|
||||||
|
$('.buyRecords').click(function () {
|
||||||
|
$('.buyRecords').hide();
|
||||||
|
bodyScroolFun(false);
|
||||||
|
})
|
||||||
|
|
||||||
|
// 打開規則記錄
|
||||||
|
$('.header .rule_icon').click(function () {
|
||||||
|
$('.rule').show();
|
||||||
|
bodyScroolFun(true);
|
||||||
|
})
|
||||||
|
|
||||||
|
// 關閉規則記錄
|
||||||
|
$('.rule').click(function () {
|
||||||
|
$('.rule').hide();
|
||||||
|
bodyScroolFun(false);
|
||||||
|
})
|
||||||
|
|
||||||
|
// 自己榜單展開按鈕
|
||||||
|
var scrollBool = true;
|
||||||
|
$('.page3 .my .icon').click(function () {
|
||||||
|
$('.page3 .my .scroll').scrollTop(0)
|
||||||
|
if (scrollBool) {
|
||||||
|
$('.page3 .my').css({ "height": "8.74667rem", "background": "url(./images/myBg.png) no-repeat", "background-size": "100% 100%" })
|
||||||
|
$('.page3 .my .scroll').css({ "overflow-y": "scroll" })
|
||||||
|
$('.page3 .my .icon').attr('src', './images/bottom.png')
|
||||||
|
bodyScroolFun(true);
|
||||||
|
} else {
|
||||||
|
$('.page3 .my').css({ "height": "2.2rem", "background": "url(./images/myBg2.png) no-repeat", "background-size": "100% 100%" })
|
||||||
|
$('.page3 .my .scroll').css({ "overflow-y": "hidden" })
|
||||||
|
$('.page3 .my .icon').attr('src', './images/top.png')
|
||||||
|
bodyScroolFun(false);
|
||||||
|
}
|
||||||
|
scrollBool = !scrollBool;
|
||||||
|
})
|
||||||
|
|
||||||
|
// 關閉活動結束彈窗
|
||||||
|
$('.end .end_in .but').click(function () {
|
||||||
|
$('.page1,.page2,.page3').hide();
|
||||||
|
$(`.page${3}`).show();
|
||||||
|
$('.tab div').removeClass('act');
|
||||||
|
$('.tab div').eq(2).addClass('act');
|
||||||
|
$('.end').hide();
|
||||||
|
bodyScroolFun(false);
|
||||||
|
})
|
||||||
|
|
||||||
|
// 關閉充值彈窗
|
||||||
|
$('.failureBuy .failureBuy_in .close').click(function () {
|
||||||
|
$('.failureBuy').hide();
|
||||||
|
bodyScroolFun(false);
|
||||||
|
})
|
||||||
|
|
||||||
|
// 跳轉充值彈窗
|
||||||
|
$('.failureBuy .failureBuy_in .ok').click(function () {
|
||||||
|
$('.failureBuy').hide();
|
||||||
|
bodyScroolFun(false);
|
||||||
|
if (browser.app) {
|
||||||
|
if (browser.android) {
|
||||||
|
let channel = pubInfo.deviceInfo.channel;
|
||||||
|
console.log(pubInfo.deviceInfo);
|
||||||
|
if (channel == "google") {
|
||||||
|
window.androidJsObj.openChargePage(6);
|
||||||
|
} else {
|
||||||
|
window.androidJsObj.openChargePage(6);
|
||||||
|
window.location.href = urlPrefix + '/peko/modules/pay/index.html?channelType=4';
|
||||||
|
}
|
||||||
|
} else if (browser.ios) {
|
||||||
|
let channel = pubInfo.deviceInfo.channel;
|
||||||
|
if (channel == "appstore") {
|
||||||
|
window.webkit.messageHandlers.openChargePage.postMessage(null);
|
||||||
|
} else {
|
||||||
|
window.webkit.messageHandlers.chargePayClickPage.postMessage(6);
|
||||||
|
window.location.href = urlPrefix + '/peko/modules/pay/index.html?channelType=4';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
toastMsg('請在app內打開')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
// 關閉購買成功彈窗
|
||||||
|
$('.success .success_in .but').click(function () {
|
||||||
|
$('.success').hide();
|
||||||
|
bodyScroolFun(false);
|
||||||
|
})
|
||||||
|
|
||||||
|
// 關閉二次確認彈窗
|
||||||
|
$('.sure .sure_in .close').click(function () {
|
||||||
|
$('.sure').hide();
|
||||||
|
bodyScroolFun(false);
|
||||||
|
})
|
||||||
|
|
||||||
|
// 關閉榜單獎勵
|
||||||
|
$('.page3Rule').click(function () {
|
||||||
|
$('.page3Rule').hide();
|
||||||
|
bodyScroolFun(false);
|
||||||
|
})
|
||||||
|
|
||||||
|
// 打開榜單獎勵
|
||||||
|
$('.page3 .top3 .rule_icon').click(function () {
|
||||||
|
$('.page3Rule').show();
|
||||||
|
bodyScroolFun(true);
|
||||||
|
})
|
||||||
|
|
||||||
|
//補0操作
|
||||||
|
function getzf (num) {
|
||||||
|
if (parseInt(num) < 10) {
|
||||||
|
num = '0' + num;
|
||||||
|
}
|
||||||
|
return num;
|
||||||
|
}
|
@@ -25,7 +25,7 @@ body {
|
|||||||
.wrap {
|
.wrap {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 115vh;
|
height: 115vh;
|
||||||
background: url("../images/main/index-bg.png") no-repeat center/cover;
|
background: url("../images/main/index-bg.png?v1.0") no-repeat center/cover;
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
@@ -39,7 +39,7 @@ body {
|
|||||||
z-index: 9;
|
z-index: 9;
|
||||||
width: 5.38667rem;
|
width: 5.38667rem;
|
||||||
height: 2.48rem;
|
height: 2.48rem;
|
||||||
background: url("../images/main/head.png") no-repeat 0 0/100% 100%;
|
background: url("../images/main/head.png?v1.0") no-repeat 0 0/100% 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap .header p {
|
.wrap .header p {
|
||||||
@@ -115,7 +115,7 @@ body {
|
|||||||
color: white;
|
color: white;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background: url("../images/previous-result-bg.png") no-repeat 0 0/100% 100%;
|
background: url("../images/previous-result-bg.png?v1.0") no-repeat 0 0/100% 100%;
|
||||||
z-index: 9;
|
z-index: 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -133,7 +133,7 @@ body {
|
|||||||
width: 0.53333rem;
|
width: 0.53333rem;
|
||||||
height: 0.53333rem;
|
height: 0.53333rem;
|
||||||
margin-left: 0.10667rem;
|
margin-left: 0.10667rem;
|
||||||
background: url("../images/little-bubble.png") 0 0/100% 100%;
|
background: url("../images/little-bubble.png?v1.0") 0 0/100% 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap .previous-result .result-list p img {
|
.wrap .previous-result .result-list p img {
|
||||||
@@ -144,7 +144,7 @@ body {
|
|||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 7.38667rem;
|
height: 7.38667rem;
|
||||||
background: url("../images/main/path-bg.png") no-repeat 0 0/100% 100%;
|
background: url("../images/main/path-bg.png?v1.0") no-repeat 0 0/100% 100%;
|
||||||
margin-top: 1.81333rem;
|
margin-top: 1.81333rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -265,7 +265,7 @@ body {
|
|||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 1.12rem;
|
height: 1.12rem;
|
||||||
background: url("../images/main/weapon-list.png") no-repeat 0 0/100% 100%;
|
background: url("../images/main/weapon-list.png?v1.0") no-repeat 0 0/100% 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap .summon-area .weapon-wrap p {
|
.wrap .summon-area .weapon-wrap p {
|
||||||
@@ -284,7 +284,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.wrap .summon-area .weapon-wrap p.active {
|
.wrap .summon-area .weapon-wrap p.active {
|
||||||
background: url("../images/main/weapon-item-active.png") no-repeat 0 0/100% 100%;
|
background: url("../images/main/weapon-item-active.png?v1.0") no-repeat 0 0/100% 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap .summon-area .weapon-wrap p:nth-child(2) {
|
.wrap .summon-area .weapon-wrap p:nth-child(2) {
|
||||||
@@ -319,7 +319,7 @@ body {
|
|||||||
position: relative;
|
position: relative;
|
||||||
width: 6.74667rem;
|
width: 6.74667rem;
|
||||||
height: 2.10667rem;
|
height: 2.10667rem;
|
||||||
background: url("../images/main/restrain-bg.png") no-repeat 0 0/100% 100%;
|
background: url("../images/main/restrain-bg.png?v1.0") no-repeat 0 0/100% 100%;
|
||||||
margin: 0.24rem auto 0.61333rem;
|
margin: 0.24rem auto 0.61333rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -540,7 +540,7 @@ body {
|
|||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
width: 9.6rem;
|
width: 9.6rem;
|
||||||
height: 11.33333rem;
|
height: 11.33333rem;
|
||||||
background: url("../images/popup/rule.png") no-repeat 0 0/100% 100%;
|
background: url("../images/popup/rule.png?v1.0") no-repeat 0 0/100% 100%;
|
||||||
font-size: 0.26667rem;
|
font-size: 0.26667rem;
|
||||||
color: #6E5F4C;
|
color: #6E5F4C;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
@@ -655,15 +655,15 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.wrap .popup-result .result-content.success-bg, .wrap .popup-result .not-enough-content.success-bg, .wrap .popup-result .summon-content.success-bg, .wrap .popup-not-enough .result-content.success-bg, .wrap .popup-not-enough .not-enough-content.success-bg, .wrap .popup-not-enough .summon-content.success-bg, .wrap .popup-summon .result-content.success-bg, .wrap .popup-summon .not-enough-content.success-bg, .wrap .popup-summon .summon-content.success-bg, .wrap .popup-rank .result-content.success-bg, .wrap .popup-rank .not-enough-content.success-bg, .wrap .popup-rank .summon-content.success-bg {
|
.wrap .popup-result .result-content.success-bg, .wrap .popup-result .not-enough-content.success-bg, .wrap .popup-result .summon-content.success-bg, .wrap .popup-not-enough .result-content.success-bg, .wrap .popup-not-enough .not-enough-content.success-bg, .wrap .popup-not-enough .summon-content.success-bg, .wrap .popup-summon .result-content.success-bg, .wrap .popup-summon .not-enough-content.success-bg, .wrap .popup-summon .summon-content.success-bg, .wrap .popup-rank .result-content.success-bg, .wrap .popup-rank .not-enough-content.success-bg, .wrap .popup-rank .summon-content.success-bg {
|
||||||
background: url("../images/popup/success.png") no-repeat 0 0/100% 100%;
|
background: url("../images/popup/success.png?v1.0") no-repeat 0 0/100% 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap .popup-result .result-content.failure-bg, .wrap .popup-result .not-enough-content.failure-bg, .wrap .popup-result .summon-content.failure-bg, .wrap .popup-not-enough .result-content.failure-bg, .wrap .popup-not-enough .not-enough-content.failure-bg, .wrap .popup-not-enough .summon-content.failure-bg, .wrap .popup-summon .result-content.failure-bg, .wrap .popup-summon .not-enough-content.failure-bg, .wrap .popup-summon .summon-content.failure-bg, .wrap .popup-rank .result-content.failure-bg, .wrap .popup-rank .not-enough-content.failure-bg, .wrap .popup-rank .summon-content.failure-bg {
|
.wrap .popup-result .result-content.failure-bg, .wrap .popup-result .not-enough-content.failure-bg, .wrap .popup-result .summon-content.failure-bg, .wrap .popup-not-enough .result-content.failure-bg, .wrap .popup-not-enough .not-enough-content.failure-bg, .wrap .popup-not-enough .summon-content.failure-bg, .wrap .popup-summon .result-content.failure-bg, .wrap .popup-summon .not-enough-content.failure-bg, .wrap .popup-summon .summon-content.failure-bg, .wrap .popup-rank .result-content.failure-bg, .wrap .popup-rank .not-enough-content.failure-bg, .wrap .popup-rank .summon-content.failure-bg {
|
||||||
background: url("../images/popup/failure.png") no-repeat 0 0/100% 100%;
|
background: url("../images/popup/failure.png?v1.0") no-repeat 0 0/100% 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap .popup-result .result-content.not-join-bg, .wrap .popup-result .not-enough-content.not-join-bg, .wrap .popup-result .summon-content.not-join-bg, .wrap .popup-not-enough .result-content.not-join-bg, .wrap .popup-not-enough .not-enough-content.not-join-bg, .wrap .popup-not-enough .summon-content.not-join-bg, .wrap .popup-summon .result-content.not-join-bg, .wrap .popup-summon .not-enough-content.not-join-bg, .wrap .popup-summon .summon-content.not-join-bg, .wrap .popup-rank .result-content.not-join-bg, .wrap .popup-rank .not-enough-content.not-join-bg, .wrap .popup-rank .summon-content.not-join-bg {
|
.wrap .popup-result .result-content.not-join-bg, .wrap .popup-result .not-enough-content.not-join-bg, .wrap .popup-result .summon-content.not-join-bg, .wrap .popup-not-enough .result-content.not-join-bg, .wrap .popup-not-enough .not-enough-content.not-join-bg, .wrap .popup-not-enough .summon-content.not-join-bg, .wrap .popup-summon .result-content.not-join-bg, .wrap .popup-summon .not-enough-content.not-join-bg, .wrap .popup-summon .summon-content.not-join-bg, .wrap .popup-rank .result-content.not-join-bg, .wrap .popup-rank .not-enough-content.not-join-bg, .wrap .popup-rank .summon-content.not-join-bg {
|
||||||
background: url("../images/popup/not-join.png") no-repeat 0 0/100% 100%;
|
background: url("../images/popup/not-join.png?v1.0") no-repeat 0 0/100% 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap .popup-result .result-content .close, .wrap .popup-result .not-enough-content .close, .wrap .popup-result .summon-content .close, .wrap .popup-not-enough .result-content .close, .wrap .popup-not-enough .not-enough-content .close, .wrap .popup-not-enough .summon-content .close, .wrap .popup-summon .result-content .close, .wrap .popup-summon .not-enough-content .close, .wrap .popup-summon .summon-content .close, .wrap .popup-rank .result-content .close, .wrap .popup-rank .not-enough-content .close, .wrap .popup-rank .summon-content .close {
|
.wrap .popup-result .result-content .close, .wrap .popup-result .not-enough-content .close, .wrap .popup-result .summon-content .close, .wrap .popup-not-enough .result-content .close, .wrap .popup-not-enough .not-enough-content .close, .wrap .popup-not-enough .summon-content .close, .wrap .popup-summon .result-content .close, .wrap .popup-summon .not-enough-content .close, .wrap .popup-summon .summon-content .close, .wrap .popup-rank .result-content .close, .wrap .popup-rank .not-enough-content .close, .wrap .popup-rank .summon-content .close {
|
||||||
@@ -741,7 +741,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.wrap .popup-not-enough .not-enough-content {
|
.wrap .popup-not-enough .not-enough-content {
|
||||||
background: url("../images/popup/not-enough.png") no-repeat 0 0/100% 100%;
|
background: url("../images/popup/not-enough.png?v1.0") no-repeat 0 0/100% 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap .popup-not-enough .not-enough-content .headwear-pic {
|
.wrap .popup-not-enough .not-enough-content .headwear-pic {
|
||||||
@@ -766,7 +766,7 @@ body {
|
|||||||
.wrap .popup-not-enough .not-enough-content .headwear-price {
|
.wrap .popup-not-enough .not-enough-content .headwear-price {
|
||||||
width: 5.36rem;
|
width: 5.36rem;
|
||||||
height: 0.8rem;
|
height: 0.8rem;
|
||||||
background: url("../images/popup/price-bg.png") no-repeat 0 0/100% 100%;
|
background: url("../images/popup/price-bg.png?v1.0") no-repeat 0 0/100% 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
@@ -804,7 +804,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.wrap .popup-summon .summon-content {
|
.wrap .popup-summon .summon-content {
|
||||||
background: url("../images/popup/summon.png") no-repeat 0 0/100% 100%;
|
background: url("../images/popup/summon.png?v1.0") no-repeat 0 0/100% 100%;
|
||||||
color: #6F5F4D;
|
color: #6F5F4D;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -983,7 +983,7 @@ body {
|
|||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
width: 9.6rem;
|
width: 9.6rem;
|
||||||
height: 11.33333rem;
|
height: 11.33333rem;
|
||||||
background: url("../images/popup/record.png") no-repeat 0 0/100% 100%;
|
background: url("../images/popup/record.png?v1.0") no-repeat 0 0/100% 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap .popup-record-list .record-list-content .close, .wrap .popup-record-list .previous-result-content .close, .wrap .pupop-previous-result .record-list-content .close, .wrap .pupop-previous-result .previous-result-content .close {
|
.wrap .popup-record-list .record-list-content .close, .wrap .popup-record-list .previous-result-content .close, .wrap .pupop-previous-result .record-list-content .close, .wrap .pupop-previous-result .previous-result-content .close {
|
||||||
@@ -1004,7 +1004,7 @@ body {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
width: 7.2rem;
|
width: 7.2rem;
|
||||||
height: 3.89333rem;
|
height: 3.89333rem;
|
||||||
background: url("../images/popup/record-bg.png") no-repeat 0 0/100% 100%;
|
background: url("../images/popup/record-bg.png?v1.0") no-repeat 0 0/100% 100%;
|
||||||
margin: 0rem auto 0.34667rem;
|
margin: 0rem auto 0.34667rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1135,7 +1135,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.wrap .pupop-previous-result .previous-result-content {
|
.wrap .pupop-previous-result .previous-result-content {
|
||||||
background-image: url("../images/popup/monster-record.png");
|
background-image: url("../images/popup/monster-record.png?v1.0");
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap .pupop-previous-result .previous-result-content ul.previous-result-list {
|
.wrap .pupop-previous-result .previous-result-content ul.previous-result-list {
|
||||||
@@ -1192,7 +1192,7 @@ body {
|
|||||||
z-index: 99;
|
z-index: 99;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 12.21333rem;
|
height: 12.21333rem;
|
||||||
background: url("../images/popup/rank-bg.png") no-repeat 0 0/100% 100%;
|
background: url("../images/popup/rank-bg.png?v1.0") no-repeat 0 0/100% 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap .popup-rank .rank-content .rank-top {
|
.wrap .popup-rank .rank-content .rank-top {
|
||||||
@@ -1250,7 +1250,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.wrap .popup-rank .rank-content .rank-top .topthree-wrap .info-wrap:nth-child(2) .avatar p, .wrap .popup-rank .rank-content .rank-top .topthree-wrap .info-wrap:nth-child(3) .avatar p {
|
.wrap .popup-rank .rank-content .rank-top .topthree-wrap .info-wrap:nth-child(2) .avatar p, .wrap .popup-rank .rank-content .rank-top .topthree-wrap .info-wrap:nth-child(3) .avatar p {
|
||||||
background-image: url("../images/popup/second.png");
|
background-image: url("../images/popup/second.png?v1.0");
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap .popup-rank .rank-content .rank-top .topthree-wrap .info-wrap:nth-child(2) .avatar img, .wrap .popup-rank .rank-content .rank-top .topthree-wrap .info-wrap:nth-child(3) .avatar img {
|
.wrap .popup-rank .rank-content .rank-top .topthree-wrap .info-wrap:nth-child(2) .avatar img, .wrap .popup-rank .rank-content .rank-top .topthree-wrap .info-wrap:nth-child(3) .avatar img {
|
||||||
@@ -1264,7 +1264,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.wrap .popup-rank .rank-content .rank-top .topthree-wrap .info-wrap:nth-child(3) .avatar p {
|
.wrap .popup-rank .rank-content .rank-top .topthree-wrap .info-wrap:nth-child(3) .avatar p {
|
||||||
background-image: url("../images/popup/third.png");
|
background-image: url("../images/popup/third.png?v1.0");
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap .popup-rank .rank-content .rank-top .topthree-wrap .info-wrap .avatar {
|
.wrap .popup-rank .rank-content .rank-top .topthree-wrap .info-wrap .avatar {
|
||||||
@@ -1279,7 +1279,7 @@ body {
|
|||||||
z-index: 99;
|
z-index: 99;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background: url("../images/popup/first.png") no-repeat 0 0/100% 100%;
|
background: url("../images/popup/first.png?v1.0") no-repeat 0 0/100% 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap .popup-rank .rank-content .rank-top .topthree-wrap .info-wrap .avatar img {
|
.wrap .popup-rank .rank-content .rank-top .topthree-wrap .info-wrap .avatar img {
|
||||||
|
@@ -35,7 +35,7 @@ body{
|
|||||||
.wrap{
|
.wrap{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 115vh;
|
height: 115vh;
|
||||||
background: url('../images/main/index-bg.png') no-repeat center/cover;
|
background: url('../images/main/index-bg.png?v1.0') no-repeat center/cover;
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
@@ -48,7 +48,7 @@ body{
|
|||||||
z-index: 9;
|
z-index: 9;
|
||||||
width: px2rem(404);
|
width: px2rem(404);
|
||||||
height: px2rem(186);
|
height: px2rem(186);
|
||||||
background: url('../images/main/head.png') no-repeat 0 0/100% 100%;
|
background: url('../images/main/head.png?v1.0') no-repeat 0 0/100% 100%;
|
||||||
p{
|
p{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 20%;
|
left: 20%;
|
||||||
@@ -118,7 +118,7 @@ body{
|
|||||||
color: white;
|
color: white;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background: url('../images/previous-result-bg.png') no-repeat 0 0/100% 100%;
|
background: url('../images/previous-result-bg.png?v1.0') no-repeat 0 0/100% 100%;
|
||||||
z-index: 9;
|
z-index: 9;
|
||||||
span{
|
span{
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@@ -136,9 +136,9 @@ body{
|
|||||||
width: px2rem(40);
|
width: px2rem(40);
|
||||||
height: px2rem(40);
|
height: px2rem(40);
|
||||||
margin-left: px2rem(8);
|
margin-left: px2rem(8);
|
||||||
background: url('../images/little-bubble.png') 0 0/100% 100%;
|
background: url('../images/little-bubble.png?v1.0') 0 0/100% 100%;
|
||||||
// &:last-child{
|
// &:last-child{
|
||||||
// background: url('../images/last-little-bubble.png') 0 0/100% 100%,url('../images/little-bubble.png') 0 0/100% 100%;
|
// background: url('../images/last-little-bubble.png?v1.0') 0 0/100% 100%,url('../images/little-bubble.png?v1.0') 0 0/100% 100%;
|
||||||
// }
|
// }
|
||||||
img{
|
img{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -150,7 +150,7 @@ body{
|
|||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: px2rem(554);
|
height: px2rem(554);
|
||||||
background: url('../images/main/path-bg.png') no-repeat 0 0/100% 100%;
|
background: url('../images/main/path-bg.png?v1.0') no-repeat 0 0/100% 100%;
|
||||||
margin-top: px2rem(136);
|
margin-top: px2rem(136);
|
||||||
.path{
|
.path{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -261,7 +261,7 @@ body{
|
|||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: px2rem(84);
|
height: px2rem(84);
|
||||||
background: url('../images/main/weapon-list.png') no-repeat 0 0/100% 100%;
|
background: url('../images/main/weapon-list.png?v1.0') no-repeat 0 0/100% 100%;
|
||||||
p{
|
p{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -275,7 +275,7 @@ body{
|
|||||||
width: 70%;
|
width: 70%;
|
||||||
}
|
}
|
||||||
&.active{
|
&.active{
|
||||||
background: url('../images/main/weapon-item-active.png') no-repeat 0 0/100% 100%;
|
background: url('../images/main/weapon-item-active.png?v1.0') no-repeat 0 0/100% 100%;
|
||||||
}
|
}
|
||||||
&:nth-child(2){
|
&:nth-child(2){
|
||||||
left: px2rem(104);
|
left: px2rem(104);
|
||||||
@@ -304,7 +304,7 @@ body{
|
|||||||
position: relative;
|
position: relative;
|
||||||
width: px2rem(506);
|
width: px2rem(506);
|
||||||
height: px2rem(158);
|
height: px2rem(158);
|
||||||
background: url('../images/main/restrain-bg.png') no-repeat 0 0/100% 100%;
|
background: url('../images/main/restrain-bg.png?v1.0') no-repeat 0 0/100% 100%;
|
||||||
margin: px2rem(18) auto px2rem(46);
|
margin: px2rem(18) auto px2rem(46);
|
||||||
.weapon-pic, .monster-pic{
|
.weapon-pic, .monster-pic{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -499,7 +499,7 @@ body{
|
|||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
width: px2rem(720);
|
width: px2rem(720);
|
||||||
height: px2rem(850);
|
height: px2rem(850);
|
||||||
background: url('../images/popup/rule.png') no-repeat 0 0/100% 100%;
|
background: url('../images/popup/rule.png?v1.0') no-repeat 0 0/100% 100%;
|
||||||
font-size: px2rem(20);
|
font-size: px2rem(20);
|
||||||
color: #6E5F4C;
|
color: #6E5F4C;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
@@ -598,13 +598,13 @@ body{
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
&.success-bg{
|
&.success-bg{
|
||||||
background: url('../images/popup/success.png') no-repeat 0 0/100% 100%;
|
background: url('../images/popup/success.png?v1.0') no-repeat 0 0/100% 100%;
|
||||||
}
|
}
|
||||||
&.failure-bg{
|
&.failure-bg{
|
||||||
background: url('../images/popup/failure.png') no-repeat 0 0/100% 100%;
|
background: url('../images/popup/failure.png?v1.0') no-repeat 0 0/100% 100%;
|
||||||
}
|
}
|
||||||
&.not-join-bg{
|
&.not-join-bg{
|
||||||
background: url('../images/popup/not-join.png') no-repeat 0 0/100% 100%;
|
background: url('../images/popup/not-join.png?v1.0') no-repeat 0 0/100% 100%;
|
||||||
}
|
}
|
||||||
.close{
|
.close{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -674,7 +674,7 @@ body{
|
|||||||
}
|
}
|
||||||
.popup-not-enough{
|
.popup-not-enough{
|
||||||
.not-enough-content{
|
.not-enough-content{
|
||||||
background: url('../images/popup/not-enough.png') no-repeat 0 0/100% 100%;
|
background: url('../images/popup/not-enough.png?v1.0') no-repeat 0 0/100% 100%;
|
||||||
.headwear-pic{
|
.headwear-pic{
|
||||||
width: px2rem(120);
|
width: px2rem(120);
|
||||||
height: px2rem(120);
|
height: px2rem(120);
|
||||||
@@ -694,7 +694,7 @@ body{
|
|||||||
.headwear-price{
|
.headwear-price{
|
||||||
width: px2rem(402);
|
width: px2rem(402);
|
||||||
height: px2rem(60);
|
height: px2rem(60);
|
||||||
background: url('../images/popup/price-bg.png') no-repeat 0 0/100% 100%;
|
background: url('../images/popup/price-bg.png?v1.0') no-repeat 0 0/100% 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
.diamond-icon{
|
.diamond-icon{
|
||||||
@@ -728,7 +728,7 @@ body{
|
|||||||
}
|
}
|
||||||
.popup-summon{
|
.popup-summon{
|
||||||
.summon-content{
|
.summon-content{
|
||||||
background: url('../images/popup/summon.png') no-repeat 0 0/100% 100%;
|
background: url('../images/popup/summon.png?v1.0') no-repeat 0 0/100% 100%;
|
||||||
color: #6F5F4D;
|
color: #6F5F4D;
|
||||||
.summon-title{
|
.summon-title{
|
||||||
font-size: px2rem(30);
|
font-size: px2rem(30);
|
||||||
@@ -883,7 +883,7 @@ body{
|
|||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
width: px2rem(720);
|
width: px2rem(720);
|
||||||
height: px2rem(850);
|
height: px2rem(850);
|
||||||
background: url('../images/popup/record.png') no-repeat 0 0/100% 100%;
|
background: url('../images/popup/record.png?v1.0') no-repeat 0 0/100% 100%;
|
||||||
.close{
|
.close{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: px2rem(46);
|
top: px2rem(46);
|
||||||
@@ -899,7 +899,7 @@ body{
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
width: px2rem(540);
|
width: px2rem(540);
|
||||||
height: px2rem(292);
|
height: px2rem(292);
|
||||||
background: url('../images/popup/record-bg.png') no-repeat 0 0/100% 100%;
|
background: url('../images/popup/record-bg.png?v1.0') no-repeat 0 0/100% 100%;
|
||||||
margin: px2rem(0) auto px2rem(26);
|
margin: px2rem(0) auto px2rem(26);
|
||||||
.time{
|
.time{
|
||||||
font-family: 'pingfang-medium';
|
font-family: 'pingfang-medium';
|
||||||
@@ -1019,7 +1019,7 @@ body{
|
|||||||
//往轮结果弹窗
|
//往轮结果弹窗
|
||||||
.pupop-previous-result{
|
.pupop-previous-result{
|
||||||
.previous-result-content{
|
.previous-result-content{
|
||||||
background-image: url('../images/popup/monster-record.png');
|
background-image: url('../images/popup/monster-record.png?v1.0');
|
||||||
ul.previous-result-list{
|
ul.previous-result-list{
|
||||||
height: 64%;
|
height: 64%;
|
||||||
margin-top: px2rem(256);
|
margin-top: px2rem(256);
|
||||||
@@ -1073,7 +1073,7 @@ body{
|
|||||||
z-index: 99;
|
z-index: 99;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: px2rem(916);
|
height: px2rem(916);
|
||||||
background: url('../images/popup/rank-bg.png') no-repeat 0 0/100% 100%;
|
background: url('../images/popup/rank-bg.png?v1.0') no-repeat 0 0/100% 100%;
|
||||||
.rank-top{
|
.rank-top{
|
||||||
font-family: 'pingfang-bold';
|
font-family: 'pingfang-bold';
|
||||||
color: #fff;
|
color: #fff;
|
||||||
@@ -1118,7 +1118,7 @@ body{
|
|||||||
width: px2rem(114);
|
width: px2rem(114);
|
||||||
height: px2rem(154);
|
height: px2rem(154);
|
||||||
p{
|
p{
|
||||||
background-image: url('../images/popup/second.png');
|
background-image: url('../images/popup/second.png?v1.0');
|
||||||
}
|
}
|
||||||
img{
|
img{
|
||||||
width: px2rem(112);
|
width: px2rem(112);
|
||||||
@@ -1135,7 +1135,7 @@ body{
|
|||||||
left: px2rem(504);
|
left: px2rem(504);
|
||||||
.avatar{
|
.avatar{
|
||||||
p{
|
p{
|
||||||
background-image: url('../images/popup/third.png');
|
background-image: url('../images/popup/third.png?v1.0');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1149,7 +1149,7 @@ body{
|
|||||||
z-index: 99;
|
z-index: 99;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background: url('../images/popup/first.png') no-repeat 0 0/100% 100%;
|
background: url('../images/popup/first.png?v1.0') no-repeat 0 0/100% 100%;
|
||||||
}
|
}
|
||||||
img{
|
img{
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@@ -6,16 +6,16 @@
|
|||||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||||
<title>守護星球</title>
|
<title>守護星球</title>
|
||||||
<link rel="stylesheet" href="../../common/css/reset.css">
|
<link rel="stylesheet" href="../../common/css/reset.css">
|
||||||
<link rel="stylesheet" href="./css/index.css?v=1.7">
|
<link rel="stylesheet" href="./css/index.css?v=1.9">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="no-in-app">
|
<body class="no-in-app">
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<div class="header"><p><i class="count-down-text">下一輪進攻即將開始</i><span class="count-down-num"></span></p></div>
|
<div class="header"><p><i class="count-down-text">下一輪進攻即將開始</i><span class="count-down-num"></span></p></div>
|
||||||
<div class="rule"><img src="./images/main/rule-icon.png" alt=""></div>
|
<div class="rule"><img src="./images/main/rule-icon.png?v1.0" alt=""></div>
|
||||||
<div class="record"><img src="./images/main/record-icon.png" alt=""></div>
|
<div class="record"><img src="./images/main/record-icon.png?v1.0" alt=""></div>
|
||||||
<div class="mall"><img src="./images/main/mall-icon.png" alt=""></div>
|
<div class="mall"><img src="./images/main/mall-icon.png?v1.0" alt=""></div>
|
||||||
<div class="rank"><img src="./images/main/rank-icon.png" alt=""></div>
|
<div class="rank"><img src="./images/main/rank-icon.png?v1.0" alt=""></div>
|
||||||
|
|
||||||
<!-- 過場動畫 -->
|
<!-- 過場動畫 -->
|
||||||
<div class="monster-svga"></div>
|
<div class="monster-svga"></div>
|
||||||
@@ -23,11 +23,11 @@
|
|||||||
<!-- 遊戲區域 -->
|
<!-- 遊戲區域 -->
|
||||||
<div class="game-area">
|
<div class="game-area">
|
||||||
<!-- 路徑圖 -->
|
<!-- 路徑圖 -->
|
||||||
<img src="./images/main/path.png" alt="" class="path">
|
<img src="./images/main/path.png?v1.0" alt="" class="path">
|
||||||
<!-- 怪獸初始位置 -->
|
<!-- 怪獸初始位置 -->
|
||||||
<img src="" alt="" class="monster-position">
|
<img src="" alt="" class="monster-position">
|
||||||
<!-- 怪獸牌位置 -->
|
<!-- 怪獸牌位置 -->
|
||||||
<img src="./images/main/init-position.png" alt="" class="init-position">
|
<img src="./images/main/init-position.png?v1.0" alt="" class="init-position">
|
||||||
<!-- 標誌位位置 -->
|
<!-- 標誌位位置 -->
|
||||||
<div class="sign-wrap">
|
<div class="sign-wrap">
|
||||||
<div><img src="" alt=""><p></p></div>
|
<div><img src="" alt=""><p></p></div>
|
||||||
@@ -68,33 +68,33 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 輸入 -->
|
<!-- 輸入 -->
|
||||||
<div class="select-num">
|
<div class="select-num">
|
||||||
<div class="decrement-ten"><img src="./images/main/decrement-ten.png" alt=""></div>
|
<div class="decrement-ten"><img src="./images/main/decrement-ten.png?v1.0" alt=""></div>
|
||||||
<div class="ipt-wrap">
|
<div class="ipt-wrap">
|
||||||
<span>召喚個數</span>
|
<span>召喚個數</span>
|
||||||
<p style="bottom:-0.32rem" class="p1">消耗 <b style="color:#f1db14">鉆石*0</b></p>
|
<p style="bottom:-0.32rem" class="p1">消耗 <b style="color:#f1db14">鉆石*0</b></p>
|
||||||
<p style="bottom:-0.64rem">成功擊敗怪獸將獲得 <b style="color:#f1db14">鉆石*<i>0</i></b></p>
|
<p style="bottom:-0.64rem">成功擊敗怪獸將獲得 <b style="color:#f1db14">鉆石*<i>0</i></b></p>
|
||||||
<!-- <main>消耗魔法石<i>0</i></main> -->
|
<!-- <main>消耗魔法石<i>0</i></main> -->
|
||||||
<main>召喚個數</main>
|
<main>召喚個數</main>
|
||||||
<img src="./images/main/decrement.png" alt="" class="decrement">
|
<img src="./images/main/decrement.png?v1.0" alt="" class="decrement">
|
||||||
<input type="text" value="0">
|
<input type="text" value="0">
|
||||||
<img src="./images/main/increment.png" alt="" class="increment">
|
<img src="./images/main/increment.png?v1.0" alt="" class="increment">
|
||||||
</div>
|
</div>
|
||||||
<div class="increment-ten"><img src="./images/main/increment-ten.png" alt=""></div>
|
<div class="increment-ten"><img src="./images/main/increment-ten.png?v1.0" alt=""></div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 確認召喚按鈕 -->
|
<!-- 確認召喚按鈕 -->
|
||||||
<div class="confitm-btn active"><img src="./images/main/confirm-btn.png" alt=""></div>
|
<div class="confitm-btn active"><img src="./images/main/confirm-btn.png?v1.0" alt=""></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 個人信息 -->
|
<!-- 個人信息 -->
|
||||||
<div class="info-bottom">
|
<div class="info-bottom">
|
||||||
<div class="avatar"><img src="./images/main/logo.png" alt=""></div>
|
<div class="avatar"><img src="./images/main/logo.png?v1.0" alt=""></div>
|
||||||
<div class="f-wrap">
|
<div class="f-wrap">
|
||||||
<div class="fragment">
|
<div class="fragment">
|
||||||
<img src="./images/main/prop-icon.png" alt="">
|
<img src="./images/main/prop-icon.png?v1.0" alt="">
|
||||||
我的鉆石:<span>0</span><img src="./images/popup/add.png" alt="" class="add">
|
我的鉆石:<span>0</span><img src="./images/popup/add.png?v1.0" alt="" class="add">
|
||||||
</div>
|
</div>
|
||||||
<div class="award">
|
<div class="award">
|
||||||
<img src="./images/main/award-icon.png" alt="">
|
<img src="./images/main/award-icon.png?v1.0" alt="">
|
||||||
今日獎勵:<span>0</span>
|
今日獎勵:<span>0</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -108,7 +108,7 @@
|
|||||||
<div class="shade-content">
|
<div class="shade-content">
|
||||||
<div class="close"></div>
|
<div class="close"></div>
|
||||||
<main>
|
<main>
|
||||||
<img src="./images/popup/rule-bg1.png" alt="" class="rule-bg1">
|
<img src="./images/popup/rule-bg1.png?v1.0" alt="" class="rule-bg1">
|
||||||
<div class="rule-weapon-wrap">
|
<div class="rule-weapon-wrap">
|
||||||
<p class="active"><img src="" alt=""></p>
|
<p class="active"><img src="" alt=""></p>
|
||||||
<p><img src="" alt=""></p>
|
<p><img src="" alt=""></p>
|
||||||
@@ -132,7 +132,7 @@
|
|||||||
<span>怪獸名字</span>
|
<span>怪獸名字</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<img src="./images/popup/rule-bg2.png" alt="" class="rule-bg2">
|
<img src="./images/popup/rule-bg2.png?v1.0" alt="" class="rule-bg2">
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -159,13 +159,13 @@
|
|||||||
<div class="popup-not-enough">
|
<div class="popup-not-enough">
|
||||||
<div class="not-enough-content">
|
<div class="not-enough-content">
|
||||||
<div class="close"></div>
|
<div class="close"></div>
|
||||||
<img src="./images/main/logo.png" alt="" class="headwear-pic">
|
<img src="./images/main/logo.png?v1.0" alt="" class="headwear-pic">
|
||||||
<div class="headwear-name"></div>
|
<div class="headwear-name"></div>
|
||||||
<div class="headwear-award"></div>
|
<div class="headwear-award"></div>
|
||||||
<div class="headwear-price">
|
<div class="headwear-price">
|
||||||
<img src="./images/mall/diamond-icon.png" alt="" class="diamond-icon">
|
<img src="./images/mall/diamond-icon.png?v1.0" alt="" class="diamond-icon">
|
||||||
<span></span>
|
<span></span>
|
||||||
<p class="buy-btn"><img src="./images/popup/buy-btn.png" alt=""></p>
|
<p class="buy-btn"><img src="./images/popup/buy-btn.png?v1.0" alt=""></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="diamond-num">我的鉆石<span>0</span></div>
|
<div class="diamond-num">我的鉆石<span>0</span></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -175,7 +175,7 @@
|
|||||||
<div class="shade-mask-no-money">
|
<div class="shade-mask-no-money">
|
||||||
<div class="shade-content-no-money">
|
<div class="shade-content-no-money">
|
||||||
<p class="no-money-title">鉆石余額不足</p>
|
<p class="no-money-title">鉆石余額不足</p>
|
||||||
<p class="no-money-pic"><img src="./images/mall/no-money.png" alt=""></p>
|
<p class="no-money-pic"><img src="./images/mall/no-money.png?v1.0" alt=""></p>
|
||||||
<p class="no-money-tip">親,鉆石余額不足~</p>
|
<p class="no-money-tip">親,鉆石余額不足~</p>
|
||||||
<p class="no-money-recharge">去充值</p>
|
<p class="no-money-recharge">去充值</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -192,19 +192,19 @@
|
|||||||
<div class="summon-monster-name"></div>
|
<div class="summon-monster-name"></div>
|
||||||
<div class="multiple">(武力值<span></span>)</div>
|
<div class="multiple">(武力值<span></span>)</div>
|
||||||
<div class="popup-select-num">
|
<div class="popup-select-num">
|
||||||
<div class="decrement-ten"><img src="./images/popup/decrement-ten.png" alt=""></div>
|
<div class="decrement-ten"><img src="./images/popup/decrement-ten.png?v1.0" alt=""></div>
|
||||||
<div class="ipt-wrap">
|
<div class="ipt-wrap">
|
||||||
<span>召喚個數</span>
|
<span>召喚個數</span>
|
||||||
<p>成功擊敗怪獸將獲得<i>0</i>鉆石獎勵</p>
|
<p>成功擊敗怪獸將獲得<i>0</i>鉆石獎勵</p>
|
||||||
<main>消耗鉆石<i>0</i></main>
|
<main>消耗鉆石<i>0</i></main>
|
||||||
<img src="./images/main/decrement.png" alt="" class="decrement">
|
<img src="./images/main/decrement.png?v1.0" alt="" class="decrement">
|
||||||
<input type="text" value="0">
|
<input type="text" value="0">
|
||||||
<img src="./images/main/increment.png" alt="" class="increment">
|
<img src="./images/main/increment.png?v1.0" alt="" class="increment">
|
||||||
</div>
|
</div>
|
||||||
<div class="increment-ten"><img src="./images/popup/increment-ten.png" alt=""></div>
|
<div class="increment-ten"><img src="./images/popup/increment-ten.png?v1.0" alt=""></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="popup-confitm-btn active"><img src="./images/main/confirm-btn.png" alt=""></div>
|
<div class="popup-confitm-btn active"><img src="./images/main/confirm-btn.png?v1.0" alt=""></div>
|
||||||
<div class="mine-prop-num">我的鉆石<span>0</span> <img src="./images/popup/add.png" alt="" class="add"></div>
|
<div class="mine-prop-num">我的鉆石<span>0</span> <img src="./images/popup/add.png?v1.0" alt="" class="add"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -230,8 +230,8 @@
|
|||||||
<div class="rank-content">
|
<div class="rank-content">
|
||||||
<div class="rank-top">
|
<div class="rank-top">
|
||||||
<div class="tab-wrap">
|
<div class="tab-wrap">
|
||||||
<p class="diamond-rank"><img src="./images/popup/rank-tab1-active.png" alt=""></p>
|
<p class="diamond-rank"><img src="./images/popup/rank-tab1-active.png?v1.0" alt=""></p>
|
||||||
<p class="num-rank"><img src="./images/popup/rank-tab2.png" alt=""></p>
|
<p class="num-rank"><img src="./images/popup/rank-tab2.png?v1.0" alt=""></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="topthree-wrap"></div>
|
<div class="topthree-wrap"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -241,7 +241,7 @@
|
|||||||
<div class="mine">
|
<div class="mine">
|
||||||
<span class="mine-rank">未上榜</span>
|
<span class="mine-rank">未上榜</span>
|
||||||
<div class="mine-info">
|
<div class="mine-info">
|
||||||
<img src="./images/main/logo.png" alt="">
|
<img src="./images/main/logo.png?v1.0" alt="">
|
||||||
<span class="mine-nick"></span>
|
<span class="mine-nick"></span>
|
||||||
</div>
|
</div>
|
||||||
<span class="mine-diamond-num"></span>
|
<span class="mine-diamond-num"></span>
|
||||||
@@ -257,7 +257,7 @@
|
|||||||
<script src="../../common/js/vconsole.min.js"></script>
|
<script src="../../common/js/vconsole.min.js"></script>
|
||||||
<script src="../../common/js/svga.min.js"></script>
|
<script src="../../common/js/svga.min.js"></script>
|
||||||
<script src="../../common/js/route-constant.js"></script>
|
<script src="../../common/js/route-constant.js"></script>
|
||||||
<script src="./js/index.js?v=2.2"></script>
|
<script src="./js/index.js?v=2.7"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
@@ -123,6 +123,7 @@ const getNewestAct = () => {
|
|||||||
networkRequest({
|
networkRequest({
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
url: urlPrefix + '/act/callBattle/getNewestAct',
|
url: urlPrefix + '/act/callBattle/getNewestAct',
|
||||||
|
timeout: 3000,
|
||||||
success (res) {
|
success (res) {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
if ($.isEmptyObject(res.data) || res.data.status === 4) {
|
if ($.isEmptyObject(res.data) || res.data.status === 4) {
|
||||||
@@ -172,6 +173,12 @@ const getNewestAct = () => {
|
|||||||
},
|
},
|
||||||
error (err) {
|
error (err) {
|
||||||
toastMsg('網絡錯誤,請退出重進')
|
toastMsg('網絡錯誤,請退出重進')
|
||||||
|
},
|
||||||
|
complete: function (XMLHttpRequest, status) {
|
||||||
|
if (status == 'timeout') {
|
||||||
|
XMLHttpRequest.abort()// 超时后中断请求
|
||||||
|
toastMsg('您當前網路異常,請退出重進~')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -201,12 +208,12 @@ const showView = (data, monsterImg, drawId) => {
|
|||||||
$('.confitm-btn').addClass('active')
|
$('.confitm-btn').addClass('active')
|
||||||
$('.confitm-btn').removeClass('inactive')
|
$('.confitm-btn').removeClass('inactive')
|
||||||
$('.confitm-btn').removeClass('prepare')
|
$('.confitm-btn').removeClass('prepare')
|
||||||
$('.confitm-btn img').attr('src', "./images/main/confirm-btn.png")
|
$('.confitm-btn img').attr('src', "./images/main/confirm-btn.png?v1.0")
|
||||||
|
|
||||||
$('.popup-confitm-btn').addClass('active')
|
$('.popup-confitm-btn').addClass('active')
|
||||||
$('.popup-confitm-btn').removeClass('inactive')
|
$('.popup-confitm-btn').removeClass('inactive')
|
||||||
$('.popup-confitm-btn').removeClass('prepare')
|
$('.popup-confitm-btn').removeClass('prepare')
|
||||||
$('.popup-confitm-btn img').attr('src', "./images/popup/confirm-btn.png")
|
$('.popup-confitm-btn img').attr('src', "./images/popup/confirm-btn.png?v1.0")
|
||||||
|
|
||||||
// 清空神器和怪獸名字和圖片
|
// 清空神器和怪獸名字和圖片
|
||||||
$('.restrain .weapon-pic img').attr('src', '')
|
$('.restrain .weapon-pic img').attr('src', '')
|
||||||
@@ -257,12 +264,12 @@ const showView = (data, monsterImg, drawId) => {
|
|||||||
$('.confitm-btn').removeClass('active')
|
$('.confitm-btn').removeClass('active')
|
||||||
$('.confitm-btn').removeClass('prepare')
|
$('.confitm-btn').removeClass('prepare')
|
||||||
$('.confitm-btn').addClass('inactive')
|
$('.confitm-btn').addClass('inactive')
|
||||||
$('.confitm-btn img').attr('src', "./images/main/confirm-disable-btn.png")
|
$('.confitm-btn img').attr('src', "./images/main/confirm-disable-btn.png?v1.0")
|
||||||
|
|
||||||
$('.popup-confitm-btn').removeClass('active')
|
$('.popup-confitm-btn').removeClass('active')
|
||||||
$('.popup-confitm-btn').removeClass('prepare')
|
$('.popup-confitm-btn').removeClass('prepare')
|
||||||
$('.popup-confitm-btn').addClass('inactive')
|
$('.popup-confitm-btn').addClass('inactive')
|
||||||
$('.popup-confitm-btn img').attr('src', "./images/popup/confirm-disable-btn.png")
|
$('.popup-confitm-btn img').attr('src', "./images/popup/confirm-disable-btn.png?v1.0")
|
||||||
|
|
||||||
// showCountDown(userComeinTime, drawStageStartTime, showResultStageStartTime)
|
// showCountDown(userComeinTime, drawStageStartTime, showResultStageStartTime)
|
||||||
judgeStatus()
|
judgeStatus()
|
||||||
@@ -304,12 +311,12 @@ const showView = (data, monsterImg, drawId) => {
|
|||||||
$('.confitm-btn').removeClass('active')
|
$('.confitm-btn').removeClass('active')
|
||||||
$('.confitm-btn').removeClass('inactive')
|
$('.confitm-btn').removeClass('inactive')
|
||||||
$('.confitm-btn').addClass('prepare')
|
$('.confitm-btn').addClass('prepare')
|
||||||
$('.confitm-btn img').attr('src', "./images/main/confirm-prepare-btn.png")
|
$('.confitm-btn img').attr('src', "./images/main/confirm-prepare-btn.png?v1.0")
|
||||||
|
|
||||||
$('.popup-confitm-btn').removeClass('active')
|
$('.popup-confitm-btn').removeClass('active')
|
||||||
$('.popup-confitm-btn').removeClass('inactive')
|
$('.popup-confitm-btn').removeClass('inactive')
|
||||||
$('.popup-confitm-btn').addClass('prepare')
|
$('.popup-confitm-btn').addClass('prepare')
|
||||||
$('.popup-confitm-btn img').attr('src', "./images/popup/confirm-prepare-btn.png")
|
$('.popup-confitm-btn img').attr('src', "./images/popup/confirm-prepare-btn.png?v1.0")
|
||||||
|
|
||||||
$('.monster-position').hide()
|
$('.monster-position').hide()
|
||||||
drawInfo = data //結果彈窗所需信息
|
drawInfo = data //結果彈窗所需信息
|
||||||
@@ -506,12 +513,12 @@ const monsterAnimation = () => {
|
|||||||
$('.confitm-btn').removeClass('active')
|
$('.confitm-btn').removeClass('active')
|
||||||
$('.confitm-btn').removeClass('inactive')
|
$('.confitm-btn').removeClass('inactive')
|
||||||
$('.confitm-btn').addClass('prepare')
|
$('.confitm-btn').addClass('prepare')
|
||||||
$('.confitm-btn img').attr('src', "./images/main/confirm-prepare-btn.png")
|
$('.confitm-btn img').attr('src', "./images/main/confirm-prepare-btn.png?v1.0")
|
||||||
|
|
||||||
$('.popup-confitm-btn').removeClass('active')
|
$('.popup-confitm-btn').removeClass('active')
|
||||||
$('.popup-confitm-btn').removeClass('inactive')
|
$('.popup-confitm-btn').removeClass('inactive')
|
||||||
$('.popup-confitm-btn').addClass('prepare')
|
$('.popup-confitm-btn').addClass('prepare')
|
||||||
$('.popup-confitm-btn img').attr('src', "./images/popup/confirm-prepare-btn.png")
|
$('.popup-confitm-btn img').attr('src', "./images/popup/confirm-prepare-btn.png?v1.0")
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@@ -561,16 +568,16 @@ const showResultPopup = () => {
|
|||||||
topThreeArr = drawInfo.rankUserList
|
topThreeArr = drawInfo.rankUserList
|
||||||
let str = ''
|
let str = ''
|
||||||
if (topThreeArr.length === 0) {
|
if (topThreeArr.length === 0) {
|
||||||
$('.top-three img').attr('src', './images/main/default-hui.png')
|
$('.top-three img').attr('src', './images/main/default-hui.png?v1.0')
|
||||||
} else {
|
} else {
|
||||||
topThreeArr.map((item, index) => {
|
topThreeArr.map((item, index) => {
|
||||||
$('.top-three img').eq(index).attr('src', item)
|
$('.top-three img').eq(index).attr('src', item)
|
||||||
})
|
})
|
||||||
if (topThreeArr.length === 1) {
|
if (topThreeArr.length === 1) {
|
||||||
$('.top-three img').eq(1).attr('src', './images/main/default-hui.png')
|
$('.top-three img').eq(1).attr('src', './images/main/default-hui.png?v1.0')
|
||||||
$('.top-three img').eq(2).attr('src', './images/main/default-hui.png')
|
$('.top-three img').eq(2).attr('src', './images/main/default-hui.png?v1.0')
|
||||||
} else if (topThreeArr.length === 2) {
|
} else if (topThreeArr.length === 2) {
|
||||||
$('.top-three img').eq(2).attr('src', './images/main/default-hui.png')
|
$('.top-three img').eq(2).attr('src', './images/main/default-hui.png?v1.0')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -674,7 +681,7 @@ const renderRecord = () => {
|
|||||||
userCostPiece = '*' + item1.costPiece
|
userCostPiece = '*' + item1.costPiece
|
||||||
str1 += `
|
str1 += `
|
||||||
<li class="weapon-item">
|
<li class="weapon-item">
|
||||||
<img style="display: ${item1.itemId === drawId ? 'block' : 'none'}" src="./images/popup/summon-icon.png" alt="" class="summon-icon">
|
<img style="display: ${item1.itemId === drawId ? 'block' : 'none'}" src="./images/popup/summon-icon.png?v1.0" alt="" class="summon-icon">
|
||||||
<img src="${item1.itemUrl}" alt="" class="weapon-item-pic">
|
<img src="${item1.itemUrl}" alt="" class="weapon-item-pic">
|
||||||
<span>${userCostPiece}</span>
|
<span>${userCostPiece}</span>
|
||||||
</li>
|
</li>
|
||||||
@@ -704,7 +711,7 @@ const renderRecord = () => {
|
|||||||
<p style='display: ${item.drawStatus == 2 ? "none" : "block"}'>
|
<p style='display: ${item.drawStatus == 2 ? "none" : "block"}'>
|
||||||
獎勵
|
獎勵
|
||||||
<i>${item.reward}</i>
|
<i>${item.reward}</i>
|
||||||
<img src="./images/popup/diamond.png" alt="">
|
<img src="./images/popup/diamond.png?v1.0" alt="">
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
@@ -902,7 +909,7 @@ const renderRankList = () => {
|
|||||||
let len = 3 - rankListD.length
|
let len = 3 - rankListD.length
|
||||||
let arr = new Array(len).fill({
|
let arr = new Array(len).fill({
|
||||||
nick: '虛位以待',
|
nick: '虛位以待',
|
||||||
avatar: './images/main/default.png',
|
avatar: './images/main/default.png?v1.0',
|
||||||
num: ''
|
num: ''
|
||||||
})
|
})
|
||||||
topThreeArr.push(...arr)
|
topThreeArr.push(...arr)
|
||||||
@@ -963,7 +970,7 @@ const renderRankList = () => {
|
|||||||
let len = 3 - rankListN.length
|
let len = 3 - rankListN.length
|
||||||
let arr = new Array(len).fill({
|
let arr = new Array(len).fill({
|
||||||
nick: '虛位以待',
|
nick: '虛位以待',
|
||||||
avatar: './images/main/default.png'
|
avatar: './images/main/default.png?v1.0'
|
||||||
})
|
})
|
||||||
topThreeArr.push(...arr)
|
topThreeArr.push(...arr)
|
||||||
}
|
}
|
||||||
@@ -1095,11 +1102,11 @@ $(function () {
|
|||||||
// 排行榜彈窗tab點選
|
// 排行榜彈窗tab點選
|
||||||
$('.tab-wrap').on('click', 'p', function () {
|
$('.tab-wrap').on('click', 'p', function () {
|
||||||
if ($(this).index()) {
|
if ($(this).index()) {
|
||||||
$(this).find('img').attr('src', "./images/popup/rank-tab2-active.png")
|
$(this).find('img').attr('src', "./images/popup/rank-tab2-active.png?v1.0")
|
||||||
$(this).siblings().find('img').attr('src', "./images/popup/rank-tab1.png")
|
$(this).siblings().find('img').attr('src', "./images/popup/rank-tab1.png?v1.0")
|
||||||
} else {
|
} else {
|
||||||
$(this).find('img').attr('src', "./images/popup/rank-tab1-active.png")
|
$(this).find('img').attr('src', "./images/popup/rank-tab1-active.png?v1.0")
|
||||||
$(this).siblings().find('img').attr('src', "./images/popup/rank-tab2.png")
|
$(this).siblings().find('img').attr('src', "./images/popup/rank-tab2.png?v1.0")
|
||||||
}
|
}
|
||||||
if (type === $(this).index() + 1) return
|
if (type === $(this).index() + 1) return
|
||||||
type = $(this).index() + 1
|
type = $(this).index() + 1
|
||||||
@@ -1132,8 +1139,8 @@ $(function () {
|
|||||||
clickTabCanNetworkN = true
|
clickTabCanNetworkN = true
|
||||||
$('.other-rank').html('')
|
$('.other-rank').html('')
|
||||||
|
|
||||||
$('.tab-wrap p').eq(0).find('img').attr('src', "./images/popup/rank-tab1-active.png")
|
$('.tab-wrap p').eq(0).find('img').attr('src', "./images/popup/rank-tab1-active.png?v1.0")
|
||||||
$('.tab-wrap p').eq(1).find('img').attr('src', "./images/popup/rank-tab2.png")
|
$('.tab-wrap p').eq(1).find('img').attr('src', "./images/popup/rank-tab2.png?v1.0")
|
||||||
|
|
||||||
$('body').css('overflow', 'auto')
|
$('body').css('overflow', 'auto')
|
||||||
})
|
})
|
||||||
@@ -1332,19 +1339,22 @@ $(function () {
|
|||||||
if (lock) {
|
if (lock) {
|
||||||
lock = false;
|
lock = false;
|
||||||
// 每個標誌位上的數量
|
// 每個標誌位上的數量
|
||||||
restrainArr[currentWeaponIndex].costPieceNum += parseInt($('.select-num input').val())
|
// restrainArr[currentWeaponIndex].costPieceNum += parseInt($('.select-num input').val()/100)
|
||||||
$('.sign-wrap div').eq(currentWeaponIndex).find('img')
|
// $('.sign-wrap div').eq(currentWeaponIndex).find('img')
|
||||||
.stop(true, true)
|
// .stop(true, true)
|
||||||
.animate({ scale: 1.2 }, 200)
|
// .animate({ scale: 1.2 }, 200)
|
||||||
.animate({ scale: 1 }, 200, function () {
|
// .animate({ scale: 1 }, 200, function () {
|
||||||
$('.sign-wrap div').eq(currentWeaponIndex).find('p').html('+' + restrainArr[currentWeaponIndex].costPieceNum).hide().fadeIn(200)
|
// $('.sign-wrap div').eq(currentWeaponIndex).find('p').html('+' + restrainArr[currentWeaponIndex].costPieceNum).hide().fadeIn(200)
|
||||||
setTimeout(() => {
|
// setTimeout(() => {
|
||||||
getUserInfo()
|
// getUserInfo()
|
||||||
}, 100)
|
// }, 100)
|
||||||
})
|
// })
|
||||||
|
|
||||||
console.log('costPieceNum---', restrainArr[currentWeaponIndex].costPieceNum);
|
// console.log('costPieceNum---', restrainArr[currentWeaponIndex].costPieceNum);
|
||||||
console.log('id----', restrainArr[currentWeaponIndex].id);
|
// console.log('id----', restrainArr[currentWeaponIndex].id);
|
||||||
|
setTimeout(() => {
|
||||||
|
getUserInfo()
|
||||||
|
}, 100)
|
||||||
sendUserDrawInfo(restrainArr[currentWeaponIndex].id, $('.select-num input').val())
|
sendUserDrawInfo(restrainArr[currentWeaponIndex].id, $('.select-num input').val())
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -1500,20 +1510,22 @@ $(function () {
|
|||||||
if (lock) {
|
if (lock) {
|
||||||
lock = false;
|
lock = false;
|
||||||
// 每個標誌位上的數量
|
// 每個標誌位上的數量
|
||||||
restrainArr[currentWeaponIndex_top].costPieceNum += parseInt($('.popup-select-num input').val())
|
// restrainArr[currentWeaponIndex_top].costPieceNum += parseInt($('.popup-select-num input').val())
|
||||||
|
// $('.sign-wrap div').eq(currentWeaponIndex_top).find('img')
|
||||||
|
// .stop(true, true)
|
||||||
|
// .animate({ scale: 1.2 }, 200)
|
||||||
|
// .animate({ scale: 1 }, 200, function () {
|
||||||
|
// $('.sign-wrap div').eq(currentWeaponIndex_top).find('p').html('+' + restrainArr[currentWeaponIndex_top].costPieceNum).hide().fadeIn(200)
|
||||||
|
// setTimeout(() => {
|
||||||
|
// getUserInfo()
|
||||||
|
// }, 100)
|
||||||
|
// })
|
||||||
|
|
||||||
$('.sign-wrap div').eq(currentWeaponIndex_top).find('img')
|
// console.log('costPieceNum---', restrainArr[currentWeaponIndex_top].costPieceNum);
|
||||||
.stop(true, true)
|
// console.log('id----', restrainArr[currentWeaponIndex_top].id);
|
||||||
.animate({ scale: 1.2 }, 200)
|
setTimeout(() => {
|
||||||
.animate({ scale: 1 }, 200, function () {
|
getUserInfo()
|
||||||
$('.sign-wrap div').eq(currentWeaponIndex_top).find('p').html('+' + restrainArr[currentWeaponIndex_top].costPieceNum).hide().fadeIn(200)
|
}, 100)
|
||||||
setTimeout(() => {
|
|
||||||
getUserInfo()
|
|
||||||
}, 100)
|
|
||||||
})
|
|
||||||
|
|
||||||
console.log('costPieceNum---', restrainArr[currentWeaponIndex_top].costPieceNum);
|
|
||||||
console.log('id----', restrainArr[currentWeaponIndex_top].id);
|
|
||||||
sendUserDrawInfo(restrainArr[currentWeaponIndex_top].id, $('.popup-select-num input').val())
|
sendUserDrawInfo(restrainArr[currentWeaponIndex_top].id, $('.popup-select-num input').val())
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
body,
|
body,
|
||||||
html {
|
html {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: #CE3346;
|
background: #7BC4C6;
|
||||||
position: relative;
|
position: relative;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding-bottom: 1.6rem;
|
padding-bottom: 1.6rem;
|
||||||
@@ -73,40 +73,40 @@ html {
|
|||||||
|
|
||||||
.box {
|
.box {
|
||||||
width: 9.58667rem;
|
width: 9.58667rem;
|
||||||
height: 9.90667rem;
|
height: 10.28rem;
|
||||||
border-radius: 0.53333rem;
|
border-radius: 0.53333rem;
|
||||||
border: 0.16rem solid #FBC577;
|
border: 0.16rem solid #669900;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background: #8B4621;
|
background: #CCCC00;
|
||||||
margin: -2.1rem auto 0;
|
margin: -2.1rem auto 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box .boxTitle {
|
.box .boxTitle {
|
||||||
width: 5.30667rem;
|
width: 4.89333rem;
|
||||||
height: 0.92rem;
|
height: 1rem;
|
||||||
background: url(../images/boxTitle.png) no-repeat;
|
background: url(../images/boxTitle.png) no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
top: -1rem;
|
top: -0.4rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 0.92rem;
|
line-height: 1.15rem;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
font-size: 0.34667rem;
|
font-size: 0.34667rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box .boxTitle b {
|
.box .boxTitle b {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 0.53333rem;
|
font-size: 0.4rem;
|
||||||
line-height: 0.93333rem;
|
line-height: 0.93333rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box .tab {
|
.box .tab {
|
||||||
width: 8.8rem;
|
width: 8.8rem;
|
||||||
height: 1.26667rem;
|
height: 1.26667rem;
|
||||||
margin: 0.36rem auto 0;
|
margin: 0.90667rem auto 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
@@ -169,8 +169,8 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.box .box_in .sBox .sBox1 img {
|
.box .box_in .sBox .sBox1 img {
|
||||||
width: 1.6rem;
|
width: 1.97333rem;
|
||||||
height: 1.6rem;
|
height: 1.97333rem;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
@@ -376,9 +376,9 @@ html {
|
|||||||
|
|
||||||
.resultText {
|
.resultText {
|
||||||
width: 9.52rem;
|
width: 9.52rem;
|
||||||
height: 1.14667rem;
|
height: 1.48rem;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin: -0.2rem auto 0.1rem;
|
margin: -0.3rem auto 0.1rem;
|
||||||
background: url(../images/resultText.png) no-repeat;
|
background: url(../images/resultText.png) no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
}
|
}
|
||||||
@@ -418,7 +418,7 @@ h3 b {
|
|||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
font-size: 0.32rem;
|
font-size: 0.32rem;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background: #BD7F38;
|
background: #336600;
|
||||||
border-radius: 0.74667rem;
|
border-radius: 0.74667rem;
|
||||||
margin-top: 0.48rem;
|
margin-top: 0.48rem;
|
||||||
border: 1px solid #FBF6F2;
|
border: 1px solid #FBF6F2;
|
||||||
@@ -800,6 +800,7 @@ h3 b {
|
|||||||
|
|
||||||
.shade-mask .shade-content main div .jietu.t3 {
|
.shade-mask .shade-content main div .jietu.t3 {
|
||||||
height: 4.2rem;
|
height: 4.2rem;
|
||||||
|
margin-bottom: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.shade-mask-rank {
|
.shade-mask-rank {
|
||||||
@@ -932,7 +933,7 @@ h3 b {
|
|||||||
height: 7rem;
|
height: 7rem;
|
||||||
padding: 0.4rem 0.26667rem 0;
|
padding: 0.4rem 0.26667rem 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin-top: 0.25rem;
|
margin-top: 0.35rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.shade-mask-rank .shade-content-rank .other-rank li {
|
.shade-mask-rank .shade-content-rank .other-rank li {
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
body,
|
body,
|
||||||
html {
|
html {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: #CE3346;
|
background: #7BC4C6;
|
||||||
position: relative;
|
position: relative;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding-bottom: px2rem(120);
|
padding-bottom: px2rem(120);
|
||||||
@@ -77,33 +77,33 @@ html {
|
|||||||
|
|
||||||
.box {
|
.box {
|
||||||
width: px2rem(719);
|
width: px2rem(719);
|
||||||
height: px2rem(743);
|
height: px2rem(771);
|
||||||
border-radius: px2rem(40);
|
border-radius: px2rem(40);
|
||||||
border: px2rem(12) solid #FBC577;
|
border: px2rem(12) solid #669900;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background: #8B4621;
|
background: #CCCC00;
|
||||||
margin: -2.1rem auto 0;
|
margin: -2.1rem auto 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
// display: none;
|
// display: none;
|
||||||
// overflow: hidden;
|
// overflow: hidden;
|
||||||
|
|
||||||
.boxTitle {
|
.boxTitle {
|
||||||
width: px2rem(398);
|
width: px2rem(367);
|
||||||
height: px2rem(69);
|
height: px2rem(75);
|
||||||
background: url(../images/boxTitle.png) no-repeat;
|
background: url(../images/boxTitle.png) no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
top: -1rem;
|
top: -0.4rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: px2rem(69);
|
line-height: 1.15rem;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
font-size: px2rem(26);
|
font-size: px2rem(26);
|
||||||
|
|
||||||
b {
|
b {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: px2rem(40);
|
font-size: px2rem(30);
|
||||||
line-height: px2rem(70);
|
line-height: px2rem(70);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -111,7 +111,7 @@ html {
|
|||||||
.tab {
|
.tab {
|
||||||
width: px2rem(660);
|
width: px2rem(660);
|
||||||
height: px2rem(95);
|
height: px2rem(95);
|
||||||
margin: px2rem(27) auto 0;
|
margin: px2rem(68) auto 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
@@ -171,8 +171,8 @@ html {
|
|||||||
top: 0.7rem;
|
top: 0.7rem;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: px2rem(120);
|
width: px2rem(148);
|
||||||
height: px2rem(120);
|
height: px2rem(148);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
@@ -384,9 +384,9 @@ html {
|
|||||||
|
|
||||||
.resultText {
|
.resultText {
|
||||||
width: px2rem(714);
|
width: px2rem(714);
|
||||||
height: px2rem(86);
|
height: px2rem(111);
|
||||||
position: relative;
|
position: relative;
|
||||||
margin: -0.2rem auto 0.1rem;
|
margin: -0.3rem auto 0.1rem;
|
||||||
background: url(../images/resultText.png) no-repeat;
|
background: url(../images/resultText.png) no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
}
|
}
|
||||||
@@ -425,7 +425,7 @@ h3 {
|
|||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
font-size: px2rem(24);
|
font-size: px2rem(24);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background: #BD7F38;
|
background: #336600;
|
||||||
border-radius: px2rem(56);
|
border-radius: px2rem(56);
|
||||||
margin-top: px2rem(36);
|
margin-top: px2rem(36);
|
||||||
border: 1px solid #FBF6F2;
|
border: 1px solid #FBF6F2;
|
||||||
@@ -807,6 +807,7 @@ h3 {
|
|||||||
&.t3 {
|
&.t3 {
|
||||||
// height: px2rem(301);
|
// height: px2rem(301);
|
||||||
height: 4.2rem;
|
height: 4.2rem;
|
||||||
|
margin-bottom: 2rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -953,7 +954,7 @@ h3 {
|
|||||||
// background-color: white;
|
// background-color: white;
|
||||||
padding: px2rem(30) px2rem(20) 0;
|
padding: px2rem(30) px2rem(20) 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin-top: 0.25rem;
|
margin-top: 0.35rem;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
width: 90%;
|
width: 90%;
|
||||||
|
@@ -19,7 +19,8 @@
|
|||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: linear-gradient(0deg, #E6AD6A 0%, #F9CA92 100%);
|
background: linear-gradient(0deg, #669900 0%, #A1D33E 100%);
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.img {
|
.img {
|
||||||
@@ -71,11 +72,10 @@ body {
|
|||||||
width: 90%;
|
width: 90%;
|
||||||
height: 0.58667rem;
|
height: 0.58667rem;
|
||||||
line-height: 0.58667rem;
|
line-height: 0.58667rem;
|
||||||
background: #F46331;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 0 0.26667rem;
|
padding: 0 0.26667rem;
|
||||||
margin: 0.2rem auto 0;
|
margin: 0.35rem auto 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.record-list li .goldBox p {
|
.record-list li .goldBox p {
|
||||||
@@ -115,10 +115,10 @@ body {
|
|||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
width: 1.90667rem;
|
width: 1.90667rem;
|
||||||
height: 0.6rem;
|
text-align: center;
|
||||||
background: url(../images/record/result.png) no-repeat;
|
top: -0.1rem;
|
||||||
background-size: 100% 100%;
|
font-weight: bold;
|
||||||
top: 0.2rem;
|
font-size: 0.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.record-list li .result-wrap .award {
|
.record-list li .result-wrap .award {
|
||||||
@@ -182,13 +182,12 @@ body {
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin-right: 0.9rem;
|
margin-right: 0.9rem;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 1.02667rem;
|
|
||||||
height: 0.6rem;
|
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
background: url(../images/record/touru.png) no-repeat;
|
top: -1rem;
|
||||||
background-size: 100% 100%;
|
text-align: center;
|
||||||
top: -0.6rem;
|
font-size: 0.4rem;
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.record-list li .put-wrap .list {
|
.record-list li .put-wrap .list {
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
@function px2rem($px, $rem: 75) {
|
@function px2rem($px) {
|
||||||
@return $px / $rem+rem;
|
@return $px / 75+rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
// @function prefixurl() {
|
// @function prefixurl() {
|
||||||
@@ -33,7 +33,9 @@
|
|||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: linear-gradient(0deg, #E6AD6A 0%, #F9CA92 100%);
|
background: linear-gradient(0deg, #669900 0%, #A1D33E 100%);
|
||||||
|
height: 100%;
|
||||||
|
// background: #A1D33E;
|
||||||
}
|
}
|
||||||
|
|
||||||
.img {
|
.img {
|
||||||
@@ -85,12 +87,12 @@ body {
|
|||||||
width: 90%;
|
width: 90%;
|
||||||
height: px2rem(44 );
|
height: px2rem(44 );
|
||||||
line-height: px2rem(44 );
|
line-height: px2rem(44 );
|
||||||
background: #F46331;
|
// background: #F46331;
|
||||||
display: flex;
|
display: flex;
|
||||||
// justify-content: space-between;
|
// justify-content: space-between;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 0 px2rem(20 );
|
padding: 0 px2rem(20 );
|
||||||
margin: 0.2rem auto 0;
|
margin: 0.35rem auto 0;
|
||||||
|
|
||||||
p {
|
p {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
@@ -133,10 +135,13 @@ body {
|
|||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
width: px2rem(143 );
|
width: px2rem(143 );
|
||||||
height: px2rem(45 );
|
text-align: center;
|
||||||
background: url(../images/record/result.png) no-repeat;
|
// height: px2rem(45 );
|
||||||
background-size: 100% 100%;
|
// background: url(../images/record/result.png) no-repeat;
|
||||||
top: 0.2rem;
|
// background-size: 100% 100%;
|
||||||
|
top: -0.1rem;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: px2rem(30);
|
||||||
}
|
}
|
||||||
|
|
||||||
// .bg {
|
// .bg {
|
||||||
@@ -217,13 +222,16 @@ body {
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin-right: 0.9rem;
|
margin-right: 0.9rem;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: px2rem(77 );
|
// width: px2rem(77 );
|
||||||
height: px2rem(45 );
|
// height: px2rem(45 );
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
background: url(../images/record/touru.png) no-repeat;
|
// background: url(../images/record/touru.png) no-repeat;
|
||||||
background-size: 100% 100%;
|
// background-size: 100% 100%;
|
||||||
top: -0.6rem;
|
top: -1rem;
|
||||||
|
text-align: center;
|
||||||
|
font-size: px2rem(30);
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.list {
|
.list {
|
||||||
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 22 KiB |