Files
peko-h5/view/peko/activity/explore/css/index.scss

418 lines
10 KiB
SCSS
Raw Normal View History

2022-09-08 18:22:18 +08:00
@function px2rem($px, $rem:75) {
@return $px / $rem+rem;
}
2022-10-20 18:44:45 +08:00
@font-face {
2022-09-08 18:22:18 +08:00
font-family: 'pingfang-medium';
src: url('../../../common/fonts/PingFang-Medium.ttf');
src: url('../../../common/fonts/PingFang-Medium.ttf') format('woff'),
url('../../../common/fonts/PingFang-Medium.ttf') format('truetype'),
url('../../../common/fonts/PingFang-Medium.ttf') format('svg');
}
2022-10-20 18:44:45 +08:00
@font-face {
2022-09-08 18:22:18 +08:00
font-family: 'pingfang-bold';
src: url('../../../common/fonts/PingFang-Bold.ttf');
src: url('../../../common/fonts/PingFang-Bold.ttf') format('woff'),
url('../../../common/fonts/PingFang-Bold.ttf') format('truetype'),
url('../../../common/fonts/PingFang-Bold.ttf') format('svg');
}
2022-10-20 18:44:45 +08:00
@font-face {
2022-09-08 18:22:18 +08:00
font-family: 'pingfang-regular';
src: url('../../../common/fonts/PingFang-Regular.ttf');
src: url('../../../common/fonts/PingFang-Regular.ttf') format('woff'),
url('../../../common/fonts/PingFang-Regular.ttf') format('truetype'),
url('../../../common/fonts/PingFang-Regular.ttf') format('svg');
}
2022-10-20 18:44:45 +08:00
body {
2022-09-08 18:22:18 +08:00
font-family: 'pingfang-medium';
2022-10-20 18:44:45 +08:00
background: #7956F2;
2022-09-08 18:22:18 +08:00
}
2022-10-20 18:44:45 +08:00
.wrap {
2022-09-08 18:22:18 +08:00
// display: none;
background: url('../images/bg.png') no-repeat 0 0/100%;
// min-height: px2rem(2896);
overflow: hidden;
2022-10-20 18:44:45 +08:00
.rule-btn {
2022-09-08 18:22:18 +08:00
position: relative;
2022-10-20 18:44:45 +08:00
div {
2022-09-08 18:22:18 +08:00
position: absolute;
top: px2rem(46);
right: 0;
width: px2rem(138);
height: px2rem(48);
2022-10-20 18:44:45 +08:00
line-height: px2rem(48, );
background: url(../images/introduce.png) no-repeat;
background-size: 100% 100%;
text-align: center;
color: #FFFFFF;
font-size: px2rem(26, );
}
2022-09-08 18:22:18 +08:00
}
2022-10-20 18:44:45 +08:00
ul.buy-area {
margin-top: 4.133333rem;
2022-09-08 18:22:18 +08:00
margin-bottom: px2rem(240);
overflow: hidden;
2022-10-20 18:44:45 +08:00
li {
2022-09-08 18:22:18 +08:00
position: relative;
width: px2rem(600);
height: px2rem(460);
margin: px2rem(62) auto 0;
overflow: hidden;
2022-10-20 18:44:45 +08:00
.headwear-info {
2022-09-08 18:22:18 +08:00
margin-left: px2rem(290);
margin-top: px2rem(180);
2022-10-20 18:44:45 +08:00
.headwear-name {
2022-09-08 18:22:18 +08:00
font-family: 'pingfang-bold';
font-size: px2rem(30);
font-weight: bold;
color: #FFF600;
}
2022-10-20 18:44:45 +08:00
.headwear-price {
2022-09-08 18:22:18 +08:00
line-height: px2rem(40);
color: #fff;
font-size: px2rem(22);
}
2022-10-20 18:44:45 +08:00
.headwear-award {
color: #fff;
2022-09-08 18:22:18 +08:00
font-size: px2rem(22);
margin-top: px2rem(20);
}
2022-10-20 18:44:45 +08:00
.buy-btn {
2022-09-08 18:22:18 +08:00
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: px2rem(30);
width: px2rem(360);
height: px2rem(72);
2022-10-20 18:44:45 +08:00
line-height: px2rem(72, );
2022-09-08 18:22:18 +08:00
background: url('../images/buy-btn.png') no-repeat 0 0/100% 100%;
font-size: px2rem(30);
cursor: pointer;
2022-10-20 18:44:45 +08:00
color: #7944DA;
font-size: px2rem(32, );
text-align: center;
font-weight: bold;
.headwear-price-wrap {
img.icon {
2022-09-08 18:22:18 +08:00
width: px2rem(38);
height: px2rem(30);
margin-left: px2rem(20);
}
}
2022-10-20 18:44:45 +08:00
.tip {
2022-09-08 18:22:18 +08:00
width: px2rem(200);
height: px2rem(60);
line-height: px2rem(60);
background: url('../images/buy-btn.png') no-repeat 0 0/100% 100%;
text-align: center;
font-weight: bold;
color: #3E0D07;
}
}
}
}
}
}
2022-10-20 18:44:45 +08:00
.mine {
2022-09-08 18:22:18 +08:00
position: fixed;
bottom: 0;
left: 0;
z-index: 99;
width: 100%;
height: px2rem(120);
2022-10-20 18:44:45 +08:00
// background-color: #6D49EF;
background: url(../images/bottom.png) no-repeat;
2022-09-08 18:22:18 +08:00
// border-top: 2px solid #BFFFFF;
display: flex;
align-items: center;
2022-10-20 18:44:45 +08:00
.avatar {
2022-09-08 18:22:18 +08:00
width: px2rem(80);
height: px2rem(80);
margin-left: px2rem(30);
margin-right: px2rem(20);
2022-10-20 18:44:45 +08:00
img {
2022-09-08 18:22:18 +08:00
width: 100%;
border-radius: 50%;
}
}
2022-10-20 18:44:45 +08:00
.info-wrap {
2022-09-08 18:22:18 +08:00
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-around;
height: 68%;
font-size: px2rem(30);
color: #fff;
2022-10-20 18:44:45 +08:00
.nick {
2022-09-08 18:22:18 +08:00
font-size: px2rem(30);
}
2022-10-20 18:44:45 +08:00
div {
2022-09-08 18:22:18 +08:00
display: flex;
font-family: 'pingfang-regular';
font-size: px2rem(22, );
2022-10-20 18:44:45 +08:00
p {
2022-09-08 18:22:18 +08:00
margin-right: px2rem(40, );
}
}
}
}
// 玩法介绍
.rule-mask {
width: px2rem(560);
height: px2rem(600);
position: fixed;
left: 50%;
top: 50%;
margin-left: px2rem(-280);
margin-top: px2rem(-300);
z-index: 1001;
background-color: white;
border-radius: 8px;
overflow: hidden;
display: none;
.title {
2022-10-20 18:44:45 +08:00
width: 100%;
text-align: center;
font-size: px2rem(32);
color: #5B1DC2;
margin-top: px2rem(30);
font-weight: bold;
2022-09-08 18:22:18 +08:00
}
.content {
width: 100%;
2022-10-20 18:44:45 +08:00
height: px2rem(450);
margin: 0 auto;
margin-top: px2rem(30);
overflow: auto;
padding: 0 px2rem(40) 0 px2rem(70);
box-sizing: border-box;
-webkit-overflow-scrolling: touch;
&::-webkit-scrollbar {
display: none;
}
p {
margin-bottom: px2rem(20);
font-size: px2rem(30);
line-height: px2rem(38);
width: 100%;
text-indent: px2rem(-34);
color: #666;
}
2022-09-08 18:22:18 +08:00
}
.cancel {
2022-10-20 18:44:45 +08:00
width: px2rem(24);
height: px2rem(24);
position: absolute;
right: 10px;
top: 10px;
2022-09-08 18:22:18 +08:00
2022-10-20 18:44:45 +08:00
img {
width: 100%;
}
2022-09-08 18:22:18 +08:00
}
}
.shade {
width: 100%;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
height: 100%;
background: black;
opacity: .7;
display: none;
}
// 购买弹窗
2022-10-20 18:44:45 +08:00
.shade-mask-buy {
2022-09-08 18:22:18 +08:00
display: none;
position: fixed;
top: 0;
left: 0;
z-index: 999;
width: 100vw;
height: 100vh;
background-color: rgba($color: #000000, $alpha: 0.4);
2022-10-20 18:44:45 +08:00
.shade-content-buy {
2022-09-08 18:22:18 +08:00
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: px2rem(600);
height: px2rem(600);
border-radius: px2rem(24);
background-color: white;
2022-10-20 18:44:45 +08:00
.title {
2022-09-08 18:22:18 +08:00
font-family: 'pingfang-bold';
font-size: px2rem(36);
font-weight: bold;
color: #333333;
text-align: center;
margin: px2rem(36) 0 px2rem(44);
2022-10-20 18:44:45 +08:00
span {
2022-09-08 18:22:18 +08:00
font-weight: bold;
}
}
2022-10-20 18:44:45 +08:00
.buy-num,
.buy-day,
.buy-price {
2022-09-08 18:22:18 +08:00
font-size: px2rem(30);
color: #333333;
margin-bottom: px2rem(64);
margin-left: px2rem(48);
2022-10-20 18:44:45 +08:00
p {
2022-09-08 18:22:18 +08:00
font-weight: 550;
}
}
2022-10-20 18:44:45 +08:00
.buy-num {
2022-09-08 18:22:18 +08:00
display: flex;
align-items: center;
height: px2rem(60);
2022-10-20 18:44:45 +08:00
.decrease,
.increase {
2022-09-08 18:22:18 +08:00
width: px2rem(60);
height: px2rem(60);
margin-right: px2rem(20);
2022-10-20 18:44:45 +08:00
img {
2022-09-08 18:22:18 +08:00
width: 100%;
}
}
2022-10-20 18:44:45 +08:00
input {
2022-09-08 18:22:18 +08:00
width: px2rem(160);
height: px2rem(60);
border-radius: px2rem(30);
background-color: #EAE5FC;
color: #7154EE;
text-align: center;
margin-right: px2rem(20);
outline: none;
caret-color: #7154EE;
}
}
2022-10-20 18:44:45 +08:00
.buy-day,
.buy-price {
2022-09-08 18:22:18 +08:00
display: flex;
align-items: center;
}
2022-10-20 18:44:45 +08:00
.buy-confirm-btn {
2022-09-08 18:22:18 +08:00
display: flex;
justify-content: space-between;
width: px2rem(512);
height: px2rem(76);
margin: px2rem(90) auto 0;
2022-10-20 18:44:45 +08:00
.cancel,
.confirm {
2022-09-08 18:22:18 +08:00
width: px2rem(240);
height: px2rem(76);
line-height: px2rem(76);
background-color: #EAE5FC;
font-size: px2rem(28);
color: #7154EE;
text-align: center;
border-radius: px2rem(38);
}
2022-10-20 18:44:45 +08:00
.confirm {
2022-09-08 18:22:18 +08:00
background-image: linear-gradient(#735FFE, #8776FF);
color: white;
}
}
}
}
2022-10-20 18:44:45 +08:00
2022-09-08 18:22:18 +08:00
// 购买成功弹窗
2022-10-20 18:44:45 +08:00
.shade-mask-success,
.shade-mask-no-money {
2022-09-08 18:22:18 +08:00
display: none;
width: px2rem(560);
height: px2rem(460);
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
z-index: 1001;
border-radius: px2rem(16);
background-color: white;
2022-10-20 18:44:45 +08:00
.title {
2022-09-08 18:22:18 +08:00
font-size: px2rem(34);
color: #333;
text-align: center;
margin-top: px2rem(40);
}
2022-10-20 18:44:45 +08:00
.pic-icon {
2022-09-08 18:22:18 +08:00
width: px2rem(122);
height: px2rem(122);
margin: 0 auto;
margin-top: px2rem(26);
2022-10-20 18:44:45 +08:00
img {
2022-09-08 18:22:18 +08:00
width: 100%;
}
}
2022-10-20 18:44:45 +08:00
.tip {
2022-09-08 18:22:18 +08:00
text-align: center;
font-size: 13px;
color: #999;
margin-top: px2rem(26);
}
2022-10-20 18:44:45 +08:00
.in-btn,
.recharge {
2022-09-08 18:22:18 +08:00
width: px2rem(210);
height: px2rem(76);
border-radius: px2rem(50);
background-color: #7154EE;
color: #fff;
font-size: px2rem(30);
text-align: center;
line-height: px2rem(76);
margin: 0 auto;
margin-top: px2rem(40);
}
}