Files
JayuCloud/WeChatProgram/pages/cart/index.wxss
T

327 lines
4.9 KiB
Plaintext

.cart-page {
padding-bottom: calc(env(safe-area-inset-bottom) + 150rpx);
}
.cart-content {
padding-bottom: 20rpx;
}
.cart-hero {
background:
radial-gradient(circle at top right, rgba(255, 192, 210, 0.42), transparent 34%),
linear-gradient(145deg, #fffdfd 0%, #fff2f6 56%, #ffe7ef 100%);
}
.issue-card {
margin-top: 20rpx;
margin-bottom: 20rpx;
padding: 22rpx 24rpx;
border-radius: 24rpx;
background: #fff7e8;
color: #9b6900;
}
.issue-title {
font-size: 28rpx;
font-weight: 700;
}
.issue-item {
margin-top: 10rpx;
font-size: 24rpx;
line-height: 1.7;
}
.cart-item-card + .cart-item-card,
.coupon-card,
.summary-card {
margin-top: 20rpx;
}
.cart-item-card {
padding: 24rpx;
}
.cart-item-top {
display: flex;
align-items: flex-start;
gap: 16rpx;
}
.select-dot {
width: 34rpx;
height: 34rpx;
margin-top: 8rpx;
border-radius: 50%;
border: 4rpx solid #d8c4cc;
}
.select-dot.active {
border-color: #c6597d;
background: #c6597d;
}
.cart-thumb {
width: 140rpx;
height: 140rpx;
border-radius: 22rpx;
background: #f6edf1;
}
.cart-main {
flex: 1;
}
.cart-title-row {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16rpx;
}
.cart-title {
flex: 1;
min-width: 0;
font-size: 30rpx;
font-weight: 700;
line-height: 1.5;
color: #2d2430;
}
.cart-price {
font-size: 30rpx;
font-weight: 700;
color: #d5536f;
}
.cart-meta-row {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 12rpx;
margin-top: 12rpx;
}
.meta-chip {
display: inline-flex;
align-items: center;
justify-content: center;
height: 42rpx;
padding: 0 16rpx;
border-radius: 999rpx;
background: #fff1f5;
color: #c6597d;
font-size: 20rpx;
font-weight: 700;
}
.cart-meta {
font-size: 24rpx;
color: #8d7a84;
}
.selector-group {
margin-top: 24rpx;
}
.selector-row {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 76rpx;
padding: 0 22rpx;
border-radius: 20rpx;
background: #fbf5f7;
}
.selector-row.compact {
min-height: 72rpx;
}
.selector-row.issue {
background: #fff7e8;
}
.selector-label {
font-size: 24rpx;
color: #8d7a84;
}
.selector-value {
font-size: 24rpx;
color: #2d2430;
font-weight: 600;
}
.time-grid {
display: flex;
gap: 14rpx;
margin-top: 14rpx;
}
.time-grid picker {
flex: 1;
}
.appointment-preview {
margin-top: 14rpx;
font-size: 24rpx;
color: #8d7a84;
}
.cart-item-foot {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 24rpx;
}
.qty-box {
display: flex;
align-items: center;
gap: 16rpx;
}
.qty-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 56rpx;
height: 56rpx;
border-radius: 50%;
background: #fbf5f7;
color: #7a5262;
font-size: 34rpx;
}
.qty-value {
min-width: 48rpx;
text-align: center;
font-size: 28rpx;
font-weight: 700;
color: #2d2430;
}
.remove-btn {
font-size: 24rpx;
color: #d5536f;
font-weight: 700;
}
.coupon-card,
.summary-card {
padding: 26rpx;
}
.coupon-option {
display: flex;
align-items: center;
gap: 18rpx;
margin-top: 20rpx;
padding: 20rpx 0;
border-top: 2rpx solid #f6eaee;
}
.coupon-option:first-child {
border-top: 0;
padding-top: 10rpx;
}
.coupon-option.active {
color: #c6597d;
}
.coupon-texts {
flex: 1;
}
.coupon-name {
font-size: 26rpx;
font-weight: 700;
color: #2d2430;
}
.coupon-desc {
margin-top: 8rpx;
font-size: 22rpx;
color: #8d7a84;
}
.coupon-tag {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 92rpx;
height: 44rpx;
padding: 0 14rpx;
border-radius: 999rpx;
background: #fff1f5;
color: #c6597d;
font-size: 20rpx;
font-weight: 700;
}
.summary-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10rpx 0;
font-size: 26rpx;
color: #5d4b55;
}
.summary-row.total {
margin-top: 10rpx;
padding-top: 18rpx;
border-top: 2rpx solid #f3e7eb;
font-size: 30rpx;
font-weight: 700;
color: #2d2430;
}
.checkout-bar {
position: fixed;
left: 24rpx;
right: 24rpx;
bottom: calc(env(safe-area-inset-bottom) + 20rpx);
z-index: 20;
display: flex;
align-items: center;
justify-content: space-between;
gap: 20rpx;
padding: 18rpx 20rpx;
border-radius: 30rpx;
background: rgba(255, 255, 255, 0.98);
box-shadow: 0 18rpx 50rpx rgba(122, 67, 88, 0.12);
}
.checkout-copy {
flex: 1;
}
.checkout-total {
font-size: 36rpx;
font-weight: 800;
color: #d5536f;
}
.checkout-meta {
margin-top: 8rpx;
font-size: 22rpx;
color: #8d7a84;
}
.checkout-btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 220rpx;
height: 84rpx;
padding: 0 26rpx;
border-radius: 999rpx;
background: linear-gradient(135deg, #ff8cb0 0%, #c6597d 100%);
color: #ffffff;
font-size: 28rpx;
font-weight: 700;
}