334 lines
5.9 KiB
Plaintext
334 lines
5.9 KiB
Plaintext
/* pages/mainPage/mainPage.wxss */
|
|
.page-body {
|
|
/* background-image: url('https://www.aimzhu.com/miniapp-assets/bg_index_page.jpg'); */
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background-size: cover;
|
|
background-repeat: no-repeat;
|
|
background-attachment: fixed;
|
|
}
|
|
|
|
.main-logo {
|
|
background-size: contain;
|
|
background-repeat: no-repeat;
|
|
width: 60vw;
|
|
height: 68rpx;
|
|
align-self: center;
|
|
}
|
|
|
|
.main-txt-recommend {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
color: white;
|
|
margin-top: 20rpx;
|
|
}
|
|
|
|
.bg-radius {
|
|
background-color: var(--bg-brown-color);
|
|
padding: 10rpx 30rpx;
|
|
border-radius: 50rpx;
|
|
font-size: 24rpx;
|
|
}
|
|
|
|
.title-desc {
|
|
margin-top: 20rpx;
|
|
color: var(--text-color);
|
|
font-size: 24rpx;
|
|
text-align: center;
|
|
width: 50vw;
|
|
}
|
|
|
|
.main-recommend-container {
|
|
height: 50rpx;
|
|
width: 100vw;
|
|
}
|
|
|
|
.main-recommend-title {
|
|
font-size: 50rpx;
|
|
}
|
|
|
|
.main-recommend-content {
|
|
font-size: 40rpx;
|
|
text-align: center;
|
|
align-items: baseline;
|
|
}
|
|
|
|
.main-recommend-desc {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: flex-start;
|
|
align-items: baseline;
|
|
font-size: 22rpx;
|
|
color: var(--text-color);
|
|
flex-wrap: wrap;
|
|
width: 50vw;
|
|
line-height: 28rpx;
|
|
text-align: center;
|
|
margin-top: 20rpx;
|
|
}
|
|
|
|
.buy-all-box {
|
|
margin-top: 20rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-radius: 10rpx;
|
|
background-color: var(--white-color);
|
|
box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
|
|
.buy-all-title {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background: linear-gradient(to left, var(--primary-color), var(--primary-color-light));
|
|
border-top-left-radius: 10rpx;
|
|
border-top-right-radius: 10rpx;
|
|
padding: 15rpx;
|
|
color: var(--text-brown-color);
|
|
}
|
|
|
|
.buy-all-txt {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.txt-title {
|
|
font-size: 38rpx;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.buy-all-txt .money {
|
|
margin-left: 20rpx;
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.buy-all-btn {
|
|
padding: 5rpx 35rpx;
|
|
border-radius: 10rpx;
|
|
background-color: var(--btn-cyan-color);
|
|
color: var(--white-color);
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
.buy-desc-box {
|
|
display: flex;
|
|
flex-direction: column;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.buy-desc-txt {
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.buy-desc-title {
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.buy-desc-item {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.buy-desc-row {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex: 1;
|
|
align-items: flex-start;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.txt {
|
|
font-size: 22rpx;
|
|
line-height: 30rpx;
|
|
margin-top: 6rpx;
|
|
}
|
|
|
|
.single-txt {
|
|
font-size: 24rpx;
|
|
}
|
|
|
|
.buy-desc-row-icon {
|
|
width: 40rpx;
|
|
height: 40rpx;
|
|
}
|
|
|
|
.buy-desc-row-no-margin {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex: 1;
|
|
align-items: center;
|
|
}
|
|
|
|
.txt-hor {
|
|
font-size: 24rpx;
|
|
}
|
|
|
|
.list-item {
|
|
counter-increment: my-counter;
|
|
display: flex;
|
|
align-items: center;
|
|
line-height: 18px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* 使用 ::before 伪元素显示计数器值并设置圆形背景 */
|
|
.list-item::before {
|
|
content: counter(my-counter);
|
|
background-color: var(--primary-color-active);
|
|
color: black;
|
|
border-radius: 50%;
|
|
width: 18px;
|
|
height: 18px;
|
|
line-height: 18px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin-right: 10rpx;
|
|
}
|
|
|
|
.buy-desc-column {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex: 1;
|
|
align-items: center;
|
|
}
|
|
|
|
|
|
.main-desc-box {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-top: 20rpx;
|
|
}
|
|
|
|
.main-desc-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
background-color: #ffffff;
|
|
margin: 0rpx 10rpx;
|
|
color: #5e3603;
|
|
border-radius: 8rpx;
|
|
}
|
|
|
|
.main-desc-title {
|
|
font-size: 35rpx;
|
|
background: linear-gradient(to right, #ed5a2433, #f38f1e33);
|
|
text-align: center;
|
|
padding: 8rpx;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.main-desc-price {
|
|
text-align: center;
|
|
font-weight: 500;
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
.main-desc-desc {
|
|
font-size: 24rpx;
|
|
position: relative;
|
|
display: inline-block;
|
|
background-color: #fff6e7;
|
|
margin: 10rpx;
|
|
color: #5e3603;
|
|
border-radius: 4rpx;
|
|
padding: 5rpx 20rpx;
|
|
}
|
|
|
|
.main-desc-desc::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: 100%;
|
|
transform: translateX(-50%);
|
|
width: 0;
|
|
height: 0;
|
|
border: 8px solid transparent;
|
|
border-bottom-color: #fff6e7;
|
|
}
|
|
|
|
.main-desc-desc-box {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
padding: 0rpx 20rpx;
|
|
}
|
|
|
|
.main-desc-desc-title {
|
|
font-size: 24rpx;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.main-desc-desc-item {
|
|
font-size: 20rpx;
|
|
position: relative;
|
|
padding-left: 24rpx;
|
|
line-height: 24px;
|
|
margin-left: 10rpx;
|
|
}
|
|
|
|
.main-desc-desc-item::before {
|
|
content: '✓';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 24rpx;
|
|
height: 24rpx;
|
|
background-color: #fee9d1;
|
|
color: #f6783a;
|
|
border-radius: 50%;
|
|
text-align: center;
|
|
line-height: 24rpx;
|
|
}
|
|
|
|
.main-btn {
|
|
align-self: center;
|
|
background-color: var(--btn-cyan-color);
|
|
font-size: 28rpx;
|
|
padding: 20rpx 40rpx;
|
|
border-radius: 10rpx;
|
|
color: var(--white-color);
|
|
width: 83vw;
|
|
text-align: center;
|
|
margin-top: 30rpx;
|
|
box-shadow: 0rpx 0rpx 10rpx 0rpx rgb(233, 233, 233);
|
|
}
|
|
|
|
.main-btn:active {
|
|
background-color: var(--btn-cyan-active);
|
|
color: var(--white-color);
|
|
}
|
|
|
|
.main-publicity-box {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-top: 30rpx;
|
|
}
|
|
|
|
.publicity-title {
|
|
color: white;
|
|
text-align: center;
|
|
font-size: 30rpx;
|
|
}
|
|
|
|
.publicity-desc {
|
|
color: white;
|
|
text-align: center;
|
|
font-size: 22rpx;
|
|
}
|
|
|
|
.publicity-box {
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
|
|
.publicity-item {
|
|
flex: 1;
|
|
margin: 10rpx;
|
|
} |