14 Commits

Author SHA1 Message Date
Dragon
da5a6ca993 新增礼物墙规则 2024-01-30 15:27:42 +08:00
Dragon
2ed22d00fa 替换榜单 2024-01-23 21:38:57 +08:00
Dragon
214c67d792 替换桌球榜单 2024-01-23 19:56:10 +08:00
Dragon
1e97695c3e 替换图片 2024-01-22 21:31:45 +08:00
Dragon
008764107c 替换桌球争霸赛榜单 2024-01-22 20:29:56 +08:00
Dragon
4bd5aa0804 替换页面2榜单 2024-01-22 14:27:24 +08:00
Dragon
2a1eb57cb9 新增榜单数据 2024-01-22 13:35:24 +08:00
Dragon
a228ecd21d 替换图片 2024-01-19 09:55:17 +08:00
Dragon
180d06864e 新增主视觉时间 2024-01-19 09:51:19 +08:00
Dragon
f30a3f4e3f 新增桌球争霸赛 2024-01-18 20:00:42 +08:00
Dragon
1a48518d81 优化实名认证文案 2024-01-16 18:59:27 +08:00
Dragon
45abdc199b 替换规则 2024-01-04 18:23:48 +08:00
Dragon
89297793fc 替换定位落地页 2024-01-04 11:31:23 +08:00
Dragon
9ddc2235e1 替换官网图 2024-01-03 16:56:20 +08:00
50 changed files with 1953 additions and 8 deletions

View File

