241 lines
3.7 KiB
SCSS
241 lines
3.7 KiB
SCSS
.checkout-page {
|
|
padding: 0 24px 24px;
|
|
}
|
|
|
|
.back-btn {
|
|
font-size: 40px;
|
|
padding: 10px;
|
|
}
|
|
|
|
/* 画布展示区 */
|
|
.checkout-canvas {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 40px;
|
|
}
|
|
|
|
.canvas-area {
|
|
position: relative;
|
|
overflow: hidden;
|
|
background: rgba(0,0,0,0.03);
|
|
border: 2px dashed var(--line-star);
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.checkout-image {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
}
|
|
|
|
/* 商品信息 */
|
|
.checkout-info {
|
|
padding: 24px;
|
|
}
|
|
|
|
.info-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 20px 0;
|
|
border-bottom: 1px dashed rgba(0,0,0,0.06);
|
|
}
|
|
|
|
.info-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.info-label {
|
|
font-size: 28px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.info-value {
|
|
font-size: 28px;
|
|
color: var(--text-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.total-row {
|
|
padding-top: 24px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.info-total {
|
|
font-size: 40px;
|
|
font-weight: 800;
|
|
color: var(--accent-pink);
|
|
}
|
|
|
|
/* 地址卡片 */
|
|
.checkout-address-card {
|
|
padding: 24px;
|
|
}
|
|
|
|
.checkout-address-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.address-change {
|
|
padding: 6px 16px;
|
|
border-radius: 8px;
|
|
background: rgba(91, 140, 255, 0.08);
|
|
}
|
|
|
|
.change-text {
|
|
font-size: 24px;
|
|
color: var(--accent-blue);
|
|
}
|
|
|
|
.checkout-address-body {
|
|
padding-top: 8px;
|
|
}
|
|
|
|
.addr-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.addr-name {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.addr-phone {
|
|
font-size: 26px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.addr-detail {
|
|
font-size: 26px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.checkout-address-empty {
|
|
padding: 32px 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.empty-text {
|
|
font-size: 26px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* 底部弹窗 — 地址选择(样式复用 app.scss 全局定义,移除非必要覆写) */
|
|
|
|
.addr-picker-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.addr-picker-title {
|
|
font-size: 32px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.addr-picker-close {
|
|
font-size: 28px;
|
|
color: var(--text-secondary);
|
|
padding: 8px;
|
|
}
|
|
|
|
.addr-picker-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.addr-picker-item {
|
|
padding: 20px 16px;
|
|
border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.addr-picker-item.active {
|
|
background: rgba(91, 140, 255, 0.06);
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.addr-picker-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.addr-picker-name {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.addr-picker-phone {
|
|
font-size: 26px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.addr-picker-default {
|
|
font-size: 22px;
|
|
color: var(--accent-pink);
|
|
border: 1px solid var(--accent-pink);
|
|
padding: 2px 8px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.addr-picker-detail {
|
|
font-size: 26px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.addr-picker-empty {
|
|
padding: 40px;
|
|
text-align: center;
|
|
color: var(--text-secondary);
|
|
font-size: 28px;
|
|
}
|
|
|
|
.addr-picker-add {
|
|
margin-top: 16px;
|
|
padding: 20px;
|
|
text-align: center;
|
|
border: 2px dashed var(--accent-blue);
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.addr-picker-add-text {
|
|
font-size: 28px;
|
|
color: var(--accent-blue);
|
|
}
|
|
|
|
/* 底部操作 */
|
|
.checkout-actions {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: var(--bg-card);
|
|
border-top: var(--line-card);
|
|
padding: 20px 32px calc(20px + env(safe-area-inset-bottom));
|
|
display: flex;
|
|
gap: 24px;
|
|
z-index: 500;
|
|
}
|
|
|
|
.checkout-actions .btn-outline,
|
|
.checkout-actions .btn-gradient {
|
|
flex: 1;
|
|
text-align: center;
|
|
}
|