完善本地质量门禁与资金链路测试

This commit is contained in:
yml2213
2026-09-02 13:50:19 +08:00
parent dd2b45bd2c
commit 208f12ddb4
80 changed files with 12245 additions and 11541 deletions
@@ -823,778 +823,4 @@ watch([() => route.query.focus, order, loading], () => {
</section>
</template>
<style scoped>
.order-detail-page {
max-width: 1280px;
margin: 0 auto;
}
.page-header {
margin-bottom: 18px;
}
.page-header.centered {
max-width: 940px;
margin-right: auto;
margin-left: auto;
}
.header-top {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
}
.header-info {
flex: 1;
}
.header-info h1 {
margin: 4px 0 0;
font-size: 26px;
line-height: 1.25;
}
.order-meta {
color: #64748b;
margin: 6px 0 10px;
}
.content-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) 280px;
gap: 16px;
align-items: start;
}
.content-layout.centered {
grid-template-columns: minmax(0, 1fr);
max-width: 940px;
margin: 0 auto;
}
.main-content {
min-width: 0;
}
.action-sidebar {
position: sticky;
top: 16px;
display: flex;
flex-direction: column;
gap: 12px;
}
.sidebar-card {
display: flex;
flex-direction: column;
gap: 10px;
padding: 14px;
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 8px;
box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}
.sidebar-card.highlight-card {
background: #f8fbff;
border-color: #3b82f6;
}
.sidebar-title {
font-size: 14px;
font-weight: 700;
color: #1f2937;
margin: 0;
}
.sidebar-hint {
margin: 0;
font-size: 12px;
color: #64748b;
line-height: 1.45;
}
.sidebar-card .el-button {
width: 100%;
}
.support-dispute-icon {
display: grid;
flex: none;
width: 32px;
height: 32px;
place-items: center;
border-radius: 8px;
background: #fff1d6;
color: #d97706;
font-size: 18px;
}
.support-dispute-copy {
display: grid;
gap: 2px;
min-width: 0;
flex: 1;
}
.support-dispute-copy strong {
color: #1f2937;
font-size: 14px;
line-height: 1.3;
}
.support-dispute-copy span {
color: #7c5a16;
font-size: 12px;
line-height: 1.45;
}
.order-progress-section {
margin-bottom: 12px;
padding: 16px;
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 8px;
}
.detail-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 10px;
margin-bottom: 12px;
}
.metric-card {
display: flex;
flex-direction: column;
gap: 6px;
min-height: 86px;
padding: 14px;
border: 1px solid #e5e7eb;
border-radius: 8px;
background: #ffffff;
transition: all 0.2s;
}
.metric-card:hover {
border-color: #cbd5e1;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.metric-card.primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border: none;
color: #ffffff;
}
.metric-card.primary .metric-label {
color: rgba(255, 255, 255, 0.9);
}
.metric-card.primary .metric-value {
color: #ffffff;
}
.metric-card.highlight {
background: linear-gradient(135deg, #ff6a00 0%, #ee0979 100%);
border: none;
color: #ffffff;
}
.metric-card.highlight .metric-label {
color: rgba(255, 255, 255, 0.9);
}
.metric-card.highlight .metric-value {
color: #ffffff;
}
.metric-card.income {
background: #f0fdf4;
border-color: #bbf7d0;
}
.metric-card.income .metric-label {
color: #15803d;
}
.metric-card.income .metric-value {
color: #16a34a;
}
.metric-label {
font-size: 12px;
color: #64748b;
font-weight: 500;
}
.metric-value {
font-size: 20px;
font-weight: 700;
color: #1f2937;
line-height: 1.2;
}
.metric-value.amount {
color: #ff6a00;
}
.metric-note {
font-size: 12px;
color: #2563eb;
}
.info-section {
margin-bottom: 16px;
}
.info-card {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
padding: 14px 16px;
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 8px;
}
.info-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 0;
}
.info-label {
font-size: 13px;
color: #64748b;
font-weight: 500;
}
.info-value {
font-size: 13px;
color: #1f2937;
font-weight: 600;
text-align: right;
}
.action-card {
margin-top: 12px;
padding: 14px;
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 8px;
}
.action-card.warning {
background: #fffbeb;
border-color: #fde68a;
}
.action-message {
margin: 0 0 12px 0;
color: #1f2937;
font-size: 14px;
}
.action-buttons {
display: flex;
flex-wrap: wrap;
gap: 12px;
}
.section-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
}
.section-header.compact span {
color: #64748b;
font-size: 12px;
}
.section-header h2 {
font-size: 18px;
font-weight: 700;
color: #1f2937;
margin: 0;
}
.form-section {
margin-bottom: 20px;
}
.form-card {
display: grid;
gap: 12px;
padding: 16px;
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 8px;
}
.handoff-action-section {
margin-bottom: 14px;
}
.handoff-action-card {
display: grid;
grid-template-columns: minmax(0, 1fr) 160px;
gap: 12px;
align-items: stretch;
padding: 16px;
border: 1px solid #bfdbfe;
border-radius: 8px;
background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
}
.handoff-action-card .el-button {
height: 100%;
min-height: 96px;
}
.handoff-confirm-strip {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 14px;
padding: 16px;
border: 1px solid #bfdbfe;
border-radius: 8px;
background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
}
.handoff-confirm-strip div {
display: grid;
gap: 4px;
flex: 1;
min-width: 0;
}
.handoff-confirm-strip strong {
color: #1f2937;
font-size: 14px;
}
.handoff-confirm-strip span {
color: #475569;
font-size: 12px;
line-height: 1.45;
}
.secondary-actions {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 10px;
margin-top: 12px;
}
.secondary-action-card {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 14px;
border-radius: 8px;
}
.secondary-action-card > div {
display: grid;
gap: 2px;
min-width: 0;
flex: 1;
}
.secondary-action-card strong {
color: #1f2937;
font-size: 13px;
line-height: 1.3;
}
.secondary-action-card span {
color: #64748b;
font-size: 12px;
line-height: 1.45;
}
.secondary-action-card.danger {
border: 1px solid #fecaca;
background: #fff7f7;
}
.secondary-action-card.support {
border: 1px solid #f8d99b;
background: #fffaf0;
}
.form-hint {
margin: 0;
padding: 10px 12px;
background: #f8fafc;
border-left: 3px solid #3b82f6;
color: #475569;
font-size: 13px;
line-height: 1.5;
border-radius: 4px;
}
.section-divider {
display: flex;
align-items: center;
justify-content: center;
margin: 24px 0;
position: relative;
}
.section-divider::before,
.section-divider::after {
content: '';
flex: 1;
height: 1px;
background: #e5e7eb;
}
.section-divider span {
padding: 0 16px;
color: #9ca3af;
font-size: 14px;
font-weight: 500;
}
.section-divider-mini {
display: flex;
align-items: center;
justify-content: center;
margin: 8px 0;
position: relative;
}
.section-divider-mini::before,
.section-divider-mini::after {
content: '';
flex: 1;
height: 1px;
background: #e5e7eb;
}
.section-divider-mini span {
padding: 0 12px;
color: #9ca3af;
font-size: 12px;
font-weight: 500;
}
.sub-title {
font-size: 15px;
font-weight: 600;
color: #374151;
margin: 0 0 6px 0;
}
.form-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
gap: 12px;
}
.field-hint {
display: block;
margin-top: 6px;
color: #6b7280;
font-size: 12px;
}
.dispute-dialog-body {
display: grid;
gap: 12px;
}
.dispute-dialog-tip {
display: flex;
gap: 10px;
align-items: center;
padding: 10px 12px;
border: 1px solid #f8d99b;
border-radius: 8px;
background: #fffaf0;
}
.dispute-dialog-tip p {
margin: 0;
color: #7c5a16;
font-size: 13px;
line-height: 1.5;
}
.dispute-dialog-footer {
display: flex;
justify-content: flex-end;
gap: 10px;
}
.upload-line {
padding: 12px;
background: #f9fafb;
border: 1px dashed #cbd5e1;
border-radius: 6px;
}
.upload-line input[type='file'] {
width: 100%;
font-size: 14px;
}
:global(.dispute-dialog) {
border-radius: 12px;
}
:global(.dispute-dialog .el-dialog__body) {
padding: 14px 20px 8px;
}
:global(.dispute-dialog .el-dialog__footer) {
padding: 12px 20px 18px;
}
.pay-dialog-body {
display: grid;
gap: 20px;
}
.pay-way-tip {
margin: 0 0 16px 0;
color: #64748b;
font-size: 14px;
}
.pay-way-options {
display: grid;
gap: 12px;
}
.pay-way-option {
display: flex;
align-items: center;
gap: 16px;
padding: 16px 18px;
background: #ffffff;
border: 2px solid #e5e7eb;
border-radius: 12px;
cursor: pointer;
text-align: left;
transition: all 0.18s ease;
}
.pay-way-option:hover {
transform: translateY(-1px);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.pay-way-icon {
display: grid;
place-items: center;
width: 48px;
height: 48px;
border-radius: 12px;
color: #ffffff;
flex-shrink: 0;
}
.pay-way-option.wechat:hover {
border-color: #07c160;
}
.pay-way-option.wechat .pay-way-icon {
background: #07c160;
}
.pay-way-option.alipay:hover {
border-color: #1677ff;
}
.pay-way-option.alipay .pay-way-icon {
background: #1677ff;
}
.pay-way-text {
display: flex;
flex-direction: column;
gap: 3px;
}
.pay-way-text strong {
font-size: 16px;
font-weight: 600;
color: #1f2937;
}
.pay-way-text small {
font-size: 13px;
color: #94a3b8;
}
:global(.pay-way-dialog) {
border-radius: 16px;
}
:global(.pay-way-dialog .el-dialog__header) {
padding: 20px 24px 0;
}
:global(.pay-way-dialog .el-dialog__body) {
padding: 16px 24px 24px;
}
.pay-summary {
padding: 16px 20px;
background: #f8fafc;
border-radius: 8px;
}
.pay-summary-row {
display: flex;
align-items: center;
justify-content: space-between;
}
.pay-summary-row span {
color: #64748b;
font-size: 14px;
}
.pay-summary-row strong {
color: #111a44;
font-size: 28px;
font-weight: 700;
}
.pay-qr-section {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
padding: 24px;
background: #f8fafc;
border-radius: 12px;
}
.pay-qr-box {
width: 240px;
height: 240px;
display: grid;
place-items: center;
border: 1px solid #e2e8f0;
border-radius: 12px;
background: #ffffff;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.pay-qr-box img {
width: 220px;
height: 220px;
display: block;
}
.pay-instructions {
text-align: center;
}
.pay-instructions h3 {
margin: 0 0 8px 0;
color: #111a44;
font-size: 18px;
font-weight: 600;
}
.pay-instructions p {
margin: 0;
color: #64748b;
font-size: 14px;
line-height: 1.7;
}
.pay-hint {
margin: 0;
padding: 16px;
background: #f8fafc;
color: #64748b;
font-size: 14px;
text-align: center;
border-radius: 8px;
}
.pay-dialog-footer {
display: flex;
justify-content: center;
padding-top: 8px;
}
:global(.order-pay-dialog) {
border-radius: 16px;
}
:global(.order-pay-dialog .el-dialog__header) {
padding: 20px 24px;
border-bottom: 1px solid #e5e7eb;
}
:global(.order-pay-dialog .el-dialog__body) {
padding: 24px;
}
:global(.order-pay-dialog .el-dialog__footer) {
padding: 16px 24px;
border-top: 1px solid #e5e7eb;
}
@media (max-width: 768px) {
.content-layout {
grid-template-columns: 1fr;
}
.action-sidebar {
position: static;
order: -1;
}
.header-top {
flex-direction: column;
}
.detail-grid {
grid-template-columns: repeat(2, 1fr);
}
.form-grid {
grid-template-columns: 1fr;
}
.handoff-action-card,
.handoff-confirm-strip,
.secondary-action-card {
grid-template-columns: 1fr;
flex-direction: column;
align-items: stretch;
}
.handoff-action-card .el-button {
min-height: 40px;
}
.action-buttons {
flex-direction: column;
}
.action-buttons .el-button {
width: 100%;
}
.pay-qr-section {
padding: 16px;
}
}
</style>
<style scoped src="./OrderDetailView.css"></style>