Files
Wechat/pages/submit/submit.wxss

297 lines
4.1 KiB
Plaintext

/* pages/submit/submit.wxss */
page {
background: #f2f2f2;
}
.page {
min-height: 100vh;
padding-bottom: 140rpx;
box-sizing: border-box;
}
/* SKU头部 - 拼多多弹窗风格 */
.sku-header {
display: flex;
background: #fff;
padding: 24rpx;
position: relative;
margin-bottom: 16rpx;
}
.sku-thumb {
width: 180rpx;
height: 180rpx;
border-radius: 12rpx;
flex-shrink: 0;
margin-right: 20rpx;
background: #f5f5f5;
}
.sku-header-info {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 4rpx 0;
}
.sku-price-row {
display: flex;
align-items: baseline;
}
.sku-price-sym {
font-size: 28rpx;
color: #e02e24;
font-weight: 700;
}
.sku-price-int {
font-size: 48rpx;
color: #e02e24;
font-weight: 800;
line-height: 1;
margin-left: 2rpx;
}
.sku-price-dec {
font-size: 28rpx;
color: #e02e24;
font-weight: 700;
}
.sku-stock {
font-size: 24rpx;
color: #999;
}
.sku-selected {
font-size: 24rpx;
color: #666;
}
.sku-close {
position: absolute;
top: 16rpx;
right: 16rpx;
width: 48rpx;
height: 48rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 36rpx;
color: #999;
border-radius: 50%;
background: #f5f5f5;
line-height: 1;
}
/* SKU区块 */
.sku-section {
background: #fff;
padding: 24rpx 28rpx;
margin-bottom: 16rpx;
}
.sku-section-title {
font-size: 28rpx;
font-weight: 700;
color: #222;
margin-bottom: 20rpx;
display: block;
}
/* 数量选择器 */
.qty-row {
display: flex;
align-items: center;
}
.qty-btn {
width: 64rpx;
height: 64rpx;
border-radius: 8rpx;
background: #f5f5f5;
display: flex;
align-items: center;
justify-content: center;
font-size: 32rpx;
font-weight: 700;
color: #333;
border: 1rpx solid #e8e8e8;
}
.qty-btn--disabled {
color: #ccc;
border-color: #f0f0f0;
background: #fafafa;
}
.qty-val {
min-width: 80rpx;
text-align: center;
font-size: 32rpx;
font-weight: 700;
color: #222;
margin: 0 20rpx;
}
/* 表单字段 */
.form-field {
padding: 16rpx 0;
border-bottom: 1rpx solid #f5f5f5;
}
.form-field:last-child {
border-bottom: none;
padding-bottom: 0;
}
.field-top {
display: flex;
align-items: center;
margin-bottom: 10rpx;
}
.field-name {
font-size: 26rpx;
font-weight: 600;
color: #333;
}
.field-required {
font-size: 20rpx;
color: #e02e24;
background: #fff1f0;
padding: 2rpx 10rpx;
border-radius: 4rpx;
margin-left: 10rpx;
}
.field-optional {
font-size: 20rpx;
color: #bbb;
margin-left: 10rpx;
}
.field-input {
width: 100%;
height: 72rpx;
background: #f7f7f7;
border-radius: 8rpx;
padding: 0 20rpx;
font-size: 26rpx;
color: #333;
border: 1rpx solid #eee;
box-sizing: border-box;
}
.ph {
color: #bbb;
font-size: 26rpx;
}
/* 服务保障 */
.guarantee-row {
display: flex;
flex-wrap: wrap;
gap: 12rpx 20rpx;
}
.guarantee-item {
display: flex;
align-items: center;
}
.g-check {
font-size: 20rpx;
color: #e02e24;
font-weight: 700;
margin-right: 4rpx;
}
.g-text {
font-size: 24rpx;
color: #666;
}
/* 支付方式 */
.pay-row {
display: flex;
align-items: center;
}
.pay-icon {
width: 44rpx;
height: 44rpx;
margin-right: 16rpx;
}
.pay-label {
flex: 1;
font-size: 28rpx;
color: #333;
font-weight: 500;
}
.pay-check {
width: 36rpx;
height: 36rpx;
border-radius: 50%;
background: #52c41a;
display: flex;
align-items: center;
justify-content: center;
}
.pay-check-icon {
color: #fff;
font-size: 22rpx;
font-weight: 700;
}
/* 底部留白 */
.bottom-space {
height: 20rpx;
}
/* 底部确认按钮 */
.confirm-bar {
position: fixed;
bottom: 0;
right: 0;
width: 50%;
height: 100rpx;
background: #fff;
padding-bottom: env(safe-area-inset-bottom);
z-index: 9999;
display: flex;
}
.confirm-btn {
width: 100%;
height: 100%;
border-radius: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 32rpx;
font-weight: 700;
color: #fff;
letter-spacing: 4rpx;
}
.confirm-btn--active {
background: #e02e24;
}
.confirm-btn--disabled {
background: #ccc;
}
.confirm-btn--hover {
opacity: 0.9;
transform: scale(0.98);
}