@@ -104,6 +104,10 @@ body {
color: #664324;
}
.page1 {
display: none;
}
.page1 .box {
width: 9.21333rem;
height: 21.94667rem;
@@ -1005,7 +1009,6 @@ body {
width: 9.46667rem;
position: relative;
margin: 0 auto;
display: none;
}
.page3 .page3TitleIcon {

View File

@@ -110,7 +110,7 @@ body {
}
.page1 {
// display: none;
display: none;
.box {
width: px2rem(691);
@@ -1015,7 +1015,7 @@ body {
width: px2rem(710);
position: relative;
margin: 0 auto;
display: none;
// display: none;
.page3TitleIcon {
display: block;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View File

@@ -21,9 +21,9 @@
<!-- 宝箱任务 -->
<img src="./images/toast.png" alt="" class="toast">
<!-- tab切换 -->
<div class="act tab tab1">年度挚友</div>
<div class="tab tab1">年度挚友</div>
<div class="tab tab2">礼物代言人</div>
<div class="tab tab3">人气主播</div>
<div class="act tab tab3">人气主播</div>
<div class="tab tab4">名厅之战</div>
<div class="tab tab5">年度神豪</div>
</div>
@@ -482,7 +482,7 @@
</div>
</div>
<div class="tabBox2">
<i class="text">新秀值:按照用户在任意房间收到钻石礼物获得贡献1钻石=1新秀值</i>
<i class="text">新秀值:按照用户在任意房间收到钻石礼物获得新秀1钻石=1新秀值</i>
<img src="./images/celebrationTaskLine.png" alt="" class="line">
<div class="celebrationTaskBox">
<div class="title">LV1</div>

View File

@@ -304,7 +304,7 @@ $(function () {
})
// getRoomUid();
getTask();
cpRank();
popularGetRank();
}, 100)
})
// tab总切换

View File

@@ -0,0 +1,700 @@
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: 0.81333rem;
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.69333rem;
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 .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%;
}
.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-bottom: 1.16rem;
}
.page3 .swiper {
width: 10rem;
height: 12.5rem;
margin-bottom: 1.37333rem;
}
.page3 .swiper .swiper-slide,
.page3 .swiper .img {
display: block;
width: 100%;
}
.page3 .swiper .swiper-pagination-bullet {
background: #507163;
}
.page3 .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,720 @@
@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: px2rem(61);
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(202);
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%;
}
.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%;
}
}
.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-bottom: px2rem(87);
}
.swiper {
width: px2rem(750);
height: 12.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: 98 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: 185 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 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: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -0,0 +1,143 @@
<!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/swiper-bundle.min.css">
<link rel="stylesheet" href="./css/index.css">
</head>
<body>
<!-- 顶部返回 -->
<div class="back">
<img src="./images/travel/back.png" alt="">
</div>
<!-- 头部 -->
<div class="header">
<img src="./images/rule.png" alt="" class="rule_icon">
<div>活动时间:1月20日-1月23日</div>
</div>
<!-- tab -->
<div class="tabBox">
<div class="tab1 tabAct1"></div>
<div class="tab2"></div>
<div class="tab3"></div>
</div>
<!-- page1 -->
<div class="page1">
<!-- 倒计时 -->
<div class="time">距离预选赛结束<span class="sp1">00</span><span class="sp2">00</span><span class="sp3">00</span>
</div>
<!-- 前三 -->
<div class="top">
<div class="no1">
<img src="./images/no1.png" alt="" class="ts">
<img src="" alt="" class="tx">
<p>虚位以待</p>
<span>ID:8888</span>
<div class="score">胜场次数: <b>0</b></div>
</div>
<div class="no2">
<img src="./images/no2.png" alt="" class="ts">
<img src="" alt="" class="tx">
<p>虚位以待</p>
<span>ID:8888</span>
<div class="score">胜场次数: <b>0</b></div>
</div>
<div class="no3">
<img src="./images/no3.png" alt="" class="ts">
<img src="" alt="" class="tx">
<p>虚位以待</p>
<span>ID:8888</span>
<div class="score">胜场次数: <b>0</b></div>
</div>
</div>
<!-- 非前三 -->
<ul>
<li>
<div class="num">4</div>
<img src="" alt="" class="tx">
<div class="user">
<p>虚位以待</p>
<span>ID:8888</span>
</div>
<div class="score">胜场次数: 0</div>
</li>
</ul>
<!-- 自己 -->
<div class="my">
<div class="num">未上榜</div>
<img src="" alt="" class="tx">
<div class="user">
<p>虚位以待</p>
</div>
<div class="score">胜场次数: 0</div>
</div>
</div>
<!-- page2 -->
<div class="page2">
<!-- 时间 -->
<div class="timeShow">
<p>1月22日 <b>19:00:00</b> 开赛!</p>
<span>对决房间:<b>80</b></span>
</div>
<!-- 跳转房间展示 -->
<img src="./images/page2GoToRoom.png" alt="" class="page2GoToRoom">
<!-- 线条 -->
<img src="./images/page2line.png" alt="" class="line">
<!-- 榜单展示 -->
<img src="./images/page2Bg.png?v=1.0" alt="" class="page2Bg">
</div>
<!-- page3 -->
<div class="page3">
<!-- 时间 -->
<div class="timeShow">
<p>1月23日 <b>19:00:00</b> 开赛!</p>
<span>对决房间:<b>80</b></span>
</div>
<!-- 跳转房间展示 -->
<img src="./images/page2GoToRoom.png" alt="" class="page2GoToRoom">
<!-- 榜单展示 -->
<!-- <img src="" alt="" class="page2Bg"> -->
<div class="swiper">
<div class="swiper-wrapper">
<div class="swiper-slide">
<img src="./images/page3Bg1.png" alt="">
</div>
<div class="swiper-slide">
<img src="./images/page3Bg2.png" alt="">
</div>
<div class="swiper-slide">
<img src="./images/page3Bg3.png" alt="">
</div>
</div>
<!-- 如果需要分页器 -->
<div class="swiper-pagination"></div>
</div>
</div>
<!-- 活动规则 -->
<div class="rule">
<div class="rule_in">
<div class="tab tab1">
<div></div>
<div></div>
</div>
<div class="box">
<img src="./images/rule1.png" alt="">
</div>
</div>
</div>
</body>
</html>
<script src="../../common/js/flexible.js"></script>
<script src="../../common/js/jquery-3.2.1.min.js"></script>
<script src="../../common/js/common2.js"></script>
<script src="../../common/js/layer.js"></script>
<script src="../../common/js/vconsole.min.js"></script>
<script src="../../common/js/route-constant.js"></script>
<script src="./js/swiper-bundle.min.js"></script>
<script src="./js/index.js"></script>

View File

@@ -0,0 +1,253 @@
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 roomUid = 585927;
var round = null;//轮次
var countupTime = null;//倒计时
var endTime = null;
// 初始化函数
$(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)
}
})
var mySwiper = new Swiper('.swiper', {
// direction: "vertical",
loop: true,
// autoplay: {
// delay: 3500,
// disableOnInteraction: false
// },
// 如果需要分页器
pagination: {
el: '.swiper-pagination',
},
})
getRank();
}, 100)
})
// tab切换
$('.tabBox div').click(function () {
var i = $(this).index() + 1;
$('.tabBox div').removeClass('tabAct1').removeClass('tabAct2').removeClass('tabAct3');
$(`.tabBox .tab${i}`).addClass(`tabAct${i}`);
$('.page1,.page2,.page3').hide();
$(`.page${i}`).show();
if (i == 1) {
round = i;
getRank();
}
})
// 前三跳转
$('.page1 .top div').on('click', '.tx', function () {
var uid = $(this).attr('uid');
// 跳转个人资料页
if (browser.ios) {
window.webkit.messageHandlers.openPersonPage.postMessage(uid);
} else if (browser.android) {
if (androidJsObj && typeof androidJsObj === 'object') {
window.androidJsObj.openPersonPage(uid);
}
} else {
console.log('web');
}
})
// 非前三跳转
$('.page1 ul').on('click', 'li .tx', function () {
var uid = $(this).attr('uid');
// 跳转个人资料页
if (browser.ios) {
window.webkit.messageHandlers.openPersonPage.postMessage(uid);
} else if (browser.android) {
if (androidJsObj && typeof androidJsObj === 'object') {
window.androidJsObj.openPersonPage(uid);
}
} else {
console.log('web');
}
})
// 获取任务接口
function getRank () {
$('ul li').remove();
showLoading()
networkRequest({
type: 'GET',
url: urlPrefix + '/act/2024Snooker/room/getRank',
data: { round },
success (res) {
if (res.code === 200) {
// 当前页面展示
$('.tabBox div').removeClass('tabAct1').removeClass('tabAct2').removeClass('tabAct3');
$(`.tabBox .tab${res.data.rankType}`).addClass(`tabAct${res.data.rankType}`);
$('.page1,.page2,.page3').hide();
$(`.page${res.data.rankType}`).show();
// 处理倒计时
if (res.data.rankType == 1) {
if (round == null) {
endTime = res.data.roundList[0].endTime
}
if (endTime - res.timestamp > 0) {
countup(endTime - res.timestamp);
} else {
$('.time').hide();
}
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: '虚位以待',
erbanNo: "虚位以待",
score: "0"
})
top3.push(...arr)
}
top3.forEach((res, i) => {
$(`.top .no${i + 1} .tx`).attr('src', res.avatar);
$(`.top .no${i + 1} .tx`).attr('uid', res.uid);
$(`.top .no${i + 1} p`).text(res.nick);
$(`.top .no${i + 1} span`).text(`ID:${res.erbanNo}`);
$(`.top .no${i + 1} .score b`).text(res.score);
});
// 处理非前三
var str = '';
notTop3.forEach((res, i) => {
str += `
<li>
<div class="num">${res.ranking}</div>
<img uid=${res.uid} src="${res.avatar}" alt="" class="tx">
<div class="user">
<p>${res.nick}</p>
<span>ID:${res.erbanNo}</span>
</div>
<div class="score">胜场次数: ${res.score}</div>
</li>
`
})
$('ul').append(str);
// 处理自己
$('.my .tx').attr('src', res.data.meRank.avatar);
$('.my .tx').attr('uid', res.data.meRank.uid);
$('.my .num').text(res.data.meRank.ranking == 0 ? '未上榜' : res.data.meRank.ranking);
$('.my p').text(res.data.meRank.nick);
$('.my .score').text(`胜场次数: ${res.data.meRank.score}`);
}
} else {
toastMsg(res.message)
}
hideLoading(layerIndex)
},
error (err) {
hideLoading(layerIndex)
toastMsg('网络错误,请退出重进')
}
})
}
// 人气榜倒计时
function countup (leftTime) {
clearTimeout(countupTime)
//获取当前时间
// var now = nowTime;
var d = 0;
var h = 0;
var m = 0;
var s = 0;
//定义变量 d,h,m,s保存倒计时的时间
var d, h, m, s;
//递归每秒调⽤countTime⽅法显⽰动态时间效果
if (leftTime > 0) {
d = getzf(Math.floor(leftTime / 1000 / 60 / 60 / 24));
h = getzf(Math.floor(leftTime / 1000 / 60 / 60));
m = getzf(Math.floor(leftTime / 1000 / 60 % 60));
s = getzf(Math.floor(leftTime / 1000 % 60));
//将倒计时赋值
$('.time .sp1').text(h);
$('.time .sp2').text(m);
$('.time .sp3').text(s);
} else {
$('.time').hide();
}
if (leftTime > 0) {
leftTime = leftTime - 1000;
}
countupTime = setTimeout(function () {
countup(leftTime);
}, 1000);
}
//补0操作
function getzf (num) {
if (parseInt(num) < 10) {
num = '0' + num;
}
return num;
}
// 页面2跳转房间
$('.page2 .page2GoToRoom,.page3 .page2GoToRoom').click(function () {
if (browser.ios) {
window.webkit.messageHandlers.openRoom.postMessage(roomUid);
} else if (browser.android) {
if (androidJsObj && typeof androidJsObj === 'object') {
window.androidJsObj.openRoom(roomUid);
}
}
})
// 规则切换
$('.rule .rule_in .tab div').click(function () {
var i = $(this).index() + 1;
$('.rule .rule_in .tab').removeClass('tab1').removeClass('tab2')
$('.rule .rule_in .tab').addClass(`tab${i}`)
$('.rule .rule_in .box img').attr('src', `./images/rule${i}.png`)
return false;
})
// 打开规则
$('.header .rule_icon').click(function () {
$('.rule').show();
bodyScroolFun(true);
})
// 关闭规则
$('.rule').click(function () {
$(this).hide();
bodyScroolFun(false);
})

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 432 KiB

