Files
YGChatCS/pages/goods/components/GoodConfirm/styles/index.scss
2025-08-05 18:23:10 +08:00

204 lines
3.5 KiB
SCSS

.good-container {
display: flex;
flex-direction: column;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
box-sizing: border-box;
padding: 12px;
border-bottom: 1px solid #ddd;
position: relative;
.header-title {
font-size: 18px;
font-weight: 600;
color: #333;
flex: 1;
text-align: center;
}
.close-btn {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
}
}
.good-content {
background: #fff;
box-sizing: border-box;
max-height: 60vh;
overflow: hidden;
.wrapper {
box-sizing: border-box;
padding-left: 12px;
padding-right: 12px;
padding-top: 12px;
}
.good-info-wrapper {
border-radius: 12px;
overflow: hidden;
}
.goods-info {
display: flex;
box-sizing: border-box;
background-color: #f5f5f5;
padding: 12px;
.goods-details {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
.goods-title {
font-size: 16px;
font-weight: 500;
color: #333;
line-height: 22px;
margin-bottom: 8px;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.goods-price {
display: flex;
align-items: baseline;
margin-bottom: 12px;
.currency {
font-size: 14px;
color: #ff6b35;
font-weight: 500;
}
.price {
font-size: 20px;
color: #ff6b35;
font-weight: 600;
margin-left: 2px;
}
}
.goods-service-list {
background-color: #f5f5f5;
border-radius: 6px;
padding: 12px;
box-sizing: border-box;
}
.service-title {
font-size: 14px;
font-weight: 500;
color: #333;
}
.goods-service-item {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 8px;
.service-label,
.service-value {
font-size: 14px;
font-weight: 500;
}
.service-label {
color: #333;
}
.service-value {
color: #999;
}
}
}
}
.quantity-section {
display: flex;
justify-content: space-between;
align-items: center;
box-sizing: border-box;
padding: 12px 0;
}
.user-form-list {
margin-bottom: 12px;
display: flex;
flex-direction: row;
white-space: nowrap;
}
}
.footer {
margin-top: 12px;
display: flex;
align-items: center;
box-sizing: border-box;
padding-left: 12px;
padding-right: 12px;
padding-bottom: var(--safe-area-inset-bottom);
.left {
display: flex;
align-items: baseline;
}
.total-count {
font-size: 12px;
color: #333;
}
.total-price {
display: flex;
align-items: baseline;
font-size: 24px;
color: #f55726;
&::before {
content: "¥";
font-size: 12px;
}
}
.confirm-btn {
width: 160px;
height: 48px;
background: linear-gradient(179deg, #00a6ff 0%, #0256ff 100%);
color: #fff;
border: none;
border-radius: 24px;
font-size: 16px;
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
margin-left: auto;
&:active {
transform: translateY(1px);
}
&::after {
border: none;
}
}
}