厨房:完成所有接口联调,提测

This commit is contained in:
Dragon
2023-03-06 17:15:23 +08:00
parent 0a4ff7e83c
commit c12b08e3f8
22 changed files with 656 additions and 218 deletions

View File

@@ -22,6 +22,14 @@ body {
}
.wrap .banner {
width: 100%;
position: relative;
}
.wrap .banner .subtitle {
position: absolute;
top: 0.12rem;
right: 1.12rem;
width: 1.8666666667rem;
height: 1.12rem;
}
.wrap .rule,
.wrap .record {
@@ -39,46 +47,79 @@ body {
.wrap .record {
top: 2.8533333333rem;
}
.wrap .previous-result {
.wrap .previous_Round_Result {
width: 9.4266666667rem;
height: 1.52rem;
position: absolute;
top: 14.9333333333rem;
top: 16.1rem;
left: 50%;
transform: translateX(-50%);
width: 9.4666666667rem;
height: 0.9066666667rem;
font-family: "pingfang-bold";
font-size: 0.4rem;
font-weight: bold;
color: white;
display: flex;
align-items: center;
background: url("../images/previous-result-bg.png") no-repeat 0 0/100% 100%;
background: url(../images/previous_Round_Result.png) no-repeat;
background-size: 100% 100%;
z-index: 9;
}
.wrap .previous-result span {
.wrap .previous_Round_Result span {
color: #fff;
position: absolute;
font-weight: bold;
margin-left: 0.36rem;
text-shadow: 1px 1px 0px #fc8321, -1px -1px 0px #fc8321, 1px 1px 0px #fc8321, -1px -1px 0px #fc8321, 1px 1px 0px #fc8321, -1px -1px 0px #fc8321;
font-size: 0.48rem;
left: 0rem;
bottom: 1.65rem;
background: url(../images/wljg.png) no-repeat;
background-size: 100% 100%;
width: 1.7066666667rem;
height: 0.5066666667rem;
position: absolute;
}
.wrap .previous-result .result-list {
.wrap .previous_Round_Result .box {
width: 9.4266666667rem;
height: 100%;
position: absolute;
left: 0;
top: 0;
box-sizing: border-box;
padding: 0.2533333333rem 0.1333333333rem 0 0.1333333333rem;
overflow-x: scroll;
}
.wrap .previous_Round_Result .box::-webkit-scrollbar {
height: 2px;
display: none;
}
.wrap .previous_Round_Result .box ul {
width: 35rem;
height: 100%;
}
.wrap .previous_Round_Result .box ul li {
float: left;
width: 1.6266666667rem;
height: 0.9733333333rem;
background: url(../images/previous_Round_Result_Li.png) no-repeat;
background-size: 100% 100%;
display: flex;
justify-content: space-around;
flex-wrap: wrap;
box-sizing: border-box;
align-items: center;
margin-right: 0.1066666667rem;
}
.wrap .previous-result .result-list p {
width: 0.5333333333rem;
height: 0.5333333333rem;
margin-left: 0.1066666667rem;
background: url("../images/little-bubble.png") 0 0/100% 100%;
.wrap .previous_Round_Result .box ul li p {
display: block;
width: 0.3333333333rem;
height: 0.3333333333rem;
background: url(../images/record_bubble.png) no-repeat;
background-size: 100% 100%;
position: relative;
margin: 0 0.0266666667rem;
}
.wrap .previous-result .result-list p img {
width: 100%;
}
.wrap .previous-result .more-result {
width: 0.56rem;
height: 0.5866666667rem;
margin-left: 0.2rem;
}
.wrap .previous-result .more-result img {
width: 100%;
.wrap .previous_Round_Result .box ul li p img {
display: block;
width: 80%;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.wrap .mall {
position: absolute;
@@ -301,16 +342,20 @@ body {
background: url("../images/tip.png") no-repeat 0 0/100% 100%;
text-align: center;
font-size: 0.2933333333rem;
color: rgba(255, 240, 199, 0.6);
color: #FFF0C799;
font-weight: bold;
}
.wrap .game-area .draw-time {
display: none;
width: 2.8rem;
width: 55%;
height: 2.84rem;
margin: 1.2rem auto 0.2rem;
background: url("../images/drawBg.png");
margin: 1.8rem auto 0.2rem;
background-size: 100% 100%;
display: flex;
justify-content: center;
align-items: center;
flex-flow: row wrap;
box-sizing: border-box;
}
.wrap .game-area .draw-time .count-down,
.wrap .game-area .draw-time .current-tip {
@@ -341,7 +386,7 @@ body {
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 3.1rem;
bottom: 2.3rem;
width: 100%;
height: 4rem;
}
@@ -521,15 +566,20 @@ body {
color: #fff;
}
.wrap .game-area .draw-time .draw-pic {
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 1.65rem;
z-index: 1;
width: 1.3333333333rem;
width: 1.3466666667rem;
height: 1.3466666667rem;
margin: 0 auto 0;
background: url("../images/drawBg.png") no-repeat;
background-size: 100% 100%;
position: relative;
}
.wrap .game-area .draw-time .draw-pic img {
width: 100%;
width: 0.8rem;
position: absolute;
left: 50%;
top: 45%;
transform: translate(-50%, -50%);
}
.wrap .game-area .draw-time .award-info {
width: 8rem;
@@ -537,7 +587,7 @@ body {
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 6.5rem;
top: 7.2rem;
display: flex;
}
.wrap .game-area .draw-time .award-info .desc {
@@ -563,7 +613,7 @@ body {
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 3.8rem;
top: 4.5rem;
display: flex;
}
.wrap .game-area .draw-time .put-wrap .put {
@@ -743,10 +793,11 @@ body {
width: 8.8rem;
height: 13.0666666667rem;
background: white;
background: url(../images/myBoxBg.png) no-repeat;
background-size: 100% 100%;
}
.wrap .shade-mask-rank .shade-content-rank .rank-top {
height: 4.5333333333rem;
background-image: linear-gradient(#F49C35, #FFDD81);
overflow: hidden;
}
.wrap .shade-mask-rank .shade-content-rank .rank-top .tab-wrap {
@@ -794,8 +845,8 @@ body {
display: none;
}
.wrap .shade-mask-rank .shade-content-rank .rank-top .topthree-wrap .info-wrap .avatar {
width: 1.76rem;
height: 2.3333333333rem;
width: 2.5866666667rem;
height: 2.5066666667rem;
margin-bottom: 0.2666666667rem;
}
.wrap .shade-mask-rank .shade-content-rank .rank-top .topthree-wrap .info-wrap .avatar p {
@@ -808,8 +859,9 @@ body {
.wrap .shade-mask-rank .shade-content-rank .rank-top .topthree-wrap .info-wrap .avatar img {
position: relative;
z-index: 9;
top: -1.8133333333rem;
left: 0.0266666667rem;
top: -2.1333333333rem;
left: 50%;
transform: translateX(-50%);
width: 1.7066666667rem;
height: 1.7066666667rem;
border-radius: 50%;
@@ -827,7 +879,7 @@ body {
margin: 0;
margin-top: -0.2666666667rem;
margin-bottom: 0.0533333333rem;
color: #ED7B50;
color: #FF5110;
font-size: 0.32rem;
}
.wrap .shade-mask-rank .shade-content-rank .other-rank {
@@ -835,21 +887,21 @@ body {
position: absolute;
width: 100%;
height: 7.2rem;
background-color: white;
padding: 0.4rem 0.2666666667rem 0;
box-sizing: border-box;
}
.wrap .shade-mask-rank .shade-content-rank .other-rank li {
width: 90%;
display: flex;
align-items: center;
margin-bottom: 0.5333333333rem;
margin: 0 auto 0.5333333333rem;
}
.wrap .shade-mask-rank .shade-content-rank .other-rank li .index {
display: inline-block;
width: 0.4rem;
font-size: 0.4rem;
font-weight: bold;
color: #333333;
color: #fff;
text-align: center;
}
.wrap .shade-mask-rank .shade-content-rank .other-rank li .others-info {
@@ -867,12 +919,16 @@ body {
.wrap .shade-mask-rank .shade-content-rank .other-rank li .others-info .others-nick {
font-size: 0.3733333333rem;
font-weight: bold;
color: #333333;
color: #fff;
}
.wrap .shade-mask-rank .shade-content-rank .other-rank li .others-diamond-num {
font-size: 0.3466666667rem;
font-weight: bold;
color: #ED7B50;
color: #fff;
}
.wrap .shade-mask-rank .shade-content-rank .other-rank li .others-diamond-num b {
color: #FF5110;
font-weight: bold;
}
.wrap .shade-mask-rank .shade-content-rank .mine {
position: fixed;
@@ -881,7 +937,8 @@ body {
z-index: 999;
width: 100%;
height: 1.3333333333rem;
background-color: rgba(0, 0, 0, 0.8);
background: url(../images/mineBg.png) no-repeat;
background-size: 100% 100%;
padding: 0 0.2rem;
box-sizing: border-box;
display: flex;
@@ -912,7 +969,11 @@ body {
.wrap .shade-mask-rank .shade-content-rank .mine .mine-diamond-num {
font-size: 0.3466666667rem;
font-weight: bold;
color: #ED7B50;
color: #fff;
}
.wrap .shade-mask-rank .shade-content-rank .mine .mine-diamond-num b {
color: #FF5110;
font-weight: bold;
}
.wrap .shade-mask-fragmentNum {
display: none;

View File

@@ -1,9 +1,10 @@
@function px2rem($px, $rem: 75) {
@return $px / $rem+rem;
}
@function prefixurl() {
@return 'https://img.pekolive.com/'
}
// @function prefixurl() {
// @return 'https://img.pekolive.com/'
// }
@font-face {
font-family: 'pingfang-bold';
@@ -27,6 +28,7 @@ body {
background: #C8864C;
// 海浪svga过长
overflow-x: hidden;
// height: 19rem;
}
.wrap {
@@ -37,7 +39,15 @@ body {
.banner {
width: 100%;
position: relative;
.subtitle {
position: absolute;
top: px2rem(9, );
right: px2rem(84, );
width: px2rem(140, );
height: px2rem(84, );
}
}
.rule,
@@ -60,24 +70,21 @@ body {
// bottom: px2rem(1040);
}
.previous-result {
// 往轮结果
.previous_Round_Result {
width: px2rem(707, );
height: px2rem(114, );
position: absolute;
// bottom: px2rem(200);
top: px2rem(1120);
top: 16.1rem;
left: 50%;
transform: translateX(-50%);
width: px2rem(710);
height: px2rem(68);
font-family: 'pingfang-bold';
font-size: px2rem(30);
font-weight: bold;
color: white;
display: flex;
align-items: center;
background: url('../images/previous-result-bg.png') no-repeat 0 0/100% 100%;
background: url(../images/previous_Round_Result.png) no-repeat;
background-size: 100% 100%;
z-index: 9;
span {
color: #fff;
position: absolute;
font-weight: bold;
margin-left: px2rem(27);
text-shadow: 1px 1px 0px#fc8321,
@@ -86,41 +93,134 @@ body {
-1px -1px 0px#fc8321,
1px 1px 0px#fc8321,
-1px -1px 0px#fc8321;
font-size: px2rem(36, );
left: px2rem(0, );
bottom: 1.65rem;
background: url(../images/wljg.png) no-repeat;
background-size: 100% 100%;
width: px2rem(128, );
height: px2rem(38, );
position: absolute;
}
.result-list {
display: flex;
.box {
width: px2rem(707, );
height: 100%;
position: absolute;
left: 0;
top: 0;
box-sizing: border-box;
padding: px2rem(19, ) px2rem(10, ) 0 px2rem(10, );
overflow-x: scroll;
p {
width: px2rem(40);
height: px2rem(40);
margin-left: px2rem(8);
background: url('../images/little-bubble.png') 0 0/100% 100%;
// &:nth-child(11){
// width: px2rem(40, );
// height: px2rem(42, );
// margin-left: 0.25rem;
// background: url('../images/btn_result.png') 0 0/100% 100%;
// }
img {
width: 100%;
}
&::-webkit-scrollbar {
// width: 0;
height: 2px;
display: none;
}
}
ul {
width: 35rem;
height: 100%;
.more-result {
width: px2rem(42);
height: px2rem(44);
margin-left: 0.2rem;
li {
float: left;
width: px2rem(122, );
height: px2rem(73, );
background: url(../images/previous_Round_Result_Li.png) no-repeat;
background-size: 100% 100%;
display: flex;
justify-content: space-around;
flex-wrap: wrap;
box-sizing: border-box;
align-items: center;
margin-right: px2rem(8, );
// padding: 0 px2rem(4, );
img {
width: 100%;
p {
display: block;
width: px2rem(25, );
height: px2rem(25, );
background: url(../images/record_bubble.png) no-repeat;
background-size: 100% 100%;
position: relative;
margin: 0 px2rem(2, );
img {
display: block;
width: 80%;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
}
}
}
}
}
// .previous-result {
// position: absolute;
// // bottom: px2rem(200);
// top: px2rem(1120);
// left: 50%;
// transform: translateX(-50%);
// width: px2rem(710);
// height: px2rem(68);
// font-family: 'pingfang-bold';
// font-size: px2rem(30);
// font-weight: bold;
// color: white;
// display: flex;
// align-items: center;
// background: url('../images/previous-result-bg.png') no-repeat 0 0/100% 100%;
// z-index: 9;
// span {
// font-weight: bold;
// margin-left: px2rem(27);
// text-shadow: 1px 1px 0px#fc8321,
// -1px -1px 0px#fc8321,
// 1px 1px 0px#fc8321,
// -1px -1px 0px#fc8321,
// 1px 1px 0px#fc8321,
// -1px -1px 0px#fc8321;
// }
// .result-list {
// display: flex;
// p {
// width: px2rem(40);
// height: px2rem(40);
// margin-left: px2rem(8);
// background: url('../images/little-bubble.png') 0 0/100% 100%;
// // &:nth-child(11){
// // width: px2rem(40, );
// // height: px2rem(42, );
// // margin-left: 0.25rem;
// // background: url('../images/btn_result.png') 0 0/100% 100%;
// // }
// img {
// width: 100%;
// }
// }
// }
// .more-result {
// width: px2rem(42);
// height: px2rem(44);
// margin-left: 0.2rem;
// img {
// width: 100%;
// }
// }
// }
.mall {
position: absolute;
top: px2rem(184);
@@ -399,11 +499,17 @@ body {
display: none;
// width: px2rem(750);
// height: px2rem(600);
width: px2rem(210, );
// width: px2rem(210, );
width: 55%;
height: px2rem(213, );
margin: 1.2rem auto 0.2rem;
background: url('../images/drawBg.png');
margin: 1.8rem auto 0.2rem;
// background: url('../images/drawBg.png');
background-size: 100% 100%;
display: flex;
justify-content: center;
align-items: center;
flex-flow: row wrap;
box-sizing: border-box;
.count-down,
.current-tip {
@@ -436,7 +542,7 @@ body {
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 3.1rem;
bottom: 2.3rem;
width: 100%;
height: 4rem;
@@ -651,21 +757,42 @@ body {
}
.draw-pic {
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 1.65rem;
z-index: 1;
width: px2rem(100);
// height: px2rem(91);
width: px2rem(101, );
// width: 25%;
height: px2rem(101, );
margin: 0 auto 0;
background: url('../images/drawBg.png') no-repeat;
background-size: 100% 100%;
position: relative;
img {
width: 100%;
// height: 100%;
width: px2rem(60, );
// margin: -0.3rem 0 0 1.18rem;
position: absolute;
left: 50%;
top: 45%;
transform: translate(-50%, -50%);
}
}
// .draw-pic {
// position: absolute;
// left: 50%;
// transform: translateX(-50%);
// top: 1.65rem;
// z-index: 1;
// width: px2rem(100);
// background: url('../images/drawBg.png');
// // height: px2rem(91);
// img {
// width: 100%;
// // height: 100%;
// // margin: -0.3rem 0 0 1.18rem;
// }
// }
.award-info {
width: px2rem(600, );
// height: px2rem(183, );
@@ -673,7 +800,7 @@ body {
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 6.5rem;
top: 7.2rem;
display: flex;
.desc {
@@ -707,7 +834,8 @@ body {
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 3.8rem;
// top: 3.8rem;
top: 4.5rem;
display: flex;
.put {
@@ -924,10 +1052,12 @@ body {
width: px2rem(660);
height: px2rem(980);
background: white;
background: url(../images/myBoxBg.png) no-repeat;
background-size: 100% 100%;
.rank-top {
height: px2rem(340);
background-image: linear-gradient(#F49C35, #FFDD81);
// background-image: linear-gradient(#F49C35, #FFDD81);
overflow: hidden;
.tab-wrap {
@@ -983,8 +1113,8 @@ body {
}
.avatar {
width: px2rem(132);
height: px2rem(175);
width: px2rem(194);
height: px2rem(188);
margin-bottom: px2rem(20);
p {
@@ -998,8 +1128,10 @@ body {
img {
position: relative;
z-index: 9;
top: px2rem(-136);
left: px2rem(2);
top: px2rem(-160);
// left: px2rem(2);
left: 50%;
transform: translateX(-50%);
width: px2rem(128);
height: px2rem(128);
border-radius: 50%;
@@ -1020,7 +1152,7 @@ body {
margin: 0;
margin-top: px2rem(-20);
margin-bottom: px2rem(4);
color: #ED7B50;
color: #FF5110;
font-size: px2rem(24);
}
}
@@ -1032,14 +1164,16 @@ body {
position: absolute;
width: 100%;
height: px2rem(540);
background-color: white;
// background-color: white;
padding: px2rem(30) px2rem(20) 0;
box-sizing: border-box;
li {
width: 90%;
display: flex;
align-items: center;
margin-bottom: px2rem(40);
// margin-bottom: px2rem(40);
margin: 0 auto px2rem(40, );
&:last-child {
// margin-bottom: px2rem(140);
@@ -1050,7 +1184,7 @@ body {
width: px2rem(30);
font-size: px2rem(30);
font-weight: bold;
color: #333333;
color: #fff;
text-align: center;
}
@@ -1070,14 +1204,19 @@ body {
.others-nick {
font-size: px2rem(28);
font-weight: bold;
color: #333333;
color: #fff;
}
}
.others-diamond-num {
font-size: px2rem(26);
font-weight: bold;
color: #ED7B50;
color: #fff;
b {
color: #FF5110;
font-weight: bold;
}
}
}
}
@@ -1089,7 +1228,9 @@ body {
z-index: 999;
width: 100%;
height: px2rem(100);
background-color: rgba($color: #000000, $alpha: .8);
// background-color: rgba($color: #000000, $alpha: .8);
background: url(../images/mineBg.png) no-repeat;
background-size: 100% 100%;
padding: 0 px2rem(15);
box-sizing: border-box;
display: flex;
@@ -1124,7 +1265,12 @@ body {
.mine-diamond-num {
font-size: px2rem(26);
font-weight: bold;
color: #ED7B50;
color: #fff;
b {
color: #FF5110;
font-weight: bold;
}
}
}
}

View File

@@ -46,7 +46,7 @@ body {
}
.record-list li {
width: 100%;
height: 6.9733333333rem;
height: 8.48rem;
background: url("../images/record/record-bg.png") no-repeat;
background-size: 100% 100%;
border-radius: 0.2666666667rem;
@@ -88,6 +88,7 @@ body {
margin: 0.0666666667rem auto 0.3333333333rem;
display: flex;
justify-content: space-between;
position: relative;
}
.record-list li .result-wrap .result {
display: flex;
@@ -98,21 +99,21 @@ body {
color: #FFFFFF;
padding-right: 0.1866666667rem;
font-weight: 600;
}
.record-list li .result-wrap .result .bg {
width: 1.2133333333rem;
height: 1.2133333333rem;
background: url("../images/record_bubble_act.png") no-repeat;
position: absolute;
left: 50%;
transform: translateX(-50%);
width: 1.9066666667rem;
height: 0.6rem;
background: url(../images/record/result.png) no-repeat;
background-size: 100% 100%;
text-align: center;
}
.record-list li .result-wrap .result .bg img {
width: 75%;
margin-top: 0.15rem;
top: 0.2rem;
}
.record-list li .result-wrap .award {
display: flex;
align-items: center;
position: absolute;
right: 0rem;
top: -0.1rem;
}
.record-list li .result-wrap .award p,
.record-list li .result-wrap .award b {
@@ -124,25 +125,57 @@ body {
width: 0.3733333333rem;
height: 0.3733333333rem;
}
.record-list li .result-wrap .result_sBox {
width: 8.8rem;
height: 1.1466666667rem;
margin: 1rem auto 0;
display: flex;
justify-content: center;
position: relative;
left: 50%;
transform: translateX(-50%);
}
.record-list li .result-wrap .result_sBox .bg {
width: 1.1466666667rem;
height: 1.1466666667rem;
background: url("../images/record_bubble_act.png") no-repeat;
background-size: 100% 100%;
text-align: center;
}
.record-list li .result-wrap .result_sBox .bg img {
width: 75%;
display: block;
margin: 0.1333333333rem auto 0;
}
.record-list li .put-wrap {
width: 84%;
height: 1.2133333333rem;
line-height: 1.2133333333rem;
box-sizing: border-box;
margin: 0 auto;
margin: 2rem auto 0;
display: flex;
position: relative;
}
.record-list li .put-wrap .put {
font-size: 0.3733333333rem;
color: #FFFFFF;
font-weight: 600;
margin-right: 0.9rem;
position: absolute;
width: 1.0266666667rem;
height: 0.6rem;
left: 50%;
transform: translateX(-50%);
background: url(../images/record/touru.png) no-repeat;
background-size: 100% 100%;
top: -0.6rem;
}
.record-list li .put-wrap .list {
width: 6.72rem;
height: 2.7733333333rem;
display: flex;
flex-wrap: wrap;
margin: 0.3rem auto 0;
}
.record-list li .put-wrap .list .item {
width: 0.9866666667rem;
@@ -176,7 +209,8 @@ body {
}
.record-list li .put-wrap .list .item div .diamond {
width: 0.3333333333rem;
height: 0.2666666667rem;
height: 0.3333333333rem;
margin-top: -0.01rem;
}
.record-list li .put-wrap .list .item div .in {
font-size: 0.2666666667rem;

View File

@@ -1,9 +1,10 @@
@function px2rem($px, $rem: 75) {
@return $px / $rem+rem;
}
@function prefixurl() {
@return 'https://img.pekolive.com/'
}
// @function prefixurl() {
// @return 'https://img.pekolive.com/'
// }
@font-face {
font-family: 'pingfang-bold';
@@ -63,7 +64,7 @@ body {
li {
width: 100%;
height: px2rem(523, );
height: px2rem(636, );
// background: linear-gradient(0deg, #46BBC1 0%, #62DEE4 100%);
background: url('../images/record/record-bg.png') no-repeat;
background-size: 100% 100%;
@@ -117,6 +118,7 @@ body {
margin: px2rem(5, ) auto px2rem(25, );
display: flex;
justify-content: space-between;
position: relative;
.result {
display: flex;
@@ -127,26 +129,39 @@ body {
color: #FFFFFF;
padding-right: px2rem(14, );
font-weight: 600;
}
.bg {
width: px2rem(91, );
height: px2rem(91, );
background: url('../images/record_bubble_act.png') no-repeat;
position: absolute;
left: 50%;
transform: translateX(-50%);
width: px2rem(143, );
height: px2rem(45, );
background: url(../images/record/result.png) no-repeat;
background-size: 100% 100%;
text-align: center;
img {
width: 75%;
margin-top: 0.15rem;
}
top: 0.2rem;
}
// .bg {
// width: px2rem(91, );
// height: px2rem(91, );
// background: url('../images/record_bubble_act.png') no-repeat;
// background-size: 100% 100%;
// text-align: center;
// img {
// width: 75%;
// margin-top: 0.15rem;
// }
// }
}
.award {
display: flex;
align-items: center;
position: absolute;
// right: 0.8rem;
// top: 1.8rem;
right: 0rem;
top: -0.1rem;
p,
b {
@@ -160,6 +175,31 @@ body {
height: px2rem(28, );
}
}
.result_sBox {
width: px2rem(660, );
height: px2rem(86, );
margin: 1rem auto 0;
display: flex;
justify-content: center;
position: relative;
left: 50%;
transform: translateX(-50%);
.bg {
width: px2rem(86, );
height: px2rem(86, );
background: url('../images/record_bubble_act.png') no-repeat;
background-size: 100% 100%;
text-align: center;
img {
width: 75%;
display: block;
margin: px2rem(10, ) auto 0;
}
}
}
}
.put-wrap {
@@ -167,14 +207,23 @@ body {
height: px2rem(91, );
line-height: px2rem(91, );
box-sizing: border-box;
margin: 0 auto;
margin: 2rem auto 0;
display: flex;
position: relative;
.put {
font-size: px2rem(28, );
color: #FFFFFF;
font-weight: 600;
margin-right: 0.9rem;
position: absolute;
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;
}
.list {
@@ -182,6 +231,7 @@ body {
height: px2rem(208, );
display: flex;
flex-wrap: wrap;
margin: 0.3rem auto 0;
.item {
width: px2rem(74, );
@@ -219,7 +269,8 @@ body {
.diamond {
width: px2rem(25, );
height: px2rem(20, );
height: px2rem(25, );
margin-top: -0.01rem;
}
.in {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 168 KiB

After

Width:  |  Height:  |  Size: 626 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@@ -14,7 +14,10 @@
<body>
<div class="wrap no-in-app">
<!-- <div class="wrap "> -->
<div class="banner"><img src="./images/banner.png" alt=""></div>
<div class="banner">
<img src="./images/banner.png" alt="">
<img class="subtitle" src="./images/subtitle.png" alt="">
</div>
<div class="rule"><img src="./images/rule.png" alt=""></div>
<div class="record"><img src="./images/record.png" alt=""></div>
@@ -63,9 +66,9 @@
<div class="count-down">下一轮:<span class="count-down-num"></span></div>
<div class="current-tip">本轮结果:<span class="current-result"></span></div>
<!-- 中奖物品展示 -->
<div class="draw-pic">
<img src="" alt="">
</div>
<!-- <div class="draw-pic">
<img src="http://beta.img.pekolive.com/FjWcbuxEpzZ8P3aS4A0n2llW9Jw9?imageslim" alt="">
</div> -->
<!-- 投入列表 -->
<div class="put-wrap">
<div class="put">投入</div>
@@ -126,8 +129,15 @@
</div>
<!-- 往轮结果 -->
<div class="previous-result">
<span>往轮结果</span>
<div class="previous_Round_Result">
<span></span>
<div class="box">
<ul>
</ul>
</div>
</div>
<!-- <div class="previous-result">
<span>往輪結果</span>
<div class="result-list">
<p><img src="" alt=""></p>
<p><img src="" alt=""></p>
@@ -139,10 +149,10 @@
<p><img src="" alt=""></p>
<p><img src="" alt=""></p>
<p><img src="" alt=""></p>
<!-- <p><img src="" alt=""></p> -->
<p><img src="" alt=""></p>
</div>
<span class="more-result"><img src="./images/btn_result.png" alt=""></span>
</div>
</div> -->
<!-- 个人信息 -->
<div class="info-bottom">

View File

@@ -37,8 +37,11 @@ if (false) { //!browser.app
} else {
$('.wrap').removeClass('no-in-app')
}
console.log(document.body.clientWidth);
console.log(document.body.clientHeight);
if (document.body.clientHeight <= 700 || document.body.clientWidth >= 360) {
$('body,html').css({ "height": '19.2rem' });
}
// 獲取用戶相關信息
let myFragment
const getUserInfo = (param) => {
@@ -135,8 +138,8 @@ const getNewestAct = () => {
} else {
clearTimeout(timer2)
hideLoading(layerIndex)
roundId = res.data.roundId
getPreviousResults(20, roundId)
$('.game-area .roundId').html(roundId)
getListItem(roundId, modelType)
@@ -217,11 +220,8 @@ const showView = () => {
$('.award-wrap').html('').show()
// $('.award-info .desc').html('')
getPreviousResults(10, roundId)
showCountDown(userComeinTime, startTime, drawStageStartTime)
getUserInfo()
} else if (drawStageStartTime <= userComeinTime && userComeinTime < showResultStageStartTime) {
// 第二階段
console.log('進入第二階段');
@@ -239,16 +239,13 @@ const showView = () => {
console.log('isStatus2的值------------', isStatus2);
// $('.btn-wrap').find('div').removeClass('active')
getPreviousResults(10, roundId)
showCountDown(userComeinTime, drawStageStartTime, showResultStageStartTime)
judgeStatus()
getUserInfo()
// 播放5s動畫
let player = new SVGA.Player('.wait-time');
let parser = new SVGA.Parser('.wait-time');
parser.load('./images/wait.svga', function (videoItem) {
parser.load('./images/wait1.svga', function (videoItem) {
// player.loops = 2;
player.clearsAfterStop = false;
player.setVideoItem(videoItem);
@@ -268,7 +265,6 @@ const showView = () => {
showCountDown(userComeinTime, showResultStageStartTime, endTime)
judgeStatus()
getUserInfo()
// getPreviousResults(10, roundId)
}
}
@@ -401,7 +397,7 @@ const judgeStatus = () => {
drawInfo = res.data
img = res.data.drawImageUrl
if (isStatus3) {
getPreviousResults(10, roundId)
getPreviousResults(20, roundId)
}
renderDrawInfo()
} else {
@@ -425,8 +421,40 @@ const judgeStatus = () => {
let topThreeArr = []
const renderDrawInfo = () => {
$('.draw-time .current-tip .current-result').html(drawInfo.drawName)
$('.draw-pic img').attr('src', drawInfo.drawImageUrl)
// $('.draw-pic img').attr('src', drawInfo.drawImageUrl)
$('.wrap .game-area .draw-time .draw-pic').remove();
var lenght = drawInfo.drawItemList.length;
var drawStr = '';
drawInfo.drawItemList.forEach(res => {
drawStr += `
<div class="draw-pic">
<img src="${res.drawImageUrl}" alt="">
</div>
`
})
$('.wrap .game-area .draw-time').append(drawStr);
if (lenght == 1) {
$('.wrap .game-area .draw-time').css({ "width": "55%", })
$('.wrap .game-area .draw-time .draw-pic').css({ "width": "50%", "height": "100%", });
$('.wrap .game-area .draw-time .draw-pic img').css({ "width": "45%" });
} else if (lenght == 2) {
$('.wrap .game-area .draw-time').css({ "width": "55%", })
$('.wrap .game-area .draw-time .draw-pic').css({ "width": "50%", "height": "100%", });
$('.wrap .game-area .draw-time .draw-pic img').css({ "width": "45%" });
} else if (lenght == 3) {
$('.wrap .game-area .draw-time').css({ "width": "70%", })
$('.wrap .game-area .draw-time .draw-pic').css({ "width": "33.3333%", "height": "75%", });
$('.wrap .game-area .draw-time .draw-pic img').css({ "width": "40%" });
} else if (lenght == 4) {
$('.wrap .game-area .draw-time').css({ "width": "80%", })
$('.wrap .game-area .draw-time .draw-pic').css({ "width": "25%", "height": "65%", });
$('.wrap .game-area .draw-time .draw-pic img').css({ "width": "38%" });
} else if (lenght > 4) {
$('.wrap .game-area .draw-time').css({ "width": "55%", })
$('.wrap .game-area .draw-time .draw-pic').css({ "width": "1.3466666667rem", "height": "1.3466666667rem", });
$('.wrap .game-area .draw-time .draw-pic img').css({ "width": "0.8rem" });
}
// if()
// if (isStatus3) {
// if (drawInfo.userDrawResult.drawStatus === 1) {
// $('.award-info .desc').html('恭喜你,猜中了!')
@@ -571,7 +599,6 @@ const renderListItem = () => {
}
// 獲取往輪遊戲結果
let previousResults = []
const getPreviousResults = (count, roundId) => {
networkRequest({
type: 'GET',
@@ -582,8 +609,8 @@ const getPreviousResults = (count, roundId) => {
},
success (res) {
if (res.code === 200) {
previousResults = res.data
renderPreviousResults()
// previousResults = res.data
renderPreviousResults(res.data)
}
},
error (err) {
@@ -593,40 +620,51 @@ const getPreviousResults = (count, roundId) => {
}
// 渲染往輪遊戲結果
const renderPreviousResults = () => {
const renderPreviousResults = (val) => {
let str = ''
if (previousResults.length < 5) {
let len = 5 - previousResults.length
if (val.length < 5) {
let len = 5 - val.length
let arr = new Array(len).fill(1)
previousResults.push(...arr)
val.push(...arr)
}
if (isStatus3) {
if (img) {
previousResults.pop()
previousResults.unshift({
val.pop()
val.unshift({
drawImageUrl: img
})
console.log(previousResults);
}
}
previousResults.map((item) => {
val.forEach(res => {
str += `
<p><img src="${item.drawImageUrl}" alt=""></p>
<li>
${res.drawItemList.map(item => {
if (res.drawItemList.length == 1) {
return `<p style="width:0.8rem;height:0.8rem"><img src="${item.drawImageUrl}" alt=""></p>`;
} else if (res.drawItemList.length == 2) {
return `<p style="width:0.6rem;height:0.6rem"><img src="${item.drawImageUrl}" alt=""></p>`;
} else if (res.drawItemList.length == 3) {
return `<p style="width:0.45rem;height:0.45rem"><img src="${item.drawImageUrl}" alt=""></p>`;
} else {
return `<p><img style="width:0.3333333333rem;height:0.3333333333rem" src="${item.drawImageUrl}" alt=""></p>`;
}
}).join('')
}
</li>
`
})
$('.result-list').html(str)
$('.wrap .previous_Round_Result .box ul').html(str)
}
// 發送用戶抽獎數量
const sendUserDrawInfo = (itemId, num, tais) => {
showLoading();
// showLoading();
networkRequest({
type: 'POST',
url: urlPrefix + '/act/luckySea/draw',
// contentType: 'application/json',
// data: `[ {
// data: `[{
// "itemId":${itemId},
// "num":${num}
// }]`,
@@ -787,7 +825,7 @@ const renderMyInfo = () => {
myInfoN.nick = '未知'
}
$('.mine-info').find('.mine-nick').html(myInfoN.nick)
$('.mine-diamond-num').html('猜中' + myInfoN.num + '次')
$('.mine-diamond-num').html('猜中<b> ' + myInfoN.num + ' </b>次')
}
}
@@ -903,7 +941,7 @@ const renderRankList = () => {
othersArr.map((item, index) => {
let num
if (item.erbanNo) {
num = '猜中' + item.num + '次'
num = '猜中<b> ' + item.num + ' </b>次'
}
others += `
<li uid="${item.uid}">
@@ -971,6 +1009,7 @@ $(function () {
}
}
})
// getPreviousResults(20, roundId)
}, 50)
// 監聽按鈕點擊事件

View File

@@ -23,7 +23,7 @@ $(function () {
getUserRecord()
}, 100)
function getUserRecord() {
function getUserRecord () {
canNext = false
networkRequest({
type: 'GET',
@@ -32,7 +32,7 @@ $(function () {
page,
pageSize
},
success(res) {
success (res) {
if (res.code === 200) {
if (res.data.length != 0) {
// 能够继续请求下一页
@@ -49,7 +49,7 @@ $(function () {
toastMsg(res.message)
}
},
error(err) {
error (err) {
canNext = true
toastMsg('網絡錯誤,請退出重進')
}
@@ -60,7 +60,7 @@ $(function () {
const renderRecord = (recordList) => {
if (recordList.length === 0) {
$('.record-list').hide();
$('.img').show();
// $('.img').show();
} else {
// $('.record-list li').remove();
$('.record-list').show();
@@ -92,40 +92,42 @@ $(function () {
</div>
<div class="result-wrap">
<div class="result">
<span>本輪結果</span>
<div class="bg"><img src="${itemUrl}" alt=""></div>
<span></span>
</div>
<div class="award">
<p>獎勵:</p>
<img src="./images/diamond.png" class="diamond" alt="">
<b>${res.reward}</b>
</div>
<div class="result_sBox">
${res.drawItemList.map(item => {
return `<div class="bg"><img src="${item.drawImageUrl}" alt=""></div>`
}).join('')}
</div>
</div>
<div class="put-wrap">
<div class="put">投入</div>
<div class="put"></div>
<div class="list">
</div>
</div>
</li>
`
`
})
$('.record-list').append(str)
results.forEach((res, index) => {
res.forEach(val => {
$('.record-list li').eq(lisIndexId).find('.list').append(`
<div class="item">
<div class= "item">
<p><img src="${val.itemUrl}" class="gift" alt=""></p>
<div>
<img src="./images/diamond.png" class="diamond" alt="">
<span class="in">${val.costPiece}</span>
</div>
</div>
`)
`)
})
lisIndex = lisIndex + 1;
lisIndexId = lisIndexId + 1;

View File

@@ -14,27 +14,122 @@
<body>
<ul class="record-list">
<!-- <li style="margin-bottom: 0.8rem;">
<h3>${dateFormat(res.drawTime, 'yy-MM-dd hh:mm:ss')}</h3>
<h3>23-02-25 19:13:24</h3>
<div class="goldBox">
<span>NO.2212092000</span>
<p class="fasle">哎呀~猜錯了 o(╥﹏╥)o</p>
<p class="true">厲害~猜對了 ୧(๑•̀◡•́๑)૭</p>
<span>NO.230225191242</span>
<p style="display: block;" class="fasle">哎呀~猜錯了 o(╥﹏╥)o</p>
<p style="display: none;" class="true">厲害~猜對了 ୧(๑•̀◡•́๑)૭</p>
</div>
<div class="result-wrap">
<div class="result">
<span>本輪結果</span>
<div class="bg"><img src="" alt=""></div>
<span></span>
</div>
<div class="award">
<p>獎勵:</p>
<img src="./images/diamond.png" class="diamond" alt="">
<b></b>
<b>0</b>
</div>
<div class="result_sBox">
<div class="bg">
<img src="http://beta.img.pekolive.com/FjWcbuxEpzZ8P3aS4A0n2llW9Jw9?imageslim" alt="">
</div>
<div class="bg">
<img src="http://beta.img.pekolive.com/FjWcbuxEpzZ8P3aS4A0n2llW9Jw9?imageslim" alt="">
</div>
<div class="bg">
<img src="http://beta.img.pekolive.com/FjWcbuxEpzZ8P3aS4A0n2llW9Jw9?imageslim" alt="">
</div>
<div class="bg">
<img src="http://beta.img.pekolive.com/FjWcbuxEpzZ8P3aS4A0n2llW9Jw9?imageslim" alt="">
</div>
<div class="bg">
<img src="http://beta.img.pekolive.com/FjWcbuxEpzZ8P3aS4A0n2llW9Jw9?imageslim" alt="">
</div>
<div class="bg">
<img src="http://beta.img.pekolive.com/FjWcbuxEpzZ8P3aS4A0n2llW9Jw9?imageslim" alt="">
</div>
<div class="bg">
<img src="http://beta.img.pekolive.com/FjWcbuxEpzZ8P3aS4A0n2llW9Jw9?imageslim" alt="">
</div>
<div class="bg">
<img src="http://beta.img.pekolive.com/FjWcbuxEpzZ8P3aS4A0n2llW9Jw9?imageslim" alt="">
</div>
</div>
</div>
<div class="put-wrap">
<div class="put">投入</div>
<div class="put"></div>
<div class="list">
<div class="item">
<p><img src="http://beta.img.pekolive.com/FmLQyTfMaHlwkvj568vpV0uk7aSc?imageslim" class="gift"
alt=""></p>
<div>
<img src="./images/diamond.png" class="diamond" alt="">
<span class="in">100</span>
</div>
</div>
<div class="item">
<p><img src="http://beta.img.pekolive.com/Fm94cJfxF1Eqm0U04nG476JvFLaF?imageslim" class="gift"
alt=""></p>
<div>
<img src="./images/diamond.png" class="diamond" alt="">
<span class="in">0</span>
</div>
</div>
<div class="item">
<p><img src="http://beta.img.pekolive.com/FjWcbuxEpzZ8P3aS4A0n2llW9Jw9?imageslim" class="gift"
alt=""></p>
<div>
<img src="./images/diamond.png" class="diamond" alt="">
<span class="in">100</span>
</div>
</div>
<div class="item">
<p><img src="http://beta.img.pekolive.com/Ftlck3geTvQvvjBkyCwxuv7tHR_a?imageslim" class="gift"
alt=""></p>
<div>
<img src="./images/diamond.png" class="diamond" alt="">
<span class="in">100</span>
</div>
</div>
<div class="item">
<p><img src="http://beta.img.pekolive.com/Fnnd7i5L8BPI95DF_ZvhdGkk8cqI?imageslim" class="gift"
alt=""></p>
<div>
<img src="./images/diamond.png" class="diamond" alt="">
<span class="in">0</span>
</div>
</div>
<div class="item">
<p><img src="http://beta.img.pekolive.com/FoIKvxfBJiUUGNcL8ouKQKENQ2eb?imageslim" class="gift"
alt=""></p>
<div>
<img src="./images/diamond.png" class="diamond" alt="">
<span class="in">100</span>
</div>
</div>
<div class="item">
<p><img src="http://beta.img.pekolive.com/Fv3U6kNuCovsRljPb_an73W0U0lZ?imageslim" class="gift"
alt=""></p>
<div>
<img src="./images/diamond.png" class="diamond" alt="">
<span class="in">100</span>
</div>
</div>
<div class="item">
<p><img src="http://beta.img.pekolive.com/FuEuGPGHcyGExK_nJhvx08S4KeJ9?imageslim" class="gift"
alt=""></p>
<div>
<img src="./images/diamond.png" class="diamond" alt="">
<span class="in">100</span>
</div>
</div>
</div>
</div>
</li> -->

View File

@@ -541,8 +541,8 @@ function getInfoFromClient () {
} else {
// 非app环境调试参数
pubInfo.uid = 2346;
pubInfo.ticket = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0aWNrZXRfdHlwZSI6bnVsbCwidWlkIjoyMzQ2LCJ0aWNrZXRfaWQiOiJhOTY1YzkyYi1hZDM2LTRhZWItODk5OC1iN2UzODEyZjU2ZGYiLCJleHAiOjM2MDAsImNsaWVudF9pZCI6ImVyYmFuLWNsaWVudCJ9.AA-x5FwodxS9zimfJv4CTBXgD5-CPgVeoS-L6EU8VTI";
pubInfo.uid = 0;
pubInfo.ticket = "";
// pubInfo.uid = "";
// pubInfo.ticket = "";