After

Width:  |  Height:  |  Size: 441 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 493 KiB

After

Width:  |  Height:  |  Size: 454 KiB

View File

@@ -64,7 +64,7 @@
</label>
</div>
</div>
<div class="toast">测试文案</div>
<div class="toast">网络异常,请退出重进</div>
<div class="status-mask">
<div class="wrapper">
<div class="pic"></div>

View File

@@ -0,0 +1,21 @@
<!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="../../common/css/flex.css">
<link rel="stylesheet" href="./style/giftWallRule.css">
</head>
<body>
<ul>
<li><span></span>本App内的全部礼物将根据价值以及稀有程度进行礼物分级</li>
<li><span></span>不同礼物等级将有不同的展示方式,具体信息展示在收集的礼物墙内</li>
<li><span></span>具体礼物等级说明如下:</li>
</ul>
<img src="./images/giftWallRule.png" alt="" srcset="">
</body>
<script src="../../common/js/flexible.js"></script>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

View File

@@ -0,0 +1,37 @@
html,
body {
background: #F8F8FB;
}
ul {
width: 8.45333rem;
margin: 0.85333rem auto 0;
font-weight: 400;
font-family: PingFangSC, PingFang SC;
}
ul li {
width: 100%;
position: relative;
margin-bottom: 0.53333rem;
color: #2B2D33;
font-size: 0.37333rem;
line-height: 0.5rem;
transform: translateX(5);
}
ul li span {
position: absolute;
width: 0.13333rem;
height: 0.26667rem;
top: 0.1rem;
left: -0.26667rem;
background: #FFDA24;
border-radius: 0.08rem;
}
img {
width: 10rem;
display: block;
margin-bottom: 0.26667rem;
}

View File

@@ -0,0 +1,41 @@
@function px2rem($px) {
@return $px / 75+rem;
}
html,
body {
background: #F8F8FB;
}
ul {
width: px2rem(634);
margin: px2rem(64) auto 0;
font-weight: 400;
font-family: PingFangSC, PingFang SC;
li {
width: 100%;
position: relative;
margin-bottom: px2rem(40);
color: #2B2D33;
font-size: px2rem(28);
line-height: 0.5rem;
transform: translateX(5);
span {
position: absolute;
width: px2rem(10);
height: px2rem(20);
top: px2rem(7.5);
left: px2rem(-20);
background: #FFDA24;
border-radius: px2rem(6);
}
}
}
img {
width: px2rem(750);
display: block;
margin-bottom: px2rem(20);
}