feat:初始化项目

This commit is contained in:
dengtongyu committed 2021-08-23 22:05:46 +08:00
commit ca52cf1bc0
486 files changed
+56656

No files matched your search

File diff suppressed because it is too large. Load diff
+271
View File
@@ -0,0 +1,271 @@
@function px2rem($px, $rem:75) {
@return $px / $rem+rem;
}
@import '../../../common/css/flex.scss';
body {
.max {
.buy-mask {
width: px2rem(616);
height: px2rem(596);
// border-radius:.213333rem;
// background-color: #FFFFFF;
position: fixed;
left:50%;
top:50%;
transform:translate(-50%,-50%);
background: url('../img/index/buy-bg.png') no-repeat 0 0 / 100% 100%;
z-index: 1001;
display: none;
.b-box{
padding: 0 px2rem(25);
margin-top: px2rem(63);
.b-title{
color:#333;
line-height: px2rem(52);
text-align:center;
font-size: px2rem(35);
font-weight:bold;
letter-spacing:.013333rem;
.giftName{
font-weight:bold;
}
}
.b-number{
padding:0 .906667rem;
margin-top: px2rem(80);
@include flex();
.input-box{
@include flex();
@include flex-align-center;
height:.64rem;
margin-top:-0.066667rem;
.remove-btn{
width: px2rem(56);
height: px2rem(56);
@include flex();
@include flex-justify-center;
@include flex-align-center;
border-radius: px2rem(24) 0 0 px2rem(24);
background:rgba($color: #D4F4FF, $alpha: 0.6);
.remove-icon{
opacity: .6;
display:block;
width: px2rem(20);
height: px2rem(4);
background: url('../img/index/remove-icon.png') no-repeat 0 0 / 100% 100%;
background-size:100% 100%;
}
}
.b-input{
width: px2rem(102);
height: px2rem(56);
background:#D4F4FF;
text-align:center;
font-size: px2rem(30);
font-weight:500;
color: #8FA4B8;
margin:0 .106667rem;
border:0;
outline:none;
}
.add-btn{
width: px2rem(56);
height: px2rem(56);
@include flex();
@include flex-justify-center;
@include flex-align-center;
border-radius: 0 px2rem(24) px2rem(24) 0;
background:rgba($color: #D4F4FF, $alpha: 0.6);
.add-icon{
display:block;
width: px2rem(20);
height: px2rem(20);
background: url('../img/index/add-icon.png') no-repeat;
background-size:100% 100%;
}
}
}
}
.b-text{
white-space:nowrap;
font-size: px2rem(34);
font-weight:500;
color:rgba($color: #909090, $alpha: 1.0);
line-height:.48rem;
margin-bottom: px2rem(47);
span:first-child{
margin-right:.4rem;
}
}
.b-day{
padding:0 .906667rem;
span:nth-child(2),span:last-child{
color:#FE7BA7;
letter-spacing:.013333rem;
}
}
.b-price{
padding:0 .906667rem;
span:nth-child(2),span:last-child{
color: #FFA530;
letter-spacing:.013333rem;
}
}
.b-btns{
@include flex();
@include flex-justify-around;
margin-top: px2rem(55);
.close-btn{
width: px2rem(250);
height: px2rem(86);
background:url('../img/index/btn-cancel.png') no-repeat 0 0 / 100% 100%;
@include flex();
@include flex-justify-center;
@include flex-align-center;
}
.confirm-btn{
width: px2rem(250);
height: px2rem(86);
background: url('../img/index/btn-confirm.png') no-repeat 0 0 / 100% 100%;
@include flex();
@include flex-justify-center;
@include flex-align-center;
}
}
}
}
.rule-mask {
width: px2rem(616);
height: px2rem(596);
position: fixed;
left: 50%;
top: 50%;
transform:translate(-50%,-50%);
z-index: 1001;
// background-color:#FFFFFF;
background: url('../img/index/buy-bg.png') no-repeat 0 0 / 100% 100%;
border-radius:.213333rem;
// overflow: hidden;
display: none;
.title {
width: 100%;
text-align: center;
font-size: px2rem(40);
color: #333;
margin-top: px2rem(60);
font-weight: bold;
// background: linear-gradient(0deg, #FFE691 0%, #FEFAD5 100%);
// -webkit-background-clip: text;
// -webkit-text-fill-color: transparent;
}
.content {
width: px2rem(524);
height: px2rem(425);
margin: 0 auto;
margin-top:.4rem;
overflow: auto;
&::-webkit-scrollbar {
display: none;
}
p {
width: 100%;
height:13.333333rem;
img {
width:100%;
}
}
}
.cancel {
width: px2rem(70);
height:px2rem(70);
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: px2rem(-110);
img {
width:100%;
height:100%;
}
}
}
.statusMask {
width: px2rem(616);
height: px2rem(596);
// border-radius:.213333rem;
// background-color:#FFFFFF;
background: url('../img/index/buy-bg.png') no-repeat 0 0 / 100% 100%;
position: fixed;
left: 50%;
top: 50%;
transform:translate(-50%,-50%);
z-index: 1001;
display: none;
.cancel {
width: px2rem(70);
height: px2rem(70);
position: absolute;
left: 50%;
transform: translate(-50%,0);
bottom: px2rem(-80);
img {
width:100%;
height:100%;
}
}
.title {
width: 100%;
text-align: center;
font-size: px2rem(40);
color: #333;
font-weight:bold;
margin-top: px2rem(60);
}
.avatar {
width: px2rem(120);
height: px2rem(120);
margin: 0 auto;
margin-top: px2rem(64);
img {
width: 100%;
height:100%;
}
}
.tip {
width: 100%;
text-align: center;
font-size: px2rem(30);
color: #909090;
}
.in-btn, .recharge {
@include flex;
@include flex-align-center;
@include flex-justify-between;
display: block;
width: px2rem(314);
height: px2rem(86);
background:url('../img/index/btn.png') no-repeat 0 0 / 100% 100%;
background-size:100% 100%;
font-size: px2rem(36);
line-height: px2rem(86);
box-sizing: border-box;
text-align: center;
margin: px2rem(60) auto 0;
font-weight: bold;
padding-bottom: px2rem(10);
color: #fff;
}
}
}
}
+251
View File
@@ -0,0 +1,251 @@
@function px2rem($px, $rem:67) {
@return $px / $rem+rem;
}
@import '../../../common/css/flex.scss';
.mask {
z-index: 120;
position: fixed;
width: 100%;
left: 0;
bottom: 0;
display: flex;
height: 60px;
align-items: center;
background: rgba(0, 0, 0, 0.5);
justify-content: space-between;
padding: 0 8px;
box-sizing: border-box;
display: none;
.logo {
width: 40px;
img {
width: 100%;
}
}
.slogan {
color: #fff;
}
}
#download {
border: 1px solid #fff;
color: #fff;
width: 80px;
text-align: center;
border-radius: 15px;
line-height: 30px;
a {
color: #fff;
}
}
*{
-webkit-overflow-scrolling: touch;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-tap-highlight-color: transparent;
}
body{
font-family:PingFang SC;
background: #8CCFFA;
z-index:-1;
.max {
max-width: px2rem(670);
margin: 0 auto;
.title-one {
width: 100%;
img {
width: 100%;
height: 100%;
}
}
.rule-btn {
width: px2rem(88);
height: px2rem(46);
position: absolute;
left: px2rem(30);
top: px2rem(20);
img {
width:100%;
height:100%;
}
}
.cloth-box {
width:100%;
padding-bottom:2.4rem;
margin:-2.2rem auto 0;
li {
width: px2rem(620);
height: px2rem(400);
position:relative;
margin:px2rem(30) auto 0;
@include flex();
@include flex-justify-center;
background:url('../img/index/li-card.png') no-repeat 0 0 / 100% 100%;
.h-title{
position:absolute;
margin: px2rem(32) auto 0;
letter-spacing:.053333rem;
font-size: px2rem(28);
font-weight: bold;
color: #333;
line-height: px2rem(50);
}
.gift-img{
width:px2rem(156);
height: px2rem(156);
position:absolute;
box-sizing: border-box;
left: px2rem(72);
top: px2rem(110);
@include flex;
@include flex-align-center;
@include flex-justify-center;
img{
box-sizing: border-box;
padding: px2rem(10);
width:100%;
height: 100%;
object-fit: cover;
}
}
.gift-text{
position:absolute;
left: px2rem(290);
top: px2rem(100);
p:first-child{
font-size:px2rem(34);
font-weight:bold;
color: #555;
letter-spacing:.026667rem;
}
p:nth-child(2){
font-size:px2rem(28);
font-weight:bold;
color:#FF8F4C;
}
p:nth-child(3){
font-size:px2rem(26);
font-weight:500;
text-decoration:line-through;
color: #9C9C9C;
line-height:px2rem(47);
opacity:0.8;
}
p:last-child{
font-size:px2rem(26);
font-weight: 500;
color: #9C9C9C;
opacity:0.8;
line-height: px2rem(47);
}
}
.buy-btn{
width: px2rem(300);
height: px2rem(82);
position:absolute;
bottom: px2rem(20);
@include flex();
@include flex-justify-center;
background: url('../img/index/buy.png') no-repeat 0 0 / 100% 100%;
&.gray {
background: url('../img/index/buy-gray.png') no-repeat 0 0 / 100% 100%;
}
}
}
}
.shade {
width: 100%;
position:fixed;
z-index:1000;
left: 0;
top: 0;
height: 100%;
background:rgba(0,0,0,0.7);
display: none;
}
.mine {
@include flex();
@include flex-justify-between;
@include flex-align-center;
width: 100%;
height:1.866667rem;
position: fixed;
left: 0;
bottom: 0;
// background: linear-gradient( #2578A7, #4E6BB3);
background: #0068C0;
z-index: 100;
li {
margin: 0 .533333rem;
img {
width: 100%;
}
&:first-child {
@include flex();
@include flex-justify-start;
@include flex-align-center;
p {
&:first-child {
width:1.066667rem;
height:1.066667rem;
border-radius:50%;
overflow: hidden;
font-weight:500;
}
&:last-child {
margin-left:.266667rem;
span {
display: block;
&:first-child {
line-height: px2rem(38);
font-size: px2rem(26);
color: #fff;
font-weight: bold;
white-space: nowrap;
}
&:last-child {
font-size: px2rem(22);
font-weight: 500;
color: rgba($color: #C1C4FD, $alpha: 1);
b {
color: rgba($color: #fff, $alpha: 1);
}
}
}
}
}
}
&:last-child {
margin-top: px2rem(10);
width: px2rem(180);
height: px2rem(81);
}
}
}
}
/*提示信息样式*/
.ajaxtiptext{
position:fixed;
top:50%;
left:50%;
transform:translate(-50%,-50%);
text-align: center;
color:#FFFFFF;
padding:.2rem .4rem;
border-radius:.333333rem;
letter-spacing:.013333rem;
background:rgba(0,0,0,0.8);
animation:ajaxani 0.3s forwards;
z-index:9999;
white-space:nowrap;
}
}
@import './index-mask.scss';