refactor: 拆分小程序 vue 结构

This commit is contained in:
2026-03-11 14:11:26 +08:00
commit b050c01a24
141 changed files with 24904 additions and 0 deletions

View File

@@ -0,0 +1,229 @@
@import '../../../../styles/variables';
.od-page {
min-height: 100vh;
padding: 14px 16px 100px;
display: flex;
flex-direction: column;
gap: 14px;
background: $bg;
}
.od-page__loading,
.od-page__empty {
background: $card;
border-radius: $r-lg;
box-shadow: $shadow-sm;
padding: 60px 20px;
text-align: center;
}
.od-page__loading-text,
.od-page__empty-title {
font-size: 15px;
font-weight: 600;
color: $text-2;
}
.od-page__status-hero {
background: linear-gradient(135deg, $primary 0%, $primary-dark 60%, $primary-darker 100%);
border-radius: $r-xl;
padding: 24px 22px 22px;
color: #fff;
position: relative;
overflow: hidden;
box-shadow: 0 4px 20px rgba(22, 163, 74, 0.2);
}
.od-page__status-deco1,
.od-page__status-deco2 {
position: absolute;
border-radius: 50%;
background: rgba(255, 255, 255, 0.06);
}
.od-page__status-deco1 {
top: -30px;
right: -30px;
width: 120px;
height: 120px;
}
.od-page__status-deco2 {
bottom: -20px;
left: 40%;
width: 80px;
height: 80px;
background: rgba(255, 255, 255, 0.04);
}
.od-page__status-row {
display: flex;
align-items: center;
gap: 14px;
position: relative;
z-index: 1;
}
.od-page__status-icon {
width: 52px;
height: 52px;
border-radius: 16px;
background: rgba(255, 255, 255, 0.18);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.od-page__status-icon-text {
font-size: 24px;
}
.od-page__status-text {
flex: 1;
}
.od-page__status-title {
font-size: 20px;
font-weight: 800;
line-height: 1.3;
letter-spacing: 0.3px;
}
.od-page__status-desc {
font-size: 13px;
opacity: 0.8;
margin-top: 4px;
line-height: 1.4;
}
.od-page__status-badge {
position: relative;
z-index: 1;
display: inline-flex;
align-items: center;
gap: 5px;
margin-top: 14px;
padding: 5px 12px;
border-radius: 20px;
background: rgba(255, 255, 255, 0.15);
font-size: 12px;
font-weight: 500;
color: rgba(255, 255, 255, 0.9);
}
.od-page__card {
background: $card;
border-radius: $r-xl;
box-shadow: $shadow-sm;
overflow: hidden;
}
.od-page__store {
padding: 16px 20px;
display: flex;
align-items: center;
gap: 12px;
}
.od-page__store-icon {
width: 40px;
height: 40px;
border-radius: $r-sm;
background: $primary-light;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
font-size: 18px;
}
.od-page__store-info {
flex: 1;
min-width: 0;
}
.od-page__store-name {
font-size: 15px;
font-weight: 700;
color: $text-1;
}
.od-page__store-addr {
font-size: 12px;
color: $text-4;
margin-top: 2px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.od-page__store-call {
width: 36px;
height: 36px;
border-radius: 50%;
border: 1.5px solid $border;
background: $card;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
font-size: 14px;
}
.od-page__fulfill {
padding: 16px 20px;
display: flex;
flex-direction: column;
gap: 10px;
}
.od-page__fulfill-row {
display: flex;
align-items: center;
}
.od-page__fulfill-label {
font-size: 13px;
color: $text-4;
width: 58px;
flex-shrink: 0;
}
.od-page__fulfill-value {
font-size: 14px;
color: $text-1;
font-weight: 600;
}
.od-page__table-badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 14px;
border-radius: $r-sm;
background: $primary-lighter;
font-size: 18px;
font-weight: 800;
color: $primary-dark;
}
.od-page__fulfill-hint {
display: flex;
align-items: center;
gap: 6px;
padding: 10px 14px;
background: $primary-lighter;
border-radius: $r-sm;
font-size: 12px;
color: $primary-dark;
font-weight: 500;
line-height: 1.4;
}
.od-page__fulfill-hint-text {
font-size: 12px;
color: $primary-dark;
font-weight: 500;
}

View File

@@ -0,0 +1,56 @@
@import '../../../../styles/variables';
.od-page__bottom-bar {
position: fixed;
left: 0;
right: 0;
bottom: 0;
background: $card;
border-top: 0.5px solid rgba(0, 0, 0, 0.06);
padding: 10px 20px 30px;
display: flex;
align-items: center;
gap: 10px;
z-index: 50;
}
.od-page__btn-outline,
.od-page__btn-primary,
.od-page__empty-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
}
.od-page__btn-outline,
.od-page__btn-primary {
flex: 1;
height: 44px;
border-radius: 22px;
font-size: 14px;
font-weight: 600;
}
.od-page__btn-outline {
border: 1.5px solid $border;
background: $card;
color: $text-2;
}
.od-page__btn-primary {
background: linear-gradient(135deg, $primary 0%, $primary-dark 100%);
box-shadow: 0 3px 12px rgba(22, 163, 74, 0.25);
color: #fff;
}
.od-page__empty-btn {
margin-top: 16px;
height: 38px;
padding: 0 24px;
border-radius: 19px;
background: $primary;
color: #fff;
font-size: 13px;
font-weight: 600;
}

