Compare commits

...

25 Commits

Author SHA1 Message Date
Dragon
c431b9aabf 修复记录背景异常 2024-03-08 16:45:44 +08:00
Dragon
00c8f39c48 新增疯狂动物园 2024-03-08 15:21:20 +08:00
Dragon
309dc6097a 替换决赛图片 2024-03-05 20:20:39 +08:00
Dragon
ec732f0c75 清除缓存 2024-03-04 20:57:08 +08:00
Dragon
cfab5b8cc9 替换桌球榜单 2024-03-04 20:48:39 +08:00
Dragon
4453a09a92 修复榜单异常 2024-03-04 15:16:02 +08:00
Dragon
a033d971cb 修复bug 2024-03-04 14:44:11 +08:00
Dragon
a378783cdc 新增女神节榜单 2024-03-04 11:46:11 +08:00
Dragon
696286103e 替换页面三图片 2024-03-03 21:14:18 +08:00
Dragon
f4e0dcc71c 替换图片 2024-03-03 17:07:16 +08:00
Dragon
a288347760 替换图片 2024-03-02 13:38:07 +08:00
Dragon
41bb7136ab 替换ui图 2024-02-28 19:57:48 +08:00
Dragon
a57dd223a8 新增争霸赛 2024-02-28 19:57:47 +08:00
Dragon
c83c6e0240 优化许愿之星刷新问题 2024-02-28 18:12:07 +08:00
Dragon
abf5178c62 繁体化 2024-02-27 22:31:33 +08:00
Dragon
5fce805f9b 修复分页bug 2024-02-27 22:14:55 +08:00
Dragon
e533052973 修复bug 2024-02-27 20:16:07 +08:00
Dragon
e3f6712622 完善许愿之星 2024-02-27 10:16:03 +08:00
Dragon
09d94a22ee 新增刷新按钮 2024-02-26 14:33:20 +08:00
Dragon
81d1f8e918 新增许愿之星 2024-02-26 14:33:19 +08:00
Dragon
62b59ca91a 许愿之星暂存 2024-02-26 14:33:18 +08:00
Dragon
92c9774b18 新增接口超时问题 2024-02-26 14:32:32 +08:00
Dragon
8722c6584b 优化充值等待中 2024-02-23 12:33:14 +08:00
Dragon
dd3d0ae151 修复下注异常问题 2024-02-22 21:57:28 +08:00
Dragon
5f45fdcbf0 清除缓存 2024-02-22 21:23:51 +08:00
158 changed files with 6649 additions and 209 deletions

View 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%;
}

View 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%;
}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 784 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 539 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View 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>

View 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);
})

View File