View File

@@ -0,0 +1,124 @@
@import '../../../../styles/variables';
.od-page__goods-section {
padding: 18px 20px;
}
.od-page__goods-list {
display: flex;
flex-direction: column;
}
.od-page__good {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 12px 0;
border-bottom: 0.5px solid $border;
&:last-child { border-bottom: none; }
}
.od-page__good-img-placeholder {
width: 52px;
height: 52px;
border-radius: $r-sm;
background: $border;
flex-shrink: 0;
}
.od-page__good-info {
flex: 1;
min-width: 0;
}
.od-page__good-name {
font-size: 14px;
font-weight: 600;
color: $text-1;
}
.od-page__good-spec {
font-size: 12px;
color: $text-4;
margin-top: 2px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.od-page__good-right {
flex-shrink: 0;
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 2px;
}
.od-page__good-price {
font-size: 14px;
font-weight: 700;
color: $text-1;
}
.od-page__good-unit {
font-size: 11px;
}
.od-page__good-qty {
font-size: 12px;
color: $text-4;
}
.od-page__divider {
height: 0.5px;
background: $border;
margin: 0 20px;
}
.od-page__fees {
padding: 14px 20px;
}
.od-page__fee-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 3px 0;
&--total {
margin-top: 8px;
padding-top: 10px;
border-top: 0.5px solid $border;
}
}
.od-page__fee-label {
font-size: 13px;
color: $text-3;
.od-page__fee-row--total & {
font-size: 15px;
font-weight: 700;
color: $text-1;
}
}
.od-page__fee-value {
font-size: 13px;
color: $text-2;
font-weight: 500;
&--green { color: $primary; }
&--total {
font-size: 20px;
font-weight: 800;
color: $primary-dark;
}
}
.od-page__fee-unit {
font-size: 12px;
font-weight: 700;
}

View File

@@ -0,0 +1,4 @@
@import './base.scss';
@import './timeline.scss';
@import './goods.scss';
@import './bottom.scss';

View File

@@ -0,0 +1,148 @@
@import '../../../../styles/variables';
.od-page__timeline-section,
.od-page__info-section {
padding: 18px 20px 20px;
}
.od-page__section-title {
font-size: 15px;
font-weight: 700;
color: $text-1;
margin-bottom: 16px;
display: flex;
align-items: center;
gap: 8px;
}
.od-page__timeline {
position: relative;
padding-left: 28px;
&::before {
content: '';
position: absolute;
left: 9px;
top: 6px;
bottom: 6px;
width: 2px;
background: linear-gradient(180deg, $primary 0%, $primary-light 60%, $border 100%);
border-radius: 1px;
}
}
.od-page__tl-node {
position: relative;
padding-bottom: 20px;
&:last-child { padding-bottom: 0; }
}
.od-page__tl-dot {
position: absolute;
left: -28px;
top: 2px;
width: 20px;
height: 20px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
z-index: 2;
.od-page__tl-node--done & {
background: $primary;
box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}
.od-page__tl-node--current & {
background: $primary;
box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.15), 0 0 0 10px rgba(22, 163, 74, 0.06);
animation: pulse-dot 2s ease-in-out infinite;
}
.od-page__tl-node--pending & {
background: $card;
border: 2px solid $text-5;
}
}
.od-page__tl-check,
.od-page__tl-pulse {
color: #fff;
}
.od-page__tl-check {
font-size: 10px;
}
.od-page__tl-pulse {
font-size: 8px;
}
.od-page__tl-content {
display: flex;
flex-direction: column;
gap: 1px;
}
.od-page__tl-title {
font-size: 14px;
font-weight: 600;
color: $text-1;
line-height: 1.4;
.od-page__tl-node--pending & { color: $text-5; font-weight: 500; }
.od-page__tl-node--current & { color: $primary-dark; }
}
.od-page__tl-time {
font-size: 12px;
color: $text-4;
font-weight: 400;
.od-page__tl-node--pending & { color: $text-5; }
}
.od-page__tl-sub {
font-size: 12px;
color: $text-3;
margin-top: 2px;
line-height: 1.4;
.od-page__tl-node--current & { color: $primary; }
}
.od-page__info-rows {
display: flex;
flex-direction: column;
gap: 8px;
}
.od-page__info-row {
display: flex;
align-items: flex-start;
}
.od-page__info-label {
font-size: 13px;
color: $text-4;
width: 72px;
flex-shrink: 0;
}
.od-page__info-value {
font-size: 13px;
color: $text-2;
flex: 1;
word-break: break-all;
}
.od-page__info-remark {
font-size: 13px;
color: $text-2;
background: $bg;
padding: 8px 12px;
border-radius: $r-xs;
line-height: 1.5;
}