@@ -25,7 +25,7 @@ body {
.wrap {
width: 100%;
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;
overflow-x: hidden;
overflow-y: auto;
@@ -39,7 +39,7 @@ body {
z-index: 9;
width: 5.38667rem;
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 {
@@ -115,7 +115,7 @@ body {
color: white;
display: flex;
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;
}
@@ -133,7 +133,7 @@ body {
width: 0.53333rem;
height: 0.53333rem;
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 {
@@ -144,7 +144,7 @@ body {
position: relative;
width: 100%;
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;
}
@@ -265,7 +265,7 @@ body {
position: relative;
width: 100%;
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 {
@@ -284,7 +284,7 @@ body {
}
.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) {
@@ -319,7 +319,7 @@ body {
position: relative;
width: 6.74667rem;
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;
}
@@ -540,7 +540,7 @@ body {
transform: translate(-50%, -50%);
width: 9.6rem;
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;
color: #6E5F4C;
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 {
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 {
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 {
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 {
@@ -741,7 +741,7 @@ body {
}
.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 {
@@ -766,7 +766,7 @@ body {
.wrap .popup-not-enough .not-enough-content .headwear-price {
width: 5.36rem;
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;
align-items: center;
}
@@ -804,7 +804,7 @@ body {
}
.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;
}
@@ -983,7 +983,7 @@ body {
transform: translate(-50%, -50%);
width: 9.6rem;
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 {
@@ -1004,7 +1004,7 @@ body {
overflow: hidden;
width: 7.2rem;
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;
}
@@ -1135,7 +1135,7 @@ body {
}
.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 {
@@ -1192,7 +1192,7 @@ body {
z-index: 99;
width: 100%;
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 {
@@ -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 {
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 {
@@ -1264,7 +1264,7 @@ body {
}
.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 {
@@ -1279,7 +1279,7 @@ body {
z-index: 99;
width: 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 {

View File

@@ -35,7 +35,7 @@ body{
.wrap{
width: 100%;
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;
overflow-x: hidden;
overflow-y: auto;
@@ -48,7 +48,7 @@ body{
z-index: 9;
width: px2rem(404);
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{
position: absolute;
left: 20%;
@@ -118,7 +118,7 @@ body{
color: white;
display: flex;
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;
span{
font-weight: bold;
@@ -136,9 +136,9 @@ body{
width: px2rem(40);
height: px2rem(40);
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{
// 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{
width: 100%;
@@ -150,7 +150,7 @@ body{
position: relative;
width: 100%;
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);
.path{
position: absolute;
@@ -261,7 +261,7 @@ body{
position: relative;
width: 100%;
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{
position: absolute;
top: 0;
@@ -275,7 +275,7 @@ body{
width: 70%;
}
&.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){
left: px2rem(104);
@@ -304,7 +304,7 @@ body{
position: relative;
width: px2rem(506);
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);
.weapon-pic, .monster-pic{
position: absolute;
@@ -499,7 +499,7 @@ body{
transform: translate(-50%, -50%);
width: px2rem(720);
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);
color: #6E5F4C;
font-weight: 600;
@@ -598,13 +598,13 @@ body{
flex-direction: column;
align-items: center;
&.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{
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{
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{
position: absolute;
@@ -674,7 +674,7 @@ body{
}
.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%;
.headwear-pic{
width: px2rem(120);
height: px2rem(120);
@@ -694,7 +694,7 @@ body{
.headwear-price{
width: px2rem(402);
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;
align-items: center;
.diamond-icon{
@@ -728,7 +728,7 @@ body{
}
.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;
.summon-title{
font-size: px2rem(30);
@@ -883,7 +883,7 @@ body{
transform: translate(-50%, -50%);
width: px2rem(720);
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{
position: absolute;
top: px2rem(46);
@@ -899,7 +899,7 @@ body{
overflow: hidden;
width: px2rem(540);
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);
.time{
font-family: 'pingfang-medium';
@@ -1019,7 +1019,7 @@ body{
//往轮结果弹窗
.pupop-previous-result{
.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{
height: 64%;
margin-top: px2rem(256);
@@ -1073,7 +1073,7 @@ body{
z-index: 99;
width: 100%;
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{
font-family: 'pingfang-bold';
color: #fff;
@@ -1118,7 +1118,7 @@ body{
width: px2rem(114);
height: px2rem(154);
p{
background-image: url('../images/popup/second.png');
background-image: url('../images/popup/second.png?v1.0');
}
img{
width: px2rem(112);
@@ -1135,7 +1135,7 @@ body{
left: px2rem(504);
.avatar{
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;
width: 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{
position: relative;

View File

@@ -6,16 +6,16 @@
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>守護星球</title>
<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>
<body class="no-in-app">
<div class="wrap">
<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="record"><img src="./images/main/record-icon.png" alt=""></div>
<div class="mall"><img src="./images/main/mall-icon.png" alt=""></div>
<div class="rank"><img src="./images/main/rank-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?v1.0" 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?v1.0" alt=""></div>
<!-- 過場動畫 -->
<div class="monster-svga"></div>
@@ -23,11 +23,11 @@
<!-- 遊戲區域 -->
<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="./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><img src="" alt=""><p></p></div>
@@ -68,33 +68,33 @@
</div>
<!-- 輸入 -->
<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">
<span>召喚個數</span>
<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>
<!-- <main>消耗魔法石<i>0</i></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">
<img src="./images/main/increment.png" alt="" class="increment">
<img src="./images/main/increment.png?v1.0" alt="" class="increment">
</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 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 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="fragment">
<img src="./images/main/prop-icon.png" alt="">
我的鉆石:<span>0</span><img src="./images/popup/add.png" alt="" class="add">
<img src="./images/main/prop-icon.png?v1.0" alt="">
我的鉆石:<span>0</span><img src="./images/popup/add.png?v1.0" alt="" class="add">
</div>
<div class="award">
<img src="./images/main/award-icon.png" alt="">
<img src="./images/main/award-icon.png?v1.0" alt="">
今日獎勵:<span>0</span>
</div>
</div>
@@ -108,7 +108,7 @@
<div class="shade-content">
<div class="close"></div>
<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">
<p class="active"><img src="" alt=""></p>
<p><img src="" alt=""></p>
@@ -132,7 +132,7 @@
<span>怪獸名字</span>
</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>
</div>
</div>
@@ -159,13 +159,13 @@
<div class="popup-not-enough">
<div class="not-enough-content">
<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-award"></div>
<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>
<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 class="diamond-num">我的鉆石<span>0</span></div>
</div>
@@ -175,7 +175,7 @@
<div class="shade-mask-no-money">
<div class="shade-content-no-money">
<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-recharge">去充值</p>
</div>
@@ -192,19 +192,19 @@
<div class="summon-monster-name"></div>
<div class="multiple">(武力值<span></span></div>
<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">
<span>召喚個數</span>
<p>成功擊敗怪獸將獲得<i>0</i>鉆石獎勵</p>
<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">
<img src="./images/main/increment.png" alt="" class="increment">
<img src="./images/main/increment.png?v1.0" alt="" class="increment">
</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 class="popup-confitm-btn active"><img src="./images/main/confirm-btn.png" alt=""></div>
<div class="mine-prop-num">我的鉆石<span>0</span> <img src="./images/popup/add.png" alt="" class="add"></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?v1.0" alt="" class="add"></div>
</div>
</div>
@@ -230,8 +230,8 @@
<div class="rank-content">
<div class="rank-top">
<div class="tab-wrap">
<p class="diamond-rank"><img src="./images/popup/rank-tab1-active.png" alt=""></p>
<p class="num-rank"><img src="./images/popup/rank-tab2.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?v1.0" alt=""></p>
</div>
<div class="topthree-wrap"></div>
</div>
@@ -241,7 +241,7 @@
<div class="mine">
<span class="mine-rank">未上榜</span>
<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>
</div>
<span class="mine-diamond-num"></span>
@@ -257,7 +257,7 @@
<script src="../../common/js/vconsole.min.js"></script>
<script src="../../common/js/svga.min.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>
</html>

View File

@@ -123,6 +123,7 @@ const getNewestAct = () => {
networkRequest({
type: 'GET',
url: urlPrefix + '/act/callBattle/getNewestAct',
timeout: 3000,
success (res) {
if (res.code === 200) {
if ($.isEmptyObject(res.data) || res.data.status === 4) {
@@ -172,6 +173,12 @@ const getNewestAct = () => {
},
error (err) {
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').removeClass('inactive')
$('.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').removeClass('inactive')
$('.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', '')
@@ -257,12 +264,12 @@ const showView = (data, monsterImg, drawId) => {
$('.confitm-btn').removeClass('active')
$('.confitm-btn').removeClass('prepare')
$('.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('prepare')
$('.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)
judgeStatus()
@@ -304,12 +311,12 @@ const showView = (data, monsterImg, drawId) => {
$('.confitm-btn').removeClass('active')
$('.confitm-btn').removeClass('inactive')
$('.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('inactive')
$('.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()
drawInfo = data //結果彈窗所需信息
@@ -506,12 +513,12 @@ const monsterAnimation = () => {
$('.confitm-btn').removeClass('active')
$('.confitm-btn').removeClass('inactive')
$('.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('inactive')
$('.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
let str = ''
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 {
topThreeArr.map((item, index) => {
$('.top-three img').eq(index).attr('src', item)
})
if (topThreeArr.length === 1) {
$('.top-three img').eq(1).attr('src', './images/main/default-hui.png')
$('.top-three img').eq(2).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?v1.0')
} 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
str1 += `
<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">
<span>${userCostPiece}</span>
</li>
@@ -704,7 +711,7 @@ const renderRecord = () => {
<p style='display: ${item.drawStatus == 2 ? "none" : "block"}'>
獎勵
<i>${item.reward}</i>
<img src="./images/popup/diamond.png" alt="">
<img src="./images/popup/diamond.png?v1.0" alt="">
</p>
</div>
</li>
@@ -902,7 +909,7 @@ const renderRankList = () => {
let len = 3 - rankListD.length
let arr = new Array(len).fill({
nick: '虛位以待',
avatar: './images/main/default.png',
avatar: './images/main/default.png?v1.0',
num: ''
})
topThreeArr.push(...arr)
@@ -963,7 +970,7 @@ const renderRankList = () => {
let len = 3 - rankListN.length
let arr = new Array(len).fill({
nick: '虛位以待',
avatar: './images/main/default.png'
avatar: './images/main/default.png?v1.0'
})
topThreeArr.push(...arr)
}
@@ -1095,11 +1102,11 @@ $(function () {
// 排行榜彈窗tab點選
$('.tab-wrap').on('click', 'p', function () {
if ($(this).index()) {
$(this).find('img').attr('src', "./images/popup/rank-tab2-active.png")
$(this).siblings().find('img').attr('src', "./images/popup/rank-tab1.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?v1.0")
} else {
$(this).find('img').attr('src', "./images/popup/rank-tab1-active.png")
$(this).siblings().find('img').attr('src', "./images/popup/rank-tab2.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?v1.0")
}
if (type === $(this).index() + 1) return
type = $(this).index() + 1
@@ -1132,8 +1139,8 @@ $(function () {
clickTabCanNetworkN = true
$('.other-rank').html('')
$('.tab-wrap p').eq(0).find('img').attr('src', "./images/popup/rank-tab1-active.png")
$('.tab-wrap p').eq(1).find('img').attr('src', "./images/popup/rank-tab2.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?v1.0")
$('body').css('overflow', 'auto')
})
@@ -1332,19 +1339,22 @@ $(function () {
if (lock) {
lock = false;
// 每個標誌位上的數量
restrainArr[currentWeaponIndex].costPieceNum += parseInt($('.select-num input').val())
$('.sign-wrap div').eq(currentWeaponIndex).find('img')
.stop(true, true)
.animate({ scale: 1.2 }, 200)
.animate({ scale: 1 }, 200, function () {
$('.sign-wrap div').eq(currentWeaponIndex).find('p').html('+' + restrainArr[currentWeaponIndex].costPieceNum).hide().fadeIn(200)
setTimeout(() => {
getUserInfo()
}, 100)
})
// restrainArr[currentWeaponIndex].costPieceNum += parseInt($('.select-num input').val()/100)
// $('.sign-wrap div').eq(currentWeaponIndex).find('img')
// .stop(true, true)
// .animate({ scale: 1.2 }, 200)
// .animate({ scale: 1 }, 200, function () {
// $('.sign-wrap div').eq(currentWeaponIndex).find('p').html('+' + restrainArr[currentWeaponIndex].costPieceNum).hide().fadeIn(200)
// setTimeout(() => {
// getUserInfo()
// }, 100)
// })
console.log('costPieceNum---', restrainArr[currentWeaponIndex].costPieceNum);
console.log('id----', restrainArr[currentWeaponIndex].id);
// console.log('costPieceNum---', restrainArr[currentWeaponIndex].costPieceNum);
// console.log('id----', restrainArr[currentWeaponIndex].id);
setTimeout(() => {
getUserInfo()
}, 100)
sendUserDrawInfo(restrainArr[currentWeaponIndex].id, $('.select-num input').val())
}
})
@@ -1500,20 +1510,22 @@ $(function () {
if (lock) {
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')
.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)
})
console.log('costPieceNum---', restrainArr[currentWeaponIndex_top].costPieceNum);
console.log('id----', restrainArr[currentWeaponIndex_top].id);
// console.log('costPieceNum---', restrainArr[currentWeaponIndex_top].costPieceNum);
// console.log('id----', restrainArr[currentWeaponIndex_top].id);
setTimeout(() => {
getUserInfo()
}, 100)
sendUserDrawInfo(restrainArr[currentWeaponIndex_top].id, $('.popup-select-num input').val())
}
})

View File

@@ -1,7 +1,7 @@
body,
html {
width: 100%;
background: #CE3346;
background: #7BC4C6;
position: relative;
box-sizing: border-box;
padding-bottom: 1.6rem;
@@ -73,40 +73,40 @@ html {
.box {
width: 9.58667rem;
height: 9.90667rem;
height: 10.28rem;
border-radius: 0.53333rem;
border: 0.16rem solid #FBC577;
border: 0.16rem solid #669900;
box-sizing: border-box;
background: #8B4621;
background: #CCCC00;
margin: -2.1rem auto 0;
position: relative;
}
.box .boxTitle {
width: 5.30667rem;
height: 0.92rem;
width: 4.89333rem;
height: 1rem;
background: url(../images/boxTitle.png) no-repeat;
background-size: 100% 100%;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: -1rem;
top: -0.4rem;
text-align: center;
line-height: 0.92rem;
line-height: 1.15rem;
color: #FFFFFF;
font-size: 0.34667rem;
}
.box .boxTitle b {
font-weight: bold;
font-size: 0.53333rem;
font-size: 0.4rem;
line-height: 0.93333rem;
}
.box .tab {
width: 8.8rem;
height: 1.26667rem;
margin: 0.36rem auto 0;
margin: 0.90667rem auto 0;
display: flex;
justify-content: space-between;
}
@@ -169,8 +169,8 @@ html {
}
.box .box_in .sBox .sBox1 img {
width: 1.6rem;
height: 1.6rem;
width: 1.97333rem;
height: 1.97333rem;
position: absolute;
left: 50%;
transform: translateX(-50%);
@@ -376,9 +376,9 @@ html {
.resultText {
width: 9.52rem;
height: 1.14667rem;
height: 1.48rem;
position: relative;
margin: -0.2rem auto 0.1rem;
margin: -0.3rem auto 0.1rem;
background: url(../images/resultText.png) no-repeat;
background-size: 100% 100%;
}
@@ -418,7 +418,7 @@ h3 b {
color: #FFFFFF;
font-size: 0.32rem;
box-sizing: border-box;
background: #BD7F38;
background: #336600;
border-radius: 0.74667rem;
margin-top: 0.48rem;
border: 1px solid #FBF6F2;
@@ -800,6 +800,7 @@ h3 b {
.shade-mask .shade-content main div .jietu.t3 {
height: 4.2rem;
margin-bottom: 2rem;
}
.shade-mask-rank {
@@ -932,7 +933,7 @@ h3 b {
height: 7rem;
padding: 0.4rem 0.26667rem 0;
box-sizing: border-box;
margin-top: 0.25rem;
margin-top: 0.35rem;
}
.shade-mask-rank .shade-content-rank .other-rank li {

View File

@@ -5,7 +5,7 @@
body,
html {
width: 100%;
background: #CE3346;
background: #7BC4C6;
position: relative;
box-sizing: border-box;
padding-bottom: px2rem(120);
@@ -77,33 +77,33 @@ html {
.box {
width: px2rem(719);
height: px2rem(743);
height: px2rem(771);
border-radius: px2rem(40);
border: px2rem(12) solid #FBC577;
border: px2rem(12) solid #669900;
box-sizing: border-box;
background: #8B4621;
background: #CCCC00;
margin: -2.1rem auto 0;
position: relative;
// display: none;
// overflow: hidden;
.boxTitle {
width: px2rem(398);
height: px2rem(69);
width: px2rem(367);
height: px2rem(75);
background: url(../images/boxTitle.png) no-repeat;
background-size: 100% 100%;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: -1rem;
top: -0.4rem;
text-align: center;
line-height: px2rem(69);
line-height: 1.15rem;
color: #FFFFFF;
font-size: px2rem(26);
b {
font-weight: bold;
font-size: px2rem(40);
font-size: px2rem(30);
line-height: px2rem(70);
}
}
@@ -111,7 +111,7 @@ html {
.tab {
width: px2rem(660);
height: px2rem(95);
margin: px2rem(27) auto 0;
margin: px2rem(68) auto 0;
display: flex;
justify-content: space-between;
@@ -171,8 +171,8 @@ html {
top: 0.7rem;
img {
width: px2rem(120);
height: px2rem(120);
width: px2rem(148);
height: px2rem(148);
position: absolute;
left: 50%;
transform: translateX(-50%);
@@ -384,9 +384,9 @@ html {
.resultText {
width: px2rem(714);
height: px2rem(86);
height: px2rem(111);
position: relative;
margin: -0.2rem auto 0.1rem;
margin: -0.3rem auto 0.1rem;
background: url(../images/resultText.png) no-repeat;
background-size: 100% 100%;
}
@@ -425,7 +425,7 @@ h3 {
color: #FFFFFF;
font-size: px2rem(24);
box-sizing: border-box;
background: #BD7F38;
background: #336600;
border-radius: px2rem(56);
margin-top: px2rem(36);
border: 1px solid #FBF6F2;
@@ -807,6 +807,7 @@ h3 {
&.t3 {
// height: px2rem(301);
height: 4.2rem;
margin-bottom: 2rem;
}
}
}
@@ -953,7 +954,7 @@ h3 {
// background-color: white;
padding: px2rem(30) px2rem(20) 0;
box-sizing: border-box;
margin-top: 0.25rem;
margin-top: 0.35rem;
li {
width: 90%;

View File

@@ -19,7 +19,8 @@
html,
body {
width: 100%;
background: linear-gradient(0deg, #E6AD6A 0%, #F9CA92 100%);
background: linear-gradient(0deg, #669900 0%, #A1D33E 100%);
height: 100%;
}
.img {
@@ -71,11 +72,10 @@ body {
width: 90%;
height: 0.58667rem;
line-height: 0.58667rem;
background: #F46331;
display: flex;
box-sizing: border-box;
padding: 0 0.26667rem;
margin: 0.2rem auto 0;
margin: 0.35rem auto 0;
}
.record-list li .goldBox p {
@@ -115,10 +115,10 @@ body {
left: 50%;
transform: translateX(-50%);
width: 1.90667rem;
height: 0.6rem;
background: url(../images/record/result.png) no-repeat;
background-size: 100% 100%;
top: 0.2rem;
text-align: center;
top: -0.1rem;
font-weight: bold;
font-size: 0.4rem;
}
.record-list li .result-wrap .award {
@@ -182,13 +182,12 @@ body {
font-weight: 600;
margin-right: 0.9rem;
position: absolute;
width: 1.02667rem;
height: 0.6rem;
left: 50%;
transform: translateX(-50%);
background: url(../images/record/touru.png) no-repeat;
background-size: 100% 100%;
top: -0.6rem;
top: -1rem;
text-align: center;
font-size: 0.4rem;
font-weight: bold;
}
.record-list li .put-wrap .list {

View File

@@ -1,5 +1,5 @@
@function px2rem($px, $rem: 75) {
@return $px / $rem+rem;
@function px2rem($px) {
@return $px / 75+rem;
}
// @function prefixurl() {
@@ -33,7 +33,9 @@
html,
body {
width: 100%;
background: linear-gradient(0deg, #E6AD6A 0%, #F9CA92 100%);
background: linear-gradient(0deg, #669900 0%, #A1D33E 100%);
height: 100%;
// background: #A1D33E;
}
.img {
@@ -85,12 +87,12 @@ body {
width: 90%;
height: px2rem(44 );
line-height: px2rem(44 );
background: #F46331;
// background: #F46331;
display: flex;
// justify-content: space-between;
box-sizing: border-box;
padding: 0 px2rem(20 );
margin: 0.2rem auto 0;
margin: 0.35rem auto 0;
p {
color: #fff;
@@ -133,10 +135,13 @@ body {
left: 50%;
transform: translateX(-50%);
width: px2rem(143 );
height: px2rem(45 );
background: url(../images/record/result.png) no-repeat;
background-size: 100% 100%;
top: 0.2rem;
text-align: center;
// height: px2rem(45 );
// background: url(../images/record/result.png) no-repeat;
// background-size: 100% 100%;
top: -0.1rem;
font-weight: bold;
font-size: px2rem(30);
}
// .bg {
@@ -217,13 +222,16 @@ body {
font-weight: 600;
margin-right: 0.9rem;
position: absolute;
width: px2rem(77 );
height: px2rem(45 );
// width: px2rem(77 );
// height: px2rem(45 );
left: 50%;
transform: translateX(-50%);
background: url(../images/record/touru.png) no-repeat;
background-size: 100% 100%;
top: -0.6rem;
// background: url(../images/record/touru.png) no-repeat;
// background-size: 100% 100%;
top: -1rem;
text-align: center;
font-size: px2rem(30);
font-weight: bold;
}
.list {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 273 KiB

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 774 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 721 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 37 KiB

View File

@@ -5,19 +5,19 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>星級廚房</title>
<title>瘋狂動物園</title>
<link rel="stylesheet" href="../../common/css/reset.css">
<link rel="stylesheet" href="./css/index.css">
<link rel="stylesheet" href="./css/index.css?v=1.0">
</head>
<body>
<!-- 頭部 -->
<div class="header">
<img src="./images/headerText.png" alt="" class="headerText">
<!-- <img src="./images/headerText.png" alt="" class="headerText"> -->
<img src="./images/rule_icon.png" alt="" class="rule_icon">
<img src="./images/record_icon.png" alt="" class="record_icon">
<img src="./images/rank_icon.png" alt="" class="rank_icon">
<div class="headerH3">選擇鉆石 > 選擇圖標</div>
<!-- <div class="headerH3">選擇鉆石 > 選擇圖標</div> -->
</div>
<!-- 食材大盒子 -->
<div class="box">
@@ -33,11 +33,11 @@
</div>
<div>
<img src="./images/Bdiamond.png" alt="">
<b>1000</b>
<b>500</b>
</div>
<div>
<img src="./images/Bdiamond.png" alt="">
<b>10000</b>
<b>5000</b>
</div>
</dib>
<!-- 食材列錶 -->
@@ -251,20 +251,20 @@
<main>
<div class="cyfs">
<p class="title">參與方式</p>
用戶可通過花費鉆石參與《星級廚房》遊戲,每次最少消耗100每回合時間30秒
玩家可通過石參與《瘋狂動物園》遊戲,每次最少需花費100石,每回合時間30秒
<p class="jietu"><img src="./images/t1.png" alt=""></p>
</div>
<div class="lwff">
<p class="title">禮物發放</p>
每次參與遊戲後獲得一次禮物開獎;
每次參與遊戲後獲得一次禮物開獎;
<p class="jietu t2"><img src="./images/t2.png" alt=""></p>
每次隨機從8種食材中選取一個或多個作為中獎食材,中獎後獲得(中獎物品所花費的石數*中獎食材對應倍數)的石獎勵,當中獎多個食材時,獲得的鉆石會同時發放。鉆石將直接發放到賬戶中。
每次隨機從8種小動物種選取一個作為中獎食材,中獎後獲得(中獎物品所花費的石數*中獎小動物對應倍數)的石獎勵,石將直接發放到賬戶中。
<p class="jietu t3"><img src="./images/t3.png" alt=""></p>
例如購買1個5倍番茄花費100購買1個蘿蔔花費100鉆,中獎後獲得100*5+100*5=1000鉆
例如購買1個5倍大象花費100中獎後獲得100*5的鑽石
</div>
<div class="qtsm">
<p class="title">其他說明</p>
如果以上說明未能解答您的疑問,請聯客服,會有專人解答疑難
如果以上說明未能解答您的疑問,請聯客服,會有專人解答疑難
<p>本活動以及活動獎勵與Google/蘋果公司無關</p>
</div>
</main>
@@ -321,4 +321,4 @@
<script src="../../common/js/vconsole.min.js"></script>
<script src="../../common/js/svga.min.js"></script>
<script src="./js/wow.js"></script>
<script src="./js/index.js"></script>
<script src="./js/index.js?v=1.0"></script>

View File

@@ -125,7 +125,7 @@ function getNewestAct () {
res.data.drawItemList.forEach(res => {
str += `
<li>
<img src="${res.drawName == '洋蔥' ? './images/1.png' : res.drawName == '番茄' ? './images/2.png' : res.drawName == '蘑菇' ? './images/3.png' : res.drawName == '土豆' ? './images/4.png' : res.drawName == '大閘蟹' ? './images/5.png' : res.drawName == '' ? './images/6.png' : res.drawName == '雞肉' ? './images/7.png' : res.drawName == '龍蝦' ? './images/8.png' : res.drawImageUrl}" alt="">
<img src="${res.drawName == '大象' ? './images/1.png' : res.drawName == '斑馬' ? './images/2.png' : res.drawName == '河馬' ? './images/3.png' : res.drawName == '考拉' ? './images/4.png' : res.drawName == '狐貍' ? './images/5.png' : res.drawName == '豹子' ? './images/6.png' : res.drawName == '老虎' ? './images/7.png' : res.drawName == '獅子' ? './images/8.png' : res.drawImageUrl}" alt="">
<div class="name">${res.drawName}</div>
</li>
`
@@ -217,7 +217,7 @@ function listItem (roundId) {
$(`.box .box_in .item${i + 1} .sBox1 `).removeClass('sBox_active');
}
$(`.box .box_in .item${i + 1}`).attr('id', res.id);
$(`.box .box_in .item${i + 1} .sBox1 img`).attr('src', res.name == '洋蔥' ? './images/1.png' : res.name == '番茄' ? './images/2.png' : res.name == '蘑菇' ? './images/3.png' : res.name == '土豆' ? './images/4.png' : res.name == '大閘蟹' ? './images/5.png' : res.name == '' ? './images/6.png' : res.name == '雞肉' ? './images/7.png' : res.name == '龍蝦' ? './images/8.png' : res.imgUrl);
$(`.box .box_in .item${i + 1} .sBox1 img`).attr('src', res.name == '大象' ? './images/1.png' : res.name == '斑馬' ? './images/2.png' : res.name == '河馬' ? './images/3.png' : res.name == '考拉' ? './images/4.png' : res.name == '狐貍' ? './images/5.png' : res.name == '豹子' ? './images/6.png' : res.name == '老虎' ? './images/7.png' : res.name == '獅子' ? './images/8.png' : res.imgUrl);
$(`.box .box_in .item${i + 1} .qp p b`).text(res.costPieceNum == 0 ? '' : res.costPieceNum);
$(`.box .box_in .item${i + 1} .bei`).text('x' + res.multiple);
$(`.box .box_in .item${i + 1} .SboxText`).text(res.name);
@@ -246,14 +246,14 @@ function listLuckySeaActInfo (roundId) {
if (res.code === 200) {
res.data.forEach((res, i) => {
if (res.drawItemList.length > 1) {
if (res.drawName == '葷菜狂歡') {
$(`.resultOut .sqp_in${i + 1} `).attr('src', './images/rou.png');
} else {
if (res.drawName == '素食狂歡') {
$(`.resultOut .sqp_in${i + 1} `).attr('src', './images/su.png');
} else {
$(`.resultOut .sqp_in${i + 1} `).attr('src', './images/rou.png');
}
} else {
// $(`.resultOut .sqp_in${i + 1} `).attr('src', res.drawItemList[0].drawImageUrl);
$(`.resultOut .sqp_in${i + 1} `).attr('src', res.drawItemList[0].drawName == '洋蔥' ? './images/1.png' : res.drawItemList[0].drawName == '番茄' ? './images/2.png' : res.drawItemList[0].drawName == '蘑菇' ? './images/3.png' : res.drawItemList[0].drawName == '土豆' ? './images/4.png' : res.drawItemList[0].drawName == '大閘蟹' ? './images/5.png' : res.drawItemList[0].drawName == '' ? './images/6.png' : res.drawItemList[0].drawName == '雞肉' ? './images/7.png' : res.drawItemList[0].drawName == '龍蝦' ? './images/8.png' : res.drawItemList[0].drawImageUrl);
$(`.resultOut .sqp_in${i + 1} `).attr('src', res.drawItemList[0].drawName == '大象' ? './images/1.png' : res.drawItemList[0].drawName == '斑馬' ? './images/2.png' : res.drawItemList[0].drawName == '河馬' ? './images/3.png' : res.drawItemList[0].drawName == '考拉' ? './images/4.png' : res.drawItemList[0].drawName == '狐貍' ? './images/5.png' : res.drawItemList[0].drawName == '豹子' ? './images/6.png' : res.drawItemList[0].drawName == '老虎' ? './images/7.png' : res.drawItemList[0].drawName == '獅子' ? './images/8.png' : res.drawItemList[0].drawImageUrl);
}
});
$('.resultOut .sqp_in').show();
@@ -272,7 +272,7 @@ function listLuckySeaActInfo (roundId) {
$('.box .tab div').click(function () {
var i = $(this).index() + 1;
$(this).addClass('active').siblings().removeClass('active');
gearPosition = i == 1 ? 100 : i == 2 ? 1000 : 10000;
gearPosition = i == 1 ? 100 : i == 2 ? 500 : 5000;
})
// 抽獎接口
function draw (itemId, tais) {

View File

@@ -92,7 +92,7 @@ $(function () {
</div>
<div class="result-wrap">
<div class="result">
<span></span>
<span>本輪結果</span>
</div>
<div class="award">
<p>獎勵:</p>
@@ -106,7 +106,7 @@ $(function () {
</div>
</div>
<div class="put-wrap">
<div class="put"></div>
<div class="put">投入</div>
<div class="list">
</div>

View File

@@ -1,6 +1,6 @@
var baba = document.querySelector('body');
baba.addEventListener('click', function (e) {
$('body,html').css({ "width": "100%", "position": "relative", "overflow": "hidden" });
// $('body,html').css({ "width": "100%", "position": "relative", "overflow": "hidden" });
tianJia(e);
})
@@ -42,5 +42,5 @@ function move () {
}
window.requestAnimationFrame(move);
$('body,html').css({ "width": "100%", "position": "relative", "overflow": "auto" });
// $('body,html').css({ "width": "100%", "position": "relative", "overflow": "auto" });
}

View File

@@ -8,7 +8,7 @@
<title>游戏记录</title>
<link rel="stylesheet" href="../../common/css/reset.css">
<link rel="stylesheet" href="./css/record.css">
<link rel="stylesheet" href="./css/record.css?v=1.1">
</head>
<body>
@@ -140,7 +140,7 @@
<script src="../../common/js/common2.js"></script>
<script src="../../common/js/layer.js"></script>
<script src="../../common/js/vconsole.min.js"></script>
<script src="./js/record.js"></script>
<script src="./js/record.js?v=1.0"></script>
</body>
</html>

View File

@@ -0,0 +1,768 @@
html,
body {
width: 100%;
background: #05341F;
}
.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: 8.24rem;
background: url(../images/header.png) no-repeat;
background-size: 100% 100%;
position: relative;
margin: 0 auto 0;
}
.header .rule_icon {
width: 0.72rem;
height: 1.92rem;
position: absolute;
top: 2.61333rem;
right: 0;
}
.header div {
width: 100%;
text-align: center;
font-size: 0.37333rem;
color: #FFFCE6;
position: absolute;
top: 1rem;
left: 0;
font-weight: 500;
}
.tabBox {
width: 9.52rem;
height: 1.66667rem;
background: url(../images/tabBox.png) no-repeat;
background-size: 100% 100%;
margin: -0.53333rem auto 0.18667rem;
position: relative;
display: flex;
justify-content: space-between;
padding: 0 0.37333rem;
box-sizing: border-box;
}
.tabBox div {
width: 2.16rem;
height: 1.12rem;
margin-top: 0.28rem;
}
.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 .tab3 {
background: url(../images/tab3.png) no-repeat;
background-size: 100% 100%;
}
.tabBox .tab4 {
background: url(../images/tab4.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%;
}
.tabBox .tabAct3 {
background: url(../images/tabAct3.png) no-repeat;
background-size: 100% 100%;
}
.tabBox .tabAct4 {
background: url(../images/tabAct4.png) no-repeat;
background-size: 100% 100%;
}
.page1 .time {
width: 100%;
height: 0.98667rem;
line-height: 0.98667rem;
text-align: center;
color: #FFEDBB;
font-size: 0.32rem;
}
.page1 .time span {
width: 0.98667rem;
margin: 0 0.12rem;
color: #FFF;
font-size: 0.42667rem;
background: url(../images/num.png) no-repeat;
background-size: 100% 100%;
display: inline-block;
}
.page1 .top {
width: 100%;
height: 5.12rem;
margin: 0 auto 0.26667rem;
position: relative;
}
.page1 .top .no1 {
width: 2.98667rem;
height: 5.12rem;
position: absolute;
left: 50%;
top: 0;
transform: translateX(-50%);
}
.page1 .top .no1 .ts {
width: 100%;
height: 100%;
position: absolute;
z-index: 2;
}
.page1 .top .no1 .tx {
width: 2.21333rem;
height: 2.21333rem;
border-radius: 50%;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 0.77333rem;
z-index: 2;
}
.page1 .top .no1 p {
width: 81%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
text-align: center;
color: #663208;
font-size: 0.34667rem;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 3.16rem;
z-index: 2;
font-weight: bold;
}
.page1 .top .no1 span {
width: 81%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
text-align: center;
color: #663208;
font-size: 0.29333rem;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 3.64rem;
z-index: 2;
}
.page1 .top .no1 .score {
width: 2.45333rem;
height: 0.61333rem;
line-height: 0.61333rem;
text-align: center;
color: #FFF1D8;
font-size: 0.29333rem;
background: url(../images/win.png) no-repeat;
background-size: 100% 100%;
z-index: 2;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 4rem;
}
.page1 .top .no1 .score b {
color: #fff;
font-size: 0.32rem;
}
.page1 .top .no2 {
width: 2.98667rem;
height: 5.12rem;
position: absolute;
left: 0.32rem;
top: 0;
}
.page1 .top .no2 .ts {
width: 100%;
height: 100%;
position: absolute;
z-index: 2;
}
.page1 .top .no2 .tx {
width: 1.94667rem;
height: 1.94667rem;
border-radius: 50%;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 1.06667rem;
z-index: 2;
}
.page1 .top .no2 p {
width: 81%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
text-align: center;
color: #663208;
font-size: 0.34667rem;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 3.16rem;
z-index: 2;
font-weight: bold;
}
.page1 .top .no2 span {
width: 81%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
text-align: center;
color: #663208;
font-size: 0.29333rem;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 3.64rem;
z-index: 2;
}
.page1 .top .no2 .score {
width: 2.45333rem;
height: 0.61333rem;
line-height: 0.61333rem;
text-align: center;
color: #FFF1D8;
font-size: 0.29333rem;
background: url(../images/win2.png) no-repeat;
background-size: 100% 100%;
z-index: 2;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 4rem;
}
.page1 .top .no2 .score b {
color: #fff;
font-size: 0.32rem;
}
.page1 .top .no3 {
width: 2.98667rem;
height: 5.12rem;
position: absolute;
right: 0.32rem;
top: 0;
}
.page1 .top .no3 .ts {
width: 100%;
height: 100%;
position: absolute;
z-index: 2;
}
.page1 .top .no3 .tx {
width: 1.94667rem;
height: 1.94667rem;
border-radius: 50%;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 1.06667rem;
z-index: 2;
}
.page1 .top .no3 p {
width: 81%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
text-align: center;
color: #663208;
font-size: 0.34667rem;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 3.16rem;
z-index: 2;
font-weight: bold;
}
.page1 .top .no3 span {
width: 81%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
text-align: center;
color: #663208;
font-size: 0.29333rem;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 3.64rem;
z-index: 2;
}
.page1 .top .no3 .score {
width: 2.45333rem;
height: 0.61333rem;
line-height: 0.61333rem;
text-align: center;
color: #FFF1D8;
font-size: 0.29333rem;
background: url(../images/win3.png) no-repeat;
background-size: 100% 100%;
z-index: 2;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 4rem;
}
.page1 .top .no3 .score b {
color: #fff;
font-size: 0.32rem;
}
.page1 ul {
width: 9.30667rem;
margin: 0 auto 2rem;
}
.page1 ul li {
width: 100%;
height: 1.81333rem;
background: url(../images/li.png) no-repeat;
background-size: 100% 100%;
}
.page1 ul li .num {
width: 1rem;
text-align: center;
color: #fff;
font-size: 0.53333rem;
font-weight: bold;
float: left;
height: 100%;
line-height: 1.81333rem;
margin-right: 0.18667rem;
}
.page1 ul li .tx {
width: 1.30667rem;
height: 1.30667rem;
border-radius: 50%;
float: left;
display: block;
margin-top: 0.25333rem;
margin-right: 0.30667rem;
}
.page1 ul li .user {
width: 3.12rem;
float: left;
}
.page1 ul li .user p {
width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: #FFFFFF;
font-size: 0.37333rem;
margin-top: 0.50667rem;
margin-bottom: 0.18667rem;
}
.page1 ul li .user span {
width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: #B8BCBB;
font-size: 0.32rem;
}
.page1 ul li .score {
float: right;
height: 100%;
line-height: 1.81333rem;
color: #FFE04E;
font-size: 0.29333rem;
margin-right: 0.48rem;
}
.page1 .my {
width: 100%;
position: fixed;
height: 1.81333rem;
background: url(../images/my.png) no-repeat;
background-size: 100% 100%;
left: 0;
bottom: 0;
}
.page1 .my .num {
width: 1rem;
text-align: center;
color: #D7D1CE;
font-size: 0.32rem;
font-weight: bold;
float: left;
height: 100%;
line-height: 1.81333rem;
margin-right: 0.18667rem;
margin-left: 0.44rem;
}
.page1 .my .tx {
width: 1.30667rem;
height: 1.30667rem;
border-radius: 50%;
float: left;
display: block;
margin-top: 0.25333rem;
margin-right: 0.30667rem;
}
.page1 .my .user {
width: 3.12rem;
float: left;
}
.page1 .my .user p {
width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: #FFFFFF;
font-size: 0.37333rem;
line-height: 1.81333rem;
}
.page1 .my .user span {
width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: #B8BCBB;
font-size: 0.32rem;
}
.page1 .my .score {
float: right;
height: 100%;
line-height: 1.81333rem;
color: #FFE04E;
font-size: 0.29333rem;
margin-right: 0.48rem;
}
.page2 {
display: none;
}
.page2 .timeShow {
width: 9.36rem;
height: 1.70667rem;
background: #032417;
margin: 0 auto 0.16rem;
overflow: hidden;
border-radius: 0.10667rem;
}
.page2 .timeShow p {
width: 100%;
text-align: center;
color: #FFEDBB;
font-size: 0.4rem;
margin-top: 0.37333rem;
margin-bottom: 0.2rem;
}
.page2 .timeShow p b {
color: #fff;
}
.page2 .timeShow span {
width: 100%;
display: block;
text-align: center;
color: #FFEDBB;
font-size: 0.4rem;
}
.page2 .timeShow span b {
color: #fff;
}
.page2 .page2GoToRoom {
width: 8.58667rem;
height: 0.65333rem;
display: block;
margin: 0 auto 0.61333rem;
}
.page2 .line {
width: 10rem;
height: 0.4rem;
margin: 0 auto 0.41333rem;
display: block;
}
.page2 .page2Bg {
width: 10rem;
display: block;
margin: 0 auto 1.16rem;
}
.page3 {
display: none;
}
.page3 .timeShow {
width: 9.36rem;
height: 1.70667rem;
background: #032417;
margin: 0 auto 0.16rem;
overflow: hidden;
border-radius: 0.10667rem;
}
.page3 .timeShow p {
width: 100%;
text-align: center;
color: #FFEDBB;
font-size: 0.4rem;
margin-top: 0.37333rem;
margin-bottom: 0.2rem;
}
.page3 .timeShow p b {
color: #fff;
}
.page3 .timeShow span {
width: 100%;
display: block;
text-align: center;
color: #FFEDBB;
font-size: 0.4rem;
}
.page3 .timeShow span b {
color: #fff;
}
.page3 .page2GoToRoom {
width: 8.58667rem;
height: 0.65333rem;
display: block;
margin: 0 auto 0.61333rem;
}
.page3 .line {
width: 10rem;
height: 0.4rem;
margin: 0 auto 0.41333rem;
display: block;
}
.page3 .page2Bg {
width: 10rem;
display: block;
margin: 0 auto 1.16rem;
}
.page4 {
display: none;
}
.page4 .timeShow {
width: 9.36rem;
height: 1.70667rem;
background: #032417;
margin: 0 auto 0.16rem;
overflow: hidden;
border-radius: 0.10667rem;
}
.page4 .timeShow p {
width: 100%;
text-align: center;
color: #FFEDBB;
font-size: 0.4rem;
margin-top: 0.37333rem;
margin-bottom: 0.2rem;
}
.page4 .timeShow p b {
color: #fff;
}
.page4 .timeShow span {
width: 100%;
display: block;
text-align: center;
color: #FFEDBB;
font-size: 0.4rem;
}
.page4 .timeShow span b {
color: #fff;
}
.page4 .page2GoToRoom {
width: 8.58667rem;
height: 0.65333rem;
display: block;
margin: 0 auto 0.61333rem;
}
.page4 .line {
width: 10rem;
height: 0.4rem;
margin: 0 auto 0.41333rem;
display: block;
}
.page4 .page2Bg {
width: 10rem;
display: block;
margin-bottom: 1.16rem;
}
.page4 .swiper {
width: 10rem;
height: 7.5rem;
margin-bottom: 1.37333rem;
}
.page4 .swiper .swiper-slide,
.page4 .swiper .img {
display: block;
width: 100%;
}
.page4 .swiper .swiper-pagination-bullet {
background: #507163;
}
.page4 .swiper .swiper-pagination-bullet-active {
background: #FFEC4B;
}
.rule {
position: fixed;
z-index: 999;
left: 0;
top: 0;
bottom: 0;
right: 0;
background: rgba(0, 0, 0, 0.6);
display: none;
}
.rule .rule_in {
width: 9.25333rem;
height: 14.36rem;
position: relative;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
background: url(../images/ruleBG.png) no-repeat;
background-size: 100% 100%;
}
.rule .rule_in .tab {
width: 7.22667rem;
height: 0.88rem;
display: flex;
justify-content: space-between;
margin: 0.02667rem auto 0.64rem;
}
.rule .rule_in .tab div {
width: 50%;
height: 100%;
}
.rule .rule_in .tab1 {
background: url(../images/ruleTab1.png) no-repeat;
background-size: 100% 100%;
}
.rule .rule_in .tab2 {
background: url(../images/ruleTab2.png) no-repeat;
background-size: 100% 100%;
}
.rule .rule_in .box {
width: 7.76rem;
height: 12.3rem;
margin: 0 auto;
overflow-y: scroll;
}
.rule .rule_in .box::-webkit-scrollbar {
display: none;
}
.rule .rule_in .box img {
display: block;
width: 100%;
}

View File

@@ -0,0 +1,788 @@
@function px2rem($px) {
@return $px / 75+rem;
}
html,
body {
width: 100%;
// background: radial-gradient(circle, #32140C 0%, #05040A 100%);
background: #05341F;
}
.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(618);
background: url(../images/header.png) no-repeat;
background-size: 100% 100%;
position: relative;
margin: 0 auto 0;
.rule_icon {
width: px2rem(54);
height: px2rem(144);
position: absolute;
top: px2rem(196);
right: 0;
}
div {
width: 100%;
text-align: center;
font-size: px2rem(28);
color: #FFFCE6;
position: absolute;
top: 1rem;
left: 0;
font-weight: 500;
}
}
.tabBox {
width: px2rem(714);
height: px2rem(125);
background: url(../images/tabBox.png) no-repeat;
background-size: 100% 100%;
margin: px2rem(-40) auto px2rem(14);
position: relative;
display: flex;
justify-content: space-between;
padding: 0 px2rem(28);
box-sizing: border-box;
div {
width: px2rem(162);
height: px2rem(84);
margin-top: px2rem(21);
}
.tab1 {
background: url(../images/tab1.png) no-repeat;
background-size: 100% 100%;
}
.tab2 {
background: url(../images/tab2.png) no-repeat;
background-size: 100% 100%;
}
.tab3 {
background: url(../images/tab3.png) no-repeat;
background-size: 100% 100%;
}
.tab4 {
background: url(../images/tab4.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%;
}
.tabAct3 {
background: url(../images/tabAct3.png) no-repeat;
background-size: 100% 100%;
}
.tabAct4 {
background: url(../images/tabAct4.png) no-repeat;
background-size: 100% 100%;
}
}
.page1 {
// display: none;
.time {
width: 100%;
height: px2rem(74);
line-height: px2rem(74);
text-align: center;
color: #FFEDBB;
font-size: px2rem(24);
span {
width: px2rem(74);
margin: 0 px2rem(9);
color: #FFF;
font-size: px2rem(32);
background: url(../images/num.png) no-repeat;
background-size: 100% 100%;
display: inline-block;
}
}
.top {
width: 100%;
height: px2rem(384);
margin: 0 auto px2rem(20);
position: relative;
.no1 {
width: px2rem(224);
height: px2rem(384);
position: absolute;
left: 50%;
top: 0;
transform: translateX(-50%);
.ts {
width: 100%;
height: 100%;
position: absolute;
z-index: 2;
}
.tx {
width: px2rem(166);
height: px2rem(166);
border-radius: 50%;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: px2rem(58);
z-index: 2;
}
p {
width: 81%;
//超出省略号
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
text-align: center;
color: #663208;
font-size: px2rem(26);
position: absolute;
left: 50%;
transform: translateX(-50%);
top: px2rem(237);
z-index: 2;
font-weight: bold;
}
span {
width: 81%;
//超出省略号
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
text-align: center;
color: #663208;
font-size: px2rem(22);
position: absolute;
left: 50%;
transform: translateX(-50%);
top: px2rem(273);
z-index: 2;
}
.score {
width: px2rem(184);
height: px2rem(46);
line-height: px2rem(46);
text-align: center;
color: #FFF1D8;
font-size: px2rem(22);
background: url(../images/win.png) no-repeat;
background-size: 100% 100%;
z-index: 2;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: px2rem(300);
b {
color: #fff;
font-size: px2rem(24);
}
}
}
.no2 {
width: px2rem(224);
height: px2rem(384);
position: absolute;
left: px2rem(24);
top: 0;
.ts {
width: 100%;
height: 100%;
position: absolute;
z-index: 2;
}
.tx {
width: px2rem(146);
height: px2rem(146);
border-radius: 50%;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: px2rem(80);
z-index: 2;
}
p {
width: 81%;
//超出省略号
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
text-align: center;
color: #663208;
font-size: px2rem(26);
position: absolute;
left: 50%;
transform: translateX(-50%);
top: px2rem(237);
z-index: 2;
font-weight: bold;
}
span {
width: 81%;
//超出省略号
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
text-align: center;
color: #663208;
font-size: px2rem(22);
position: absolute;
left: 50%;
transform: translateX(-50%);
top: px2rem(273);
z-index: 2;
}
.score {
width: px2rem(184);
height: px2rem(46);
line-height: px2rem(46);
text-align: center;
color: #FFF1D8;
font-size: px2rem(22);
background: url(../images/win2.png) no-repeat;
background-size: 100% 100%;
z-index: 2;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: px2rem(300);
b {
color: #fff;
font-size: px2rem(24);
}
}
}
.no3 {
width: px2rem(224);
height: px2rem(384);
position: absolute;
right: px2rem(24);
top: 0;
.ts {
width: 100%;
height: 100%;
position: absolute;
z-index: 2;
}
.tx {
width: px2rem(146);
height: px2rem(146);
border-radius: 50%;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: px2rem(80);
z-index: 2;
}
p {
width: 81%;
//超出省略号
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
text-align: center;
color: #663208;
font-size: px2rem(26);
position: absolute;
left: 50%;
transform: translateX(-50%);
top: px2rem(237);
z-index: 2;
font-weight: bold;
}
span {
width: 81%;
//超出省略号
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
text-align: center;
color: #663208;
font-size: px2rem(22);
position: absolute;
left: 50%;
transform: translateX(-50%);
top: px2rem(273);
z-index: 2;
}
.score {
width: px2rem(184);
height: px2rem(46);
line-height: px2rem(46);
text-align: center;
color: #FFF1D8;
font-size: px2rem(22);
background: url(../images/win3.png) no-repeat;
background-size: 100% 100%;
z-index: 2;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: px2rem(300);
b {
color: #fff;
font-size: px2rem(24);
}
}
}
}
ul {
width: px2rem(698);
// height: px2rem(136);
margin: 0 auto px2rem(150);
li {
width: 100%;
height: px2rem(136);
background: url(../images/li.png) no-repeat;
background-size: 100% 100%;
.num {
width: px2rem(75);
text-align: center;
color: #fff;
font-size: px2rem(40);
font-weight: bold;
float: left;
height: 100%;
line-height: px2rem(136);
margin-right: px2rem(14);
}
.tx {
width: px2rem(98);
height: px2rem(98);
border-radius: 50%;
float: left;
display: block;
margin-top: px2rem(19);
margin-right: px2rem(23);
}
.user {
width: px2rem(234);
float: left;
p {
width: 100%;
//超出省略号
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: #FFFFFF;
font-size: px2rem(28);
margin-top: px2rem(38);
margin-bottom: px2rem(14);
}
span {
width: 100%;
//超出省略号
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: #B8BCBB;
font-size: px2rem(24);
}
}
.score {
float: right;
height: 100%;
line-height: px2rem(136);
color: #FFE04E;
font-size: px2rem(22);
margin-right: px2rem(36);
}
}
}
.my {
width: 100%;
position: fixed;
height: px2rem(136);
background: url(../images/my.png) no-repeat;
background-size: 100% 100%;
left: 0;
bottom: 0;
.num {
width: px2rem(75);
text-align: center;
color: #D7D1CE;
font-size: px2rem(24);
font-weight: bold;
float: left;
height: 100%;
line-height: px2rem(136);
margin-right: px2rem(14);
margin-left: px2rem(33);
}
.tx {
width: px2rem(98);
height: px2rem(98);
border-radius: 50%;
float: left;
display: block;
margin-top: px2rem(19);
margin-right: px2rem(23);
}
.user {
width: px2rem(234);
float: left;
p {
width: 100%;
//超出省略号
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: #FFFFFF;
font-size: px2rem(28);
line-height: px2rem(136);
}
span {
width: 100%;
//超出省略号
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: #B8BCBB;
font-size: px2rem(24);
}
}
.score {
float: right;
height: 100%;
line-height: px2rem(136);
color: #FFE04E;
font-size: px2rem(22);
margin-right: px2rem(36);
}
}
}
.page2 {
display: none;
.timeShow {
width: px2rem(702);
height: px2rem(128);
background: #032417;
margin: 0 auto px2rem(12);
overflow: hidden;
border-radius: px2rem(8);
p {
width: 100%;
text-align: center;
color: #FFEDBB;
font-size: px2rem(30);
margin-top: px2rem(28);
margin-bottom: px2rem(15);
b {
color: #fff;
}
}
span {
width: 100%;
display: block;
text-align: center;
color: #FFEDBB;
font-size: px2rem(30);
b {
color: #fff;
}
}
}
.page2GoToRoom {
width: px2rem(644);
height: px2rem(49);
display: block;
margin: 0 auto px2rem(46);
}
.line {
width: px2rem(750);
height: px2rem(30);
margin: 0 auto px2rem(31);
display: block;
}
.page2Bg {
width: px2rem(750);
display: block;
margin: 0 auto px2rem(87);
}
}
.page3 {
display: none;
.timeShow {
width: px2rem(702);
height: px2rem(128);
background: #032417;
margin: 0 auto px2rem(12);
overflow: hidden;
border-radius: px2rem(8);
p {
width: 100%;
text-align: center;
color: #FFEDBB;
font-size: px2rem(30);
margin-top: px2rem(28);
margin-bottom: px2rem(15);
b {
color: #fff;
}
}
span {
width: 100%;
display: block;
text-align: center;
color: #FFEDBB;
font-size: px2rem(30);
b {
color: #fff;
}
}
}
.page2GoToRoom {
width: px2rem(644);
height: px2rem(49);
display: block;
margin: 0 auto px2rem(46);
}
.line {
width: px2rem(750);
height: px2rem(30);
margin: 0 auto px2rem(31);
display: block;
}
.page2Bg {
width: px2rem(750);
display: block;
margin: 0 auto px2rem(87);
}
}
.page4 {
display: none;
.timeShow {
width: px2rem(702);
height: px2rem(128);
background: #032417;
margin: 0 auto px2rem(12);
overflow: hidden;
border-radius: px2rem(8);
p {
width: 100%;
text-align: center;
color: #FFEDBB;
font-size: px2rem(30);
margin-top: px2rem(28);
margin-bottom: px2rem(15);
b {
color: #fff;
}
}
span {
width: 100%;
display: block;
text-align: center;
color: #FFEDBB;
font-size: px2rem(30);
b {
color: #fff;
}
}
}
.page2GoToRoom {
width: px2rem(644);
height: px2rem(49);
display: block;
margin: 0 auto px2rem(46);
}
.line {
width: px2rem(750);
height: px2rem(30);
margin: 0 auto px2rem(31);
display: block;
}
.page2Bg {
width: px2rem(750);
display: block;
margin-bottom: px2rem(87);
}
.swiper {
width: px2rem(750);
height: 7.5rem;
margin-bottom: px2rem(103);
.swiper-slide,
.img {
display: block;
width: 100%;
}
.swiper-pagination-bullet {
background: #507163;
}
.swiper-pagination-bullet-active {
background: #FFEC4B;
}
}
}
.rule {
position: fixed;
z-index: 999;
left: 0;
top: 0;
bottom: 0;
right: 0;
background: rgba(0, 0, 0, .6);
display: none;
.rule_in {
width: px2rem(694);
height: px2rem(1077);
position: relative;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
background: url(../images/ruleBG.png) no-repeat;
background-size: 100% 100%;
.tab {
width: px2rem(542);
height: px2rem(66);
display: flex;
justify-content: space-between;
margin: px2rem(2) auto px2rem(48);
div {
width: 50%;
height: 100%;
}
}
.tab1 {
background: url(../images/ruleTab1.png) no-repeat;
background-size: 100% 100%;
}
.tab2 {
background: url(../images/ruleTab2.png) no-repeat;
background-size: 100% 100%;
}
.box {
width: px2rem(582);
height: 12.3rem;
margin: 0 auto;
overflow-y: scroll;
&::-webkit-scrollbar {
display: none;
}
img {
display: block;
width: 100%;
}
}
}
}

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 814 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 381 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 448 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Some files were not shown because too many files have changed in this diff Show More