style: 更新多个页面为教育蓝主题,调整样式以提升视觉一致性

将多个页面的主题色从墨黑改为教育蓝,涉及的页面包括诊断、优化、渠道、采购、供应商、产品开发等。调整了按钮样式、任务头、步骤导航等元素,确保整体风格统一,优化用户体验。
fix/exam-question-access-material-excel-delete-draft
qinzhenpen 2 months ago
parent 19328ebd81
commit 8986dceb18

File diff suppressed because it is too large Load Diff

@ -348,15 +348,15 @@ onMounted(async () => { try { taskConfig.value = (await getTrainingTaskByKey(TAS
<style scoped lang="scss">
/* ===== 页面级令牌(墨黑极简主题) ===== */
.diagnosis-page {
--student-accent: #1f2937;
--student-accent-deep: #111827;
--student-accent-light: #4b5563;
--student-accent-soft: #f3f4f6;
--student-danger: #d9554c;
--student-success: #4a9d6e;
--student-layer-1: #374151;
--student-layer-2: #43a294;
--student-layer-3: #8b6fc0;
--student-accent: #2563eb;
--student-accent-deep: #1d4ed8;
--student-accent-light: #3b82f6;
--student-accent-soft: #eff6ff;
--student-danger: #ef4444;
--student-success: #2ba471;
--student-layer-1: #1d4ed8;
--student-layer-2: #3b82f6;
--student-layer-3: #93c5fd;
--student-panel-border: #e5e7eb;
--student-card-bg: #ffffff;
--student-panel-bg: #fafbfc;
@ -553,7 +553,7 @@ onMounted(async () => { try { taskConfig.value = (await getTrainingTaskByKey(TAS
min-height: 36px;
height: 36px;
padding: 0 14px;
border: 1px solid rgba(31, 41, 55, 0.4);
border: 1px solid rgba(37, 99, 235, 0.45);
border-radius: 8px;
color: var(--student-text);
background: #ffffff;
@ -569,7 +569,7 @@ onMounted(async () => { try { taskConfig.value = (await getTrainingTaskByKey(TAS
background: var(--student-accent-soft);
color: var(--student-accent);
transform: translateY(-1px);
box-shadow: 0 3px 10px rgba(31, 41, 55, 0.12);
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12);
}
}
@ -578,19 +578,19 @@ onMounted(async () => { try { taskConfig.value = (await getTrainingTaskByKey(TAS
color: #ffffff;
background: var(--student-accent);
font-weight: 700;
box-shadow: 0 3px 10px rgba(31, 41, 55, 0.28);
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
&:hover:not(:disabled) {
border-color: var(--student-accent-deep);
background: var(--student-accent-deep);
color: #ffffff;
transform: translateY(-1px);
box-shadow: 0 5px 14px rgba(17, 24, 39, 0.32);
box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32);
}
}
.table-button.ghost {
border-color: rgba(31, 41, 55, 0.3);
border-color: rgba(37, 99, 235, 0.45);
color: var(--student-text-secondary);
background: #ffffff;
font-weight: 600;
@ -1040,7 +1040,7 @@ button.is-disabled {
:deep(.el-input__wrapper.is-focus),
:deep(.el-textarea__inner:focus) {
box-shadow: 0 0 0 1px var(--student-accent) inset, 0 0 0 2px rgba(31, 41, 55, 0.15) !important;
box-shadow: 0 0 0 1px var(--student-accent) inset, 0 0 0 2px rgba(37, 99, 235, 0.15) !important;
}
}
@ -1166,36 +1166,36 @@ button.is-disabled {
.step-action { display: none !important; }
/* 未到达项 hover */
/* 未到达项 hover:教育蓝边浅底 */
&:hover:not(.active):not(.complete) {
border-color: #1f2937 !important;
background: #f9fafb !important;
color: #1f2937 !important;
.step-marker { background: #1f2937 !important; color: #ffffff !important; }
border-color: #2563eb !important;
background: #eff6ff !important;
color: #2563eb !important;
.step-marker { background: #2563eb !important; color: #ffffff !important; }
}
/* 已完成 */
/* 已完成:绿色编号徽章 */
&.complete:not(.active) {
border-color: #dce9e2 !important;
border-color: #e5e7eb !important;
color: #374151 !important;
.step-marker { background: rgba(74, 157, 110, 0.12) !important; color: #3f8a5f !important; }
.step-marker { background: rgba(43, 164, 113, 0.12) !important; color: #16915f !important; }
&:hover {
border-color: #4a9d6e !important;
background: #f9fafb !important;
.step-marker { background: #4a9d6e !important; color: #ffffff !important; }
border-color: #2ba471 !important;
background: #f0fdf6 !important;
.step-marker { background: #2ba471 !important; color: #ffffff !important; }
}
}
/* 当前步骤 */
/* 当前步骤:教育蓝实底 */
&.active {
border-color: #1f2937 !important;
background: #1f2937 !important;
border-color: #2563eb !important;
background: #2563eb !important;
color: #ffffff !important;
font-weight: 700 !important;
.step-marker { background: #ffffff !important; color: #1f2937 !important; }
.step-marker { background: #ffffff !important; color: #2563eb !important; }
&:hover {
background: #111827 !important;
border-color: #111827 !important;
background: #1d4ed8 !important;
border-color: #1d4ed8 !important;
}
}
}
@ -1225,9 +1225,9 @@ button.is-disabled {
min-height: 36px;
height: 36px;
padding: 0 14px;
border: 1px solid #d1d5db;
border: 1px solid rgba(37, 99, 235, 0.45);
border-radius: 8px;
color: #374151;
color: #2563eb;
background: #ffffff;
box-shadow: none;
text-shadow: none;
@ -1241,30 +1241,30 @@ button.is-disabled {
}
&:hover, &:focus {
border-color: #1f2937;
color: #1f2937;
background: #f9fafb;
box-shadow: 0 2px 6px rgba(17, 24, 39, 0.1);
border-color: #2563eb;
color: #2563eb;
background: #eff6ff;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}
}
.diagnosis-page .task-toolbar-button--submit.el-button {
border-color: #1f2937;
border-color: #2563eb;
color: #ffffff;
background: #1f2937;
box-shadow: 0 2px 8px rgba(17, 24, 39, 0.22);
background: #2563eb;
box-shadow: 0 1px 2px rgba(37, 99, 235, 0.35), 0 3px 10px rgba(37, 99, 235, 0.22);
&:hover, &:focus {
border-color: #111827;
border-color: #1d4ed8;
color: #ffffff;
background: #111827;
box-shadow: 0 4px 12px rgba(17, 24, 39, 0.28);
background: #1d4ed8;
box-shadow: 0 2px 4px rgba(37, 99, 235, 0.4), 0 5px 14px rgba(29, 78, 216, 0.28);
}
}
.diagnosis-page .task-toolbar-button.el-button.is-loading {
border-color: #d1d5db;
color: #374151;
border-color: rgba(37, 99, 235, 0.45);
color: #2563eb;
background: #ffffff;
}
</style>

@ -410,15 +410,15 @@ onMounted(async () => {
<style scoped lang="scss">
/* ===== 页面级令牌(墨黑极简主题) ===== */
.optimization-page {
--student-accent: #1f2937;
--student-accent-deep: #111827;
--student-accent-light: #4b5563;
--student-accent-soft: #f3f4f6;
--student-danger: #d9554c;
--student-success: #4a9d6e;
--student-layer-1: #374151;
--student-layer-2: #43a294;
--student-layer-3: #8b6fc0;
--student-accent: #2563eb;
--student-accent-deep: #1d4ed8;
--student-accent-light: #3b82f6;
--student-accent-soft: #eff6ff;
--student-danger: #ef4444;
--student-success: #2ba471;
--student-layer-1: #1d4ed8;
--student-layer-2: #3b82f6;
--student-layer-3: #93c5fd;
--student-panel-border: #e5e7eb;
--student-card-bg: #ffffff;
--student-panel-bg: #fafbfc;
@ -589,7 +589,7 @@ onMounted(async () => {
min-height: 36px;
height: 36px;
padding: 0 14px;
border: 1px solid rgba(31, 41, 55, 0.4);
border: 1px solid rgba(37, 99, 235, 0.45);
border-radius: 8px;
color: var(--student-text);
background: #ffffff;
@ -610,7 +610,7 @@ onMounted(async () => {
background: var(--student-accent-soft);
color: var(--student-accent);
transform: translateY(-1px);
box-shadow: 0 3px 10px rgba(31, 41, 55, 0.12);
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12);
}
.outline-action:disabled,
@ -629,14 +629,14 @@ button:disabled {
border-color: var(--student-accent);
color: #ffffff;
background: var(--student-accent);
box-shadow: 0 3px 10px rgba(31, 41, 55, 0.28);
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
}
.action-button--primary:hover:not(:disabled),
.nav-button--primary:hover:not(:disabled) {
border-color: var(--student-accent-deep);
background: var(--student-accent-deep);
box-shadow: 0 5px 14px rgba(17, 24, 39, 0.32);
box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32);
}
/* 保存按钮(浅灰底) */
@ -815,13 +815,13 @@ button:disabled {
background: var(--student-accent);
font-size: var(--student-fs-button);
font-weight: 700;
box-shadow: 0 3px 10px rgba(31, 41, 55, 0.28);
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
}
.training-actions :deep(.training-action:hover) {
border-color: var(--student-accent-deep);
background: var(--student-accent-deep);
box-shadow: 0 5px 14px rgba(17, 24, 39, 0.32);
box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32);
}
/* ===== Pareto 上传 ===== */
@ -1065,7 +1065,7 @@ button:disabled {
}
:deep(.el-input__wrapper.is-focus) {
box-shadow: 0 0 0 2px rgba(31, 41, 55, 0.2) inset;
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2) inset;
}
:deep(.el-input__inner) {
@ -1171,36 +1171,36 @@ button:disabled {
transition: background-color 0.16s ease, color 0.16s ease !important;
}
/* 未到达项 hover */
/* 未到达项 hover:教育蓝边浅底,编号徽章转教育蓝 */
&:hover:not(.active):not(.complete) {
border-color: #1f2937 !important;
background: #f9fafb !important;
color: #1f2937 !important;
span { background: #1f2937 !important; color: #ffffff !important; }
border-color: #2563eb !important;
background: #eff6ff !important;
color: #2563eb !important;
span { background: #2563eb !important; color: #ffffff !important; }
}
/* 已完成 */
/* 已完成:绿色编号徽章 */
&.complete:not(.active) {
border-color: #dce9e2 !important;
border-color: #e5e7eb !important;
color: #374151 !important;
span { background: rgba(74, 157, 110, 0.12) !important; color: #3f8a5f !important; }
span { background: rgba(43, 164, 113, 0.12) !important; color: #16915f !important; }
&:hover {
border-color: #4a9d6e !important;
background: #f9fafb !important;
span { background: #4a9d6e !important; color: #ffffff !important; }
border-color: #2ba471 !important;
background: #f0fdf6 !important;
span { background: #2ba471 !important; color: #ffffff !important; }
}
}
/* 当前步骤 */
/* 当前步骤:教育蓝实底 */
&.active {
border-color: #1f2937 !important;
background: #1f2937 !important;
border-color: #2563eb !important;
background: #2563eb !important;
color: #ffffff !important;
font-weight: 700 !important;
span { background: #ffffff !important; color: #1f2937 !important; }
span { background: #ffffff !important; color: #2563eb !important; }
&:hover {
background: #111827 !important;
border-color: #111827 !important;
background: #1d4ed8 !important;
border-color: #1d4ed8 !important;
}
}
}

@ -3,7 +3,10 @@
<main class="training-core">
<section class="task-header">
<div class="task-head-main">
<div class="task-head-top">
<span class="task-badge"><el-icon><TrendCharts /></el-icon> 产品开发与测试验证</span>
<span class="task-status">进行中 · Step {{ String(activeStep).padStart(2, "0") }}</span>
</div>
<h1 class="task-title">{{ taskTitle }}</h1>
<p class="task-brief">
<span class="task-brief-text">{{ taskBackground }}</span>
@ -829,21 +832,40 @@ onMounted(async () => {
</script>
<style lang="scss" scoped>
/* ============================================================
* 教育蓝极简 · 采购需求预测页面
* ============================================================ */
.channel {
--student-accent: #1f2937;
--student-accent-deep: #111827;
--student-accent-light: #4b5563;
--student-accent-soft: #f3f4f6;
--student-danger: #d9554c;
--student-success: #4a9d6e;
--student-layer-1: #374151;
--student-layer-2: #43a294;
--student-layer-3: #8b6fc0;
/* 主色:教育蓝 */
--student-accent: #2563eb;
--student-accent-deep: #1d4ed8;
--student-accent-light: #3b82f6;
--student-accent-soft: #eff6ff;
/* 语义色 */
--student-danger: #ef4444;
--student-success: #2ba471;
/* 三层次标识 */
--student-layer-1: #1d4ed8;
--student-layer-2: #3b82f6;
--student-layer-3: #93c5fd;
/* 结构色 */
--student-panel-border: #e5e7eb;
--student-card-bg: #ffffff;
--student-panel-bg: #fafbfc;
--student-text: #1f2937;
--student-text-secondary: #6b7280;
/* Element Plus 主色 */
--el-color-primary: #2563eb;
--el-color-primary-light-3: #60a5fa;
--el-color-primary-light-5: #93c5fd;
--el-color-primary-light-7: #bfdbfe;
--el-color-primary-light-8: #dbeafe;
--el-color-primary-light-9: #eff6ff;
--el-color-primary-dark-2: #1d4ed8;
--el-input-hover-border-color: #3b82f6;
--el-input-focus-border-color: #2563eb;
--el-input-focus-ring-color: rgba(59, 130, 246, 0.15);
/* 紧凑字号梯度 */
--student-fs-display: 17px;
--student-fs-h1: 15px;
--student-fs-h2: 14px;
@ -851,24 +873,19 @@ onMounted(async () => {
--student-fs-body: 13px;
--student-fs-body-sm: 12px;
--student-fs-caption: 11px;
--student-fs-button: 13px;
--student-fs-button-lg: 13px;
--student-fs-data: 14px;
min-height: calc(100vh - 84px);
padding: 0 0 32px;
min-width: 0;
color: var(--student-text);
background: var(--student-panel-bg);
:deep(.training-step-area) {
margin-top: 0 !important;
border-color: var(--student-panel-border) !important;
background: var(--student-panel-bg) !important;
box-shadow: inset 0 1px 0 rgba(31, 41, 55, 0.06), 0 12px 28px rgba(0, 0, 0, 0.06) !important;
}
background: var(--student-card-bg);
:deep(.el-table) {
--el-table-border-color: var(--student-panel-border);
--el-table-header-bg-color: #fafbfc;
--el-table-header-text-color: var(--student-text);
--el-table-row-hover-bg-color: rgba(31, 41, 55, 0.05);
--el-table-row-hover-bg-color: rgba(59, 130, 246, 0.05);
--el-table-bg-color: transparent;
--el-table-tr-bg-color: transparent;
--el-table-text-color: var(--student-text);
@ -879,27 +896,12 @@ onMounted(async () => {
background: var(--student-card-bg);
}
:deep(.el-table::before),
:deep(.el-table__inner-wrapper::before) {
background-color: transparent;
}
:deep(.el-table th.el-table__cell) {
color: var(--student-text) !important;
background: #fafbfc !important;
font-weight: 800;
}
:deep(.el-table td.el-table__cell),
:deep(.el-table tr) {
color: var(--student-text) !important;
background: transparent !important;
}
:deep(.el-table .cell) {
line-height: 1.65;
}
:deep(.el-input__wrapper) {
min-height: 36px;
border: 1px solid var(--student-panel-border);
@ -918,7 +920,7 @@ onMounted(async () => {
:deep(.el-input__wrapper.is-focus) {
border-color: var(--student-accent);
box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.08) !important;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}
:deep(.el-button:not(.material-button)) {
@ -928,9 +930,9 @@ onMounted(async () => {
}
:deep(.el-button:not(.material-button):hover) {
border-color: var(--student-accent-light) !important;
border-color: var(--student-accent-deep) !important;
color: #ffffff !important;
background: var(--student-accent-light) !important;
background: var(--student-accent-deep) !important;
}
.online {
@ -971,9 +973,12 @@ onMounted(async () => {
.channel {
display: grid; gap: 24px; min-height: calc(100vh - 76px); padding: 24px 24px 32px; color: var(--student-text); background: var(--student-card-bg);
.training-core { min-width: 0; padding: 28px; border: 1px solid var(--student-panel-border); border-radius: 36px; background: var(--student-card-bg); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.task-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0; padding: 16px; border: 1px solid var(--student-panel-border); border-radius: 16px; background: var(--student-card-bg); }
.task-header { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0; padding: 18px 20px 18px 24px; border: 1px solid var(--student-panel-border); border-radius: 12px; background: var(--student-card-bg); overflow: hidden; &::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: var(--student-accent); } }
.task-head-main { display: grid; justify-items: start; gap: 8px; min-width: 0; flex: 1 1 auto; }
.task-head-top { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; margin-bottom: 8px; }
.task-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border: 1px solid var(--student-panel-border); border-radius: 999px; color: var(--student-accent-deep); background: var(--student-accent-soft); font-size: 12px; font-weight: 700; }
.task-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; color: var(--student-text-secondary); background: #f3f4f6; font-family: var(--student-font-data); font-size: var(--student-fs-caption); font-weight: 600; white-space: nowrap; &::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--student-accent-light); animation: pulse 1.8s ease-in-out infinite; } }
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.task-title { margin: 0; color: var(--student-text); font-size: var(--student-fs-display); font-weight: 700; line-height: 1.35; }
.task-brief { margin: 0; color: var(--student-text-secondary); font-size: 12px; line-height: 1.6; }
.task-brief-text { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
@ -1300,20 +1305,412 @@ onMounted(async () => {
</style>
<style lang="scss">
/* ============================================================
* 教育蓝极简换肤 · channel/index.vue
* ============================================================ */
/* 画布背景 */
#app .studentLayout .app-main:has(.channel) {
background: #ffffff !important;
}
/* el-table 基础换肤 */
:has(.channel) {
.el-table {
--el-table-bg-color: #ffffff !important;
--el-table-tr-bg-color: transparent !important;
--el-table-header-bg-color: #fafbfc !important;
--el-table-row-hover-bg-color: rgba(31, 41, 55, 0.04) !important;
--el-table-row-hover-bg-color: rgba(37, 99, 235, 0.04) !important;
line-height: 1.55;
}
}
/* ============================================================
* 步骤导航:分段连接胶囊(教育蓝极简)
* ============================================================ */
#app .studentLayout .app-main:has(.channel) .step-indicator {
display: flex !important;
flex-wrap: nowrap !important;
align-items: stretch !important;
justify-content: center !important;
gap: 0 !important;
width: 100% !important;
margin: 0 0 20px !important;
padding: 0 !important;
border: none !important;
border-radius: 0 !important;
background: transparent !important;
box-shadow: none !important;
.step-indicator {
button,
.step-tab {
transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
flex: 1 1 0 !important;
max-width: 240px !important;
display: flex !important;
flex-direction: row !important;
align-items: center !important;
justify-content: center !important;
gap: 8px !important;
min-width: 0 !important;
height: auto !important;
min-height: 40px !important;
margin: 0 !important;
padding: 8px 14px !important;
border: 1px solid #e5e7eb !important;
border-right: none !important;
border-radius: 0 !important;
background: #ffffff !important;
box-shadow: none !important;
color: #6b7280 !important;
font-size: 13px !important;
font-weight: 600 !important;
line-height: 1.3 !important;
white-space: normal !important;
text-align: center !important;
cursor: pointer;
transition: all 0.16s ease !important;
&:first-child {
border-radius: 8px 0 0 8px !important;
}
&:last-child {
border-radius: 0 8px 8px 0 !important;
border-right: 1px solid #e5e7eb !important;
}
.step-bar {
display: none !important;
}
.step-no,
.step-marker {
position: static !important;
flex: 0 0 auto !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
min-width: 22px !important;
height: 22px !important;
padding: 0 5px !important;
border-radius: 6px !important;
background: #f3f4f6 !important;
color: #6b7280 !important;
font-family: var(--student-font-data), ui-monospace, "SF Mono", Consolas, monospace !important;
font-size: 12px !important;
font-weight: 700 !important;
line-height: 1 !important;
transition: all 0.16s ease !important;
&::after {
display: none !important;
}
}
.step-name {
color: inherit !important;
}
.step-copy {
margin-left: 0 !important;
gap: 4px !important;
}
&:hover:not(.active):not(.complete) {
border-color: #2563eb !important;
background: #eff6ff !important;
color: #2563eb !important;
z-index: 1 !important;
.step-no,
.step-marker {
background: #2563eb !important;
color: #ffffff !important;
}
}
&.complete:not(.active) {
border-color: #e5e7eb !important;
color: #374151 !important;
.step-no,
.step-marker {
background: rgba(43, 164, 113, 0.12) !important;
color: #16915f !important;
}
&:hover {
border-color: #2ba471 !important;
background: #f0fdf6 !important;
z-index: 1 !important;
.step-no,
.step-marker {
background: #2ba471 !important;
color: #ffffff !important;
}
}
}
&.active {
border-color: #2563eb !important;
background: #2563eb !important;
color: #ffffff !important;
font-weight: 700 !important;
z-index: 2 !important;
.step-no,
.step-marker {
background: #ffffff !important;
color: #2563eb !important;
}
&:hover {
background: #1d4ed8 !important;
border-color: #1d4ed8 !important;
}
}
}
.step-connector {
display: none !important;
}
}
/* ============================================================
* 共用组件换肤:TrainingMaterialButton 资料按钮
* ============================================================ */
.channel .workbench-actions .material-button.el-button {
height: 36px !important;
min-height: 36px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 8px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 600 !important;
transition:
border-color 0.16s ease,
background 0.16s ease,
color 0.16s ease,
box-shadow 0.16s ease !important;
&:hover {
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
}
&.is-plain {
border-color: #e5e7eb !important;
color: #9ca3af !important;
&:hover {
border-color: #e5e7eb !important;
color: #9ca3af !important;
background: #ffffff !important;
box-shadow: none !important;
}
}
}
/* ============================================================
* 顶部导出按钮(outline-action)
* ============================================================ */
.channel .workbench-actions > button.outline-action {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 6px !important;
height: 36px !important;
min-height: 36px !important;
padding: 0 14px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 8px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 600 !important;
line-height: 1 !important;
transition:
border-color 0.16s ease,
background 0.16s ease,
color 0.16s ease,
box-shadow 0.16s ease !important;
&:hover {
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
transform: none !important;
}
}
/* ============================================================
* 底部步骤按钮(task-actions > button)
* ============================================================ */
.channel .task-actions {
gap: 14px !important;
margin-top: 20px !important;
}
.channel .task-actions > button {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 8px !important;
height: 40px !important;
min-height: 40px !important;
padding: 0 18px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 10px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 700 !important;
line-height: 1 !important;
transition:
transform 0.16s ease,
border-color 0.16s ease,
background 0.16s ease,
box-shadow 0.16s ease !important;
}
.channel .task-actions > button:hover:not(:disabled) {
transform: translateY(-1px) !important;
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12) !important;
}
/* 主按钮(btn-primary / btn-submit) */
.channel .task-actions > button.btn-primary,
.channel .task-actions > button.btn-submit {
border-color: #2563eb !important;
color: #ffffff !important;
background: #2563eb !important;
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28) !important;
}
.channel .task-actions > button.btn-primary:hover:not(:disabled),
.channel .task-actions > button.btn-submit:hover:not(:disabled) {
border-color: #1d4ed8 !important;
color: #ffffff !important;
background: #1d4ed8 !important;
box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32) !important;
}
/* ============================================================
* 步骤导航按钮(step-navigation)
* ============================================================ */
.channel .step-navigation {
display: flex !important;
flex-wrap: wrap !important;
justify-content: center !important;
align-items: center !important;
gap: 14px !important;
margin-top: 20px !important;
}
.channel .step-navigation .btn-nav {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 8px !important;
height: 40px !important;
min-height: 40px !important;
padding: 0 18px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 10px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 700 !important;
transition:
transform 0.16s ease,
border-color 0.16s ease,
background 0.16s ease,
box-shadow 0.16s ease !important;
}
.channel .step-navigation .btn-nav:hover:not(:disabled) {
transform: translateY(-1px) !important;
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12) !important;
}
.channel .step-navigation .btn-nav.btn-primary {
border-color: #2563eb !important;
color: #ffffff !important;
background: #2563eb !important;
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28) !important;
}
.channel .step-navigation .btn-nav.btn-primary:hover:not(:disabled) {
border-color: #1d4ed8 !important;
background: #1d4ed8 !important;
box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32) !important;
}
.channel .step-navigation .btn-nav.btn-save {
border: 1px solid #e5e7eb !important;
background: #f3f4f6 !important;
color: #374151 !important;
}
/* ============================================================
* 顶部任务工具栏(el-button)
* ============================================================ */
.channel .task-toolbar-button.el-button {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 6px !important;
min-height: 34px !important;
height: 34px !important;
padding: 0 12px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 8px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 600 !important;
transition:
border-color 0.16s ease,
background 0.16s ease,
color 0.16s ease,
box-shadow 0.16s ease !important;
&:hover:not(.is-disabled) {
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
transform: translateY(-1px) !important;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
}
}
.channel .task-toolbar-button--submit {
border-color: #2563eb !important;
background: #2563eb !important;
color: #ffffff !important;
box-shadow:
0 1px 2px rgba(37, 99, 235, 0.35),
0 3px 10px rgba(37, 99, 235, 0.22) !important;
&:hover:not(.is-disabled) {
background: #1d4ed8 !important;
box-shadow:
0 2px 4px rgba(37, 99, 235, 0.4),
0 5px 14px rgba(29, 78, 216, 0.28) !important;
}
}
/* ============================================================
* 窄屏:横向滑动
* ============================================================ */
@media (max-width: 900px) {
#app .studentLayout .app-main:has(.channel) .step-indicator {
justify-content: flex-start !important;
overflow-x: auto !important;
}
#app .studentLayout .app-main:has(.channel) .step-indicator .step-tab {
flex: 0 0 140px !important;
max-width: none !important;
}
}
</style>

@ -7,186 +7,148 @@
* @Description: 卡拉杰克模型分析页面,展示采购品类矩阵
-->
<template>
<div class="purchase app-container student-training-shell legacy-training-page">
<TrainingIntro title="卡拉杰克模型">
<template #background>
<p>
采购定位在电商企业中具有极其重要的战略意义。它决定了企业将要采购哪些商品、从哪些供应商采购以及采购的数量和价格等关键要素。一个准确的采购定位能够确保企业采购到符合市场需求、具有竞争力的商品,从而提高企业的市场竞争力。
<br />
<br />
采购定位的关键因素
<br />
‌目标市场与消费群体‌:
<br />
企业需要明确自己的目标市场和消费群体,了解他们的需求、偏好和消费能力。
<br />
根据目标市场和消费群体的特点,选择适合的商品类型和品牌。
<br />
‌商品品类与差异化特点‌:
<br />
企业需要确定采购的商品品类,考虑这些品类在市场上的竞争情况和潜在增长机会。
<br />
强调商品的差异化特点,如功能、设计、价格、质量等,以便与竞争对手区分开来。
<br />
‌供应商选择与合作关系‌:
<br />
选择信誉良好、实力雄厚的供应商,确保商品的品质和供应的稳定性。
<br />
<div class="purchase-page student-training-shell">
<main class="purchase-core">
<section class="task-header">
<div class="task-head-main">
<div class="task-head-top">
<span class="task-badge"><el-icon><Goods /></el-icon> 核心实训 · 采购需求预测</span>
<span class="task-status">进行中 · Step 01</span>
</div>
<h1 class="task-title">卡拉杰克模型分析</h1>
<p class="task-brief">
<span class="task-brief-text">采购定位在电商企业中具有极其重要的战略意义。使用卡拉杰克模型,根据生鲜电商平台运营模式及主要品类,分析采购产品定位,给出品类采购管理措施。</span>
<button type="button" class="task-brief-toggle" @click="briefOpen = !briefOpen">
{{ briefOpen ? "收起" : "展开目标与要求" }}
</button>
<span v-if="briefOpen" class="task-brief-more">
<b>实训目标</b>
<ul>
<li>掌握卡拉杰克模型的四个象限分类</li>
<li>能够根据案例背景进行商品分类矩阵构建</li>
<li>给出差异化采购策略实施建议</li>
</ul>
<b>实训要求</b>
<p>请根据案例背景信息利用卡拉杰克模型进行该生鲜电商平台的商品分类矩阵构建。</p>
</span>
</p>
</div>
</section>
与供应商建立长期稳定的合作关系,实现互利共赢。
<br />
<section class="purchase-workbench">
<div class="workbench-head">
<div>
<p class="section-eyebrow">Kraljic Matrix Analysis</p>
<h2>卡拉杰克模型分析</h2>
</div>
</div>
‌成本效益分析‌:
<br />
<p class="step-intro">
卡拉杰克模型是由彼得·卡拉杰克于1983年提出的一种采购管理工具,旨在帮助企业更好地管理供应链和采购策略。该模型从供应风险和利润影响两个维度出发,把物品分为四个象限:
</p>
考虑采购成本和效益的平衡,确保采购的商品具有合理的性价比。
<br />
<div class="kraljic-legend">
<div class="legend-item">
<span class="legend-color" style="background: #90EE90"></span>
<div><strong>战略物品</strong>:高供应风险和高利润影响,通常具有技术专利或高技术含量</div>
</div>
<div class="legend-item">
<span class="legend-color" style="background: #FFA500"></span>
<div><strong>杠杆物品</strong>:低供应风险和高利润影响,市场上供应商众多</div>
</div>
<div class="legend-item">
<span class="legend-color" style="background: #ADD8E6"></span>
<div><strong>瓶颈物品</strong>:高供应风险和低利润影响,由特定的少数供应商提供</div>
</div>
<div class="legend-item">
<span class="legend-color" style="background: #98FB98"></span>
<div><strong>一般物品</strong>:低供应风险和低利润影响,多为日常消耗品</div>
</div>
</div>
通过谈判、招标等方式争取最优惠的采购价格和服务条件。
</p>
</template>
<template #goal>
<p>
使用卡拉杰克模型,根据生鲜电商平台运营模式及主要品类,分析采购产品定位,给出品类采购管理措施。
</p>
</template>
</TrainingIntro>
<div class="training-step-area">
<p style="font-size: 16px">卡拉杰克模型是由彼得·卡拉杰克于1983年提出的一种采购管理工具,旨在帮助企业更好地管理供应链和采购策略。该模型从供应风险和利润影响两个维度出发,把物品分为四个象限:战略物品、杠杆物品、瓶颈物品和一般物品。</p>
<p>
战略物品:高供应风险和高利润影响。这些物品通常具有技术专利或高技术含量,对企业战略实现具有重要影响力。
<br />
杠杆物品:低供应风险和高利润影响。这些物品市场上供应商众多,标准化程度高,能够为企业降低成本。
<br />
瓶颈物品:高供应风险和低利润影响。这些物品通常由特定的少数供应商提供,存在供应垄断和运输风险。
<br />
一般物品:低供应风险和低利润影响。这些物品多为日常消耗品,市场上供应商众多,采购工作较为简单。
<br />
</p>
<img src="@/assets/images/u1933.jpg" alt="" style="width: 477px; height: 392px" />
<div class="caseBacktitle">
<img src="@/assets/images/步骤.png" alt="" />
<span>实验实训</span>
<div class="case-section">
<h3>案例背景:「优鲜到家」社区化生鲜零售平台</h3>
<p>成立于2023年的「优鲜到家」定位为社区化生鲜零售平台,聚焦一二线城市中高端家庭消费群体,覆盖水果、蔬菜、肉类、水产、乳制品、预制菜六大核心品类。平台采用「前置仓+社区团长」双轨运营模式,目前已布局全国15个城市,日均订单量突破30万单,SKU超2000个。</p>
</div>
<p>成立于2023年的「优鲜到家」定位为‌社区化生鲜零售平台‌,聚焦一二线城市中高端家庭消费群体,覆盖水果、蔬菜、肉类、水产、乳制品、预制菜六大核心品类‌14。平台采用「‌前置仓+社区团长‌」双轨运营模式,目前已布局全国15个城市,日均订单量突破30万单,SKU超2000个,其中60%为产地直采商品‌。</p>
<p>商品品类与供应链:</p>
<el-table
:data="tableData"
border
style="width: 80%"
:header-cell-style="{
color: '#fff',
fontSize: '14px',
backgroundColor: '#1e88e5!important',
}"
>
<div class="table-panel">
<h4>商品品类与供应链</h4>
<div class="table-wrap">
<el-table :data="tableData" border>
<el-table-column prop="category" label="品类" align="center"></el-table-column>
<el-table-column prop="featuredProduct" label="特色商品" align="center"></el-table-column>
<el-table-column prop="procurementMode" label="采购模式" align="center"></el-table-column>
</el-table>
<p>
三、核心运营模式‌
<br />
‌1.仓储物流体系‌
<br />
建立‌三级仓储网络‌:
<br />
▶ 产地仓(云南、山东等6大农业产区)负责分拣初加工‌
<br />
▶ 城市中心仓(每省1-2个)实现跨区域调拨‌
<br />
▶ 社区前置仓(半径3公里)支持30分钟达服务‌
<br />
投入‌AI分拣机器人‌,分拣效率达6000件/小时,损耗率降至0.8%‌
<br />
‌2.社区化销售网络‌
<br />
发展‌团长合伙人‌制度:
<br />
▶ 招募社区宝妈、便利店店主作为团长,提供15%销售分成‌
<br />
▶ 开发「团长作战室」系统,实时显示商品动销数据与佣金收益‌
<br />
推行「‌拼团预售+到店自提‌」模式:
<br />
▶ 爆款商品提前24小时发起拼团,满20单触发产地直发‌
<br />
▶ 在社区驿站设置智能冷柜,支持人脸识别取货‌
<br />
</p>
<p>请根据案例背景信息利用卡拉杰克模型进行该生鲜电商平台的商品分类矩阵构建。</p>
<el-table
:data="procurementCategoryData"
border
style="width: 80%"
:header-cell-style="{
color: '#fff',
fontSize: '14px',
backgroundColor: '#1e88e5!important',
}"
>
<el-table-column prop="categoryType" label="品类分类‌" align="center"></el-table-column>
<el-table-column prop="value" label="典型采购品项‌" align="center">
</div>
</div>
<div class="case-section">
<h3>核心运营模式</h3>
<div class="operation-mode">
<h4>1. 仓储物流体系</h4>
<p>建立三级仓储网络:产地仓(云南、山东等6大农业产区)负责分拣初加工;城市中心仓(每省1-2个)实现跨区域调拨;社区前置仓(半径3公里)支持30分钟达服务。投入AI分拣机器人,分拣效率达6000件/小时,损耗率降至0.8%。</p>
<h4>2. 社区化销售网络</h4>
<p>发展团长合伙人制度,招募社区宝妈、便利店店主作为团长,提供15%销售分成。推行「拼团预售+到店自提」模式,爆款商品提前24小时发起拼团,满20单触发产地直发。</p>
</div>
</div>
<div class="task-section">
<h3>实训任务:卡拉杰克模型分类矩阵</h3>
<p>请根据案例背景信息选择各品类的定位类型:</p>
<div class="table-wrap">
<el-table :data="procurementCategoryData" border>
<el-table-column prop="categoryType" label="品类分类" align="center" width="120"></el-table-column>
<el-table-column prop="value" label="典型采购品项" align="center">
<template #default="scope">
<el-select v-model="scope.row.value" placeholder="" @change="handleChange(scope.row.value, scope.$index)">
<el-select v-model="scope.row.value" placeholder="请选择" @change="handleChange(scope.row.value, scope.$index)">
<el-option v-for="item in options" :key="item.label" :label="item.label" :value="item.label" />
</el-select>
</template>
</el-table-column>
<el-table-column prop="longitudinalAxis" label="‌核心特征‌" align="center"></el-table-column>
<el-table-column prop="basedOn" label="‌模型定位依据‌" align="center"></el-table-column>
<el-table-column prop="longitudinalAxis" label="核心特征" align="center"></el-table-column>
<el-table-column prop="basedOn" label="模型定位依据" align="center"></el-table-column>
</el-table>
<el-button type="primary" @click="handleClick" style="margin-top: 20px">生成可视化图形</el-button>
<div class="main" ref="mainref" style="width: 80%; height: 400px" v-if="showChat"></div>
<p>请简要分析差异化采购策略实施:</p>
<el-table
:data="list"
border
style="width: 80%"
:header-cell-style="{
color: '#fff',
fontSize: '14px',
backgroundColor: '#1e88e5!important',
}"
>
<el-table-column prop="classification" label="品类分类‌" align="center" width="120"></el-table-column>
<el-table-column prop="value" label="管理措施" align="center" style="height: 40px">
</div>
<div class="task-actions">
<button type="button" class="outline-action" @click="handleClick"><el-icon><DataLine /></el-icon>生成可视化图形</button>
</div>
<div class="chart-container" ref="mainref" v-if="showChat"></div>
</div>
<div class="task-section">
<h3>差异化采购策略实施</h3>
<div class="table-wrap">
<el-table :data="list" border>
<el-table-column prop="classification" label="品类分类" align="center" width="120"></el-table-column>
<el-table-column prop="value" label="管理措施" align="center">
<template #default="scope">
<el-input v-model="scope.row.value" placeholder="" :rows="2" type="textarea"></el-input>
<el-input v-model="scope.row.value" placeholder="请填写管理措施" type="textarea" :rows="3"></el-input>
</template>
</el-table-column>
</el-table>
<div class="taskfooter">
<el-button @click="submitTask">提交任务</el-button>
<el-button @click="resetTask">重新实训</el-button>
</div>
</div>
<TrainingLegacyActions />
<div class="task-actions">
<button type="button" class="btn primary" @click="submitTask"><el-icon><Check /></el-icon>提交任务</button>
<button type="button" class="btn" @click="resetTask"><el-icon><RefreshLeft /></el-icon>重新实训</button>
</div>
</section>
</main>
<TrainingAiSidebar />
</div>
</template>
<script setup>
import TrainingLegacyActions from "@/views/components/TrainingLegacyActions.vue";
import { Check, DataLine, Goods, RefreshLeft } from "@element-plus/icons-vue";
import TrainingAiSidebar from "@/views/components/TrainingAiSidebar.vue";
import TrainingIntro from '@/views/components/TrainingIntro.vue';
import popModel from "@/views/components/popModal.vue";
import * as analysisAPI from "@/api/market-demand-mining.js";
import * as echarts from "echarts";
import useUserStore from "@/store/modules/user";
const userStore = useUserStore();
const { proxy } = getCurrentInstance();
const briefOpen = ref(false);
// 图形展示状态
const showChat = ref(false);
const dialogVisible = ref(false);
@ -574,25 +536,684 @@ onMounted(() => {
echo();
});
</script>
<style lang="scss" scoped>
.purchase {
background: #ffffff;
/* ============================================================
* 教育蓝极简 · 卡拉杰克模型分析页
* ============================================================ */
.purchase-page {
--student-accent: #2563eb;
--student-accent-deep: #1d4ed8;
--student-accent-light: #3b82f6;
--student-accent-soft: #eff6ff;
--student-danger: #ef4444;
--student-success: #2ba471;
--student-panel-border: #e5e7eb;
--student-card-bg: #ffffff;
--student-panel-bg: #fafbfc;
--student-text: #1f2937;
--student-text-secondary: #6b7280;
--student-font-data: "DM Mono", ui-monospace, monospace;
--student-fs-display: 26px;
--student-fs-h1: 20px;
--student-fs-h2: 16px;
--student-fs-h3: 15px;
--student-fs-body: 14px;
--student-fs-body-sm: 13px;
--student-fs-caption: 12px;
--student-fs-button: 13px;
}
.purchase-core {
display: grid;
gap: 0;
max-width: 960px;
margin: 0 auto;
padding: 28px 32px 48px;
}
.task-header {
position: relative;
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
margin: 0;
padding: 18px 20px 18px 24px;
border: 1px solid var(--student-panel-border);
border-radius: 12px;
background: var(--student-card-bg);
overflow: hidden;
&::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 4px;
background: var(--student-accent);
}
}
.task-head-main {
display: grid;
justify-items: start;
gap: 8px;
min-width: 0;
flex: 1 1 auto;
}
.caseBacktitle {
.task-head-top {
display: flex;
align-items: center;
margin-bottom: 15px;
gap: 10px;
flex-wrap: nowrap;
margin-bottom: 8px;
}
.task-badge {
display: inline-flex;
align-items: center;
gap: 7px;
padding: 4px 12px;
border: 1px solid var(--student-panel-border);
border-radius: 999px;
color: var(--student-accent-deep);
background: var(--student-accent-soft);
font-size: 12px;
font-weight: 700;
}
.task-status {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 3px 10px;
border-radius: 999px;
color: var(--student-text-secondary);
background: #f3f4f6;
font-family: var(--student-font-data);
font-size: var(--student-fs-caption);
font-weight: 600;
white-space: nowrap;
img {
width: 24px;
height: 24px;
margin-right: 8px;
&::before {
content: "";
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--student-accent-light);
animation: pulse 1.8s ease-in-out infinite;
}
}
@keyframes pulse {
0%, 100% { opacity: 0.4; }
50% { opacity: 1; }
}
.task-title {
margin: 0;
color: var(--student-text);
font-size: var(--student-fs-display);
font-weight: 700;
line-height: 1.35;
}
.task-brief {
margin: 0;
color: var(--student-text-secondary);
font-size: 12px;
line-height: 1.6;
}
.task-brief-text {
display: -webkit-box;
overflow: hidden;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
}
.task-brief-toggle {
padding: 0;
border: 0;
color: var(--student-accent-deep);
background: transparent;
font: inherit;
font-weight: 700;
cursor: pointer;
&:hover { text-decoration: underline; color: var(--student-accent-deep); }
}
.task-brief-more {
display: grid;
gap: 6px;
margin-top: 8px;
padding-top: 8px;
border-top: 1px dashed var(--student-panel-border);
b { color: var(--student-text); font-size: 12px; }
ul { display: grid; gap: 4px; margin: 0; padding-left: 18px; }
p { margin: 0; }
}
.purchase-workbench {
display: grid;
gap: 20px;
}
.workbench-head {
display: flex;
align-items: flex-start;
gap: 16px;
margin: 0;
padding: 0;
border-bottom: 0;
}
.section-eyebrow {
margin: 0;
color: var(--student-accent);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.workbench-head h2 {
margin: 4px 0 0;
color: var(--student-text);
font-size: var(--student-fs-h1);
font-weight: 700;
line-height: 1.35;
}
.step-intro {
margin: 0;
color: var(--student-text-secondary);
font-size: var(--student-fs-body);
line-height: 1.6;
}
span {
.kraljic-legend {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 10px;
padding: 16px;
border: 1px solid var(--student-panel-border);
border-radius: 8px;
background: var(--student-panel-bg);
}
.legend-item {
display: flex;
align-items: flex-start;
gap: 10px;
font-size: var(--student-fs-body-sm);
color: var(--student-text-secondary);
line-height: 1.5;
strong { color: var(--student-text); }
}
.legend-color {
flex-shrink: 0;
width: 16px;
height: 16px;
border-radius: 4px;
margin-top: 2px;
}
.case-section,
.task-section {
h3 {
margin: 0 0 12px;
font-size: var(--student-fs-h2);
font-weight: bold;
color: var(--text-color);
font-weight: 700;
color: var(--student-text);
}
h4 {
margin: 12px 0 8px;
font-size: var(--student-fs-body);
font-weight: 600;
color: var(--student-text);
}
p {
margin: 0;
color: var(--student-text-secondary);
font-size: var(--student-fs-body);
line-height: 1.7;
}
}
.operation-mode {
padding: 16px;
border: 1px solid var(--student-panel-border);
border-radius: 8px;
background: var(--student-panel-bg);
}
.table-panel {
h4 {
margin: 0 0 10px;
font-size: var(--student-fs-h3);
font-weight: 600;
color: var(--student-text);
}
}
.table-wrap {
overflow-x: auto;
:deep(.el-table) {
font-size: var(--student-fs-body-sm);
th.el-table__cell {
background: var(--student-accent) !important;
color: #ffffff;
font-weight: 600;
}
}
}
.chart-container {
width: 100%;
height: 400px;
margin-top: 16px;
border: 1px solid var(--student-panel-border);
border-radius: 8px;
}
.task-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
margin-top: 16px;
}
.outline-action,
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
min-height: 36px;
height: 36px;
padding: 0 14px;
border: 1px solid rgba(37, 99, 235, 0.45);
border-radius: 8px;
color: var(--student-accent);
background: #ffffff;
font-size: var(--student-fs-button);
font-weight: 700;
font-family: inherit;
cursor: pointer;
transition: border-color 0.16s ease, background 0.16s ease,
color 0.16s ease, transform 0.16s ease,
box-shadow 0.16s ease;
&:hover:not(:disabled) {
border-color: var(--student-accent);
background: var(--student-accent-soft);
color: var(--student-accent);
transform: translateY(-1px);
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}
&:disabled {
cursor: not-allowed;
opacity: 0.5;
}
}
.btn.primary {
border-color: var(--student-accent);
color: #ffffff;
background: var(--student-accent);
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
&:hover:not(:disabled) {
border-color: var(--student-accent-deep);
background: var(--student-accent-deep);
color: #ffffff;
box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32);
}
}
</style>
<style lang="scss">
/* ============================================================
* 教育蓝极简换肤 · channel/purchase.vue
* ============================================================ */
/* 画布背景 */
#app .studentLayout .app-main:has(.purchase-page) {
background: #ffffff !important;
}
/* el-table 基础换肤 */
:has(.purchase-page) {
.el-table {
--el-table-bg-color: #ffffff !important;
--el-table-tr-bg-color: transparent !important;
--el-table-header-bg-color: #fafbfc !important;
--el-table-row-hover-bg-color: rgba(37, 99, 235, 0.04) !important;
line-height: 1.55;
}
}
/* ============================================================
* 步骤导航:分段连接胶囊(教育蓝极简)
* ============================================================ */
#app .studentLayout .app-main:has(.purchase-page) .step-indicator {
display: flex !important;
flex-wrap: nowrap !important;
align-items: stretch !important;
justify-content: center !important;
gap: 0 !important;
width: 100% !important;
margin: 0 0 20px !important;
padding: 0 !important;
border: none !important;
border-radius: 0 !important;
background: transparent !important;
box-shadow: none !important;
.step-tab {
flex: 1 1 0 !important;
max-width: 240px !important;
display: flex !important;
flex-direction: row !important;
align-items: center !important;
justify-content: center !important;
gap: 8px !important;
min-width: 0 !important;
height: auto !important;
min-height: 40px !important;
margin: 0 !important;
padding: 8px 14px !important;
border: 1px solid #e5e7eb !important;
border-right: none !important;
border-radius: 0 !important;
background: #ffffff !important;
box-shadow: none !important;
color: #6b7280 !important;
font-size: 13px !important;
font-weight: 600 !important;
line-height: 1.3 !important;
white-space: normal !important;
text-align: center !important;
cursor: pointer;
transition: all 0.16s ease !important;
&:first-child {
border-radius: 8px 0 0 8px !important;
}
&:last-child {
border-radius: 0 8px 8px 0 !important;
border-right: 1px solid #e5e7eb !important;
}
.step-bar {
display: none !important;
}
.step-no,
.step-marker {
position: static !important;
flex: 0 0 auto !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
min-width: 22px !important;
height: 22px !important;
padding: 0 5px !important;
border-radius: 6px !important;
background: #f3f4f6 !important;
color: #6b7280 !important;
font-family: var(--student-font-data), ui-monospace, "SF Mono", Consolas, monospace !important;
font-size: 12px !important;
font-weight: 700 !important;
line-height: 1 !important;
transition: all 0.16s ease !important;
&::after {
display: none !important;
}
}
.step-name {
color: inherit !important;
}
.step-copy {
margin-left: 0 !important;
gap: 4px !important;
}
&:hover:not(.active):not(.complete) {
border-color: #2563eb !important;
background: #eff6ff !important;
color: #2563eb !important;
z-index: 1 !important;
.step-no,
.step-marker {
background: #2563eb !important;
color: #ffffff !important;
}
}
&.complete:not(.active) {
border-color: #e5e7eb !important;
color: #374151 !important;
.step-no,
.step-marker {
background: rgba(43, 164, 113, 0.12) !important;
color: #16915f !important;
}
&:hover {
border-color: #2ba471 !important;
background: #f0fdf6 !important;
z-index: 1 !important;
.step-no,
.step-marker {
background: #2ba471 !important;
color: #ffffff !important;
}
}
}
&.active {
border-color: #2563eb !important;
background: #2563eb !important;
color: #ffffff !important;
font-weight: 700 !important;
z-index: 2 !important;
.step-no,
.step-marker {
background: #ffffff !important;
color: #2563eb !important;
}
&:hover {
background: #1d4ed8 !important;
border-color: #1d4ed8 !important;
}
}
}
.step-connector {
display: none !important;
}
}
/* ============================================================
* 共用组件换肤:TrainingMaterialButton 资料按钮
* ============================================================ */
.purchase-page .workbench-actions .material-button.el-button {
height: 36px !important;
min-height: 36px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 8px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 600 !important;
transition:
border-color 0.16s ease,
background 0.16s ease,
color 0.16s ease,
box-shadow 0.16s ease !important;
&:hover {
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
}
&.is-plain {
border-color: #e5e7eb !important;
color: #9ca3af !important;
&:hover {
border-color: #e5e7eb !important;
color: #9ca3af !important;
background: #ffffff !important;
box-shadow: none !important;
}
}
}
/* ============================================================
* 顶部导出按钮(outline-action)
* ============================================================ */
.purchase-page .workbench-actions > button.outline-action {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 6px !important;
height: 36px !important;
min-height: 36px !important;
padding: 0 14px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 8px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 600 !important;
line-height: 1 !important;
transition:
border-color 0.16s ease,
background 0.16s ease,
color 0.16s ease,
box-shadow 0.16s ease !important;
&:hover {
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
transform: none !important;
}
}
/* ============================================================
* 底部步骤按钮(task-actions > button)
* ============================================================ */
.purchase-page .task-actions {
gap: 14px !important;
margin-top: 20px !important;
}
.purchase-page .task-actions > button {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 8px !important;
height: 40px !important;
min-height: 40px !important;
padding: 0 18px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 10px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 700 !important;
line-height: 1 !important;
transition:
transform 0.16s ease,
border-color 0.16s ease,
background 0.16s ease,
box-shadow 0.16s ease !important;
}
.purchase-page .task-actions > button:hover:not(:disabled) {
transform: translateY(-1px) !important;
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12) !important;
}
/* 主按钮(primary) */
.purchase-page .task-actions > button.primary {
border-color: #2563eb !important;
color: #ffffff !important;
background: #2563eb !important;
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28) !important;
}
.purchase-page .task-actions > button.primary:hover:not(:disabled) {
border-color: #1d4ed8 !important;
color: #ffffff !important;
background: #1d4ed8 !important;
box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32) !important;
}
/* ============================================================
* 顶部任务工具栏(el-button)
* ============================================================ */
.purchase-page .task-toolbar-button.el-button {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 6px !important;
min-height: 34px !important;
height: 34px !important;
padding: 0 12px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 8px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 600 !important;
transition:
border-color 0.16s ease,
background 0.16s ease,
color 0.16s ease,
box-shadow 0.16s ease !important;
&:hover:not(.is-disabled) {
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
transform: translateY(-1px) !important;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
}
}
/* ============================================================
* 窄屏:横向滑动
* ============================================================ */
@media (max-width: 900px) {
#app .studentLayout .app-main:has(.purchase-page) .step-indicator {
justify-content: flex-start !important;
overflow-x: auto !important;
}
#app .studentLayout .app-main:has(.purchase-page) .step-indicator .step-tab {
flex: 0 0 140px !important;
max-width: none !important;
}
}
</style>

@ -3,7 +3,10 @@
<main class="supplier-core">
<section class="task-header">
<div class="task-head-main">
<div class="task-head-top">
<span class="task-badge"><el-icon><DataAnalysis /></el-icon> 核心实训 · 供应渠道评估</span>
<span class="task-status">进行中 · Step {{ String(currentStep).padStart(2, "0") }}</span>
</div>
<h1 class="task-title">{{ taskTitle }}</h1>
<p class="task-brief">
<span class="task-brief-text">{{ taskBackground }}</span>
@ -535,22 +538,32 @@ onMounted(async () => {
</script>
<style lang="scss" scoped>
/* ===== 页面级令牌(墨黑极简主题) ===== */
/* ===== 页面级令牌(教育蓝极简主题) ===== */
.supplier-page {
--student-accent: #1f2937;
--student-accent-deep: #111827;
--student-accent-light: #4b5563;
--student-accent-soft: #f3f4f6;
--student-danger: #d9554c;
--student-success: #4a9d6e;
--student-layer-1: #374151;
--student-layer-2: #43a294;
--student-layer-3: #8b6fc0;
--student-accent: #2563eb;
--student-accent-deep: #1d4ed8;
--student-accent-light: #3b82f6;
--student-accent-soft: #eff6ff;
--student-danger: #ef4444;
--student-success: #2ba471;
--student-layer-1: #1d4ed8;
--student-layer-2: #3b82f6;
--student-layer-3: #93c5fd;
--student-panel-border: #e5e7eb;
--student-card-bg: #ffffff;
--student-panel-bg: #fafbfc;
--student-text: #1f2937;
--student-text-secondary: #6b7280;
--el-color-primary: #2563eb;
--el-color-primary-light-3: #60a5fa;
--el-color-primary-light-5: #93c5fd;
--el-color-primary-light-7: #bfdbfe;
--el-color-primary-light-8: #dbeafe;
--el-color-primary-light-9: #eff6ff;
--el-color-primary-dark-2: #1d4ed8;
--el-input-hover-border-color: #3b82f6;
--el-input-focus-border-color: #2563eb;
--el-input-focus-ring-color: rgba(59, 130, 246, 0.15);
--student-fs-display: 17px;
--student-fs-h1: 15px;
--student-fs-h2: 14px;
@ -583,15 +596,27 @@ onMounted(async () => {
/* ===== task-header(独立白卡片) ===== */
.task-header {
position: relative;
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
gap: 16px;
margin: 0;
padding: 16px;
border: 1px solid #e7e9ed;
border-radius: 16px;
background: #ffffff;
padding: 18px 20px 18px 24px;
border: 1px solid var(--student-panel-border);
border-radius: 12px;
background: var(--student-card-bg);
overflow: hidden;
&::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 4px;
background: var(--student-accent);
}
}
.task-head-main {
@ -602,6 +627,14 @@ onMounted(async () => {
flex: 1 1 auto;
}
.task-head-top {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: nowrap;
margin-bottom: 8px;
}
.task-badge {
display: inline-flex;
align-items: center;
@ -616,6 +649,34 @@ onMounted(async () => {
white-space: nowrap;
}
.task-status {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 3px 10px;
border-radius: 999px;
color: var(--student-text-secondary);
background: #f3f4f6;
font-family: var(--student-font-data);
font-size: var(--student-fs-caption);
font-weight: 600;
white-space: nowrap;
&::before {
content: "";
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--student-accent-light);
animation: pulse 1.8s ease-in-out infinite;
}
}
@keyframes pulse {
0%, 100% { opacity: 0.4; }
50% { opacity: 1; }
}
.task-title {
margin: 0;
color: var(--student-text);
@ -956,15 +1017,37 @@ onMounted(async () => {
</style>
<style lang="scss">
/* ===== 步骤导航:按钮切换风 ===== */
#app .studentLayout section.app-main:has(.supplier-page) .step-indicator {
/* ============================================================
* 教育蓝极简换肤 · channel/supplier.vue
* ============================================================ */
/* 画布背景 */
#app .studentLayout .app-main:has(.supplier-page) {
background: #ffffff !important;
}
/* el-table 基础换肤 */
:has(.supplier-page) {
.el-table {
--el-table-bg-color: #ffffff !important;
--el-table-tr-bg-color: transparent !important;
--el-table-header-bg-color: #fafbfc !important;
--el-table-row-hover-bg-color: rgba(37, 99, 235, 0.04) !important;
line-height: 1.55;
}
}
/* ============================================================
* 步骤导航:分段连接胶囊(教育蓝极简)
* ============================================================ */
#app .studentLayout .app-main:has(.supplier-page) .step-indicator {
display: flex !important;
flex-wrap: nowrap !important;
align-items: stretch !important;
justify-content: center !important;
gap: 10px !important;
gap: 0 !important;
width: 100% !important;
margin: 4px 0 16px !important;
margin: 0 0 20px !important;
padding: 0 !important;
border: none !important;
border-radius: 0 !important;
@ -972,111 +1055,260 @@ onMounted(async () => {
box-shadow: none !important;
.step-tab {
flex: 0 0 auto !important;
min-width: auto !important;
max-width: none !important;
flex: 1 1 0 !important;
max-width: 240px !important;
display: flex !important;
flex-direction: row !important;
align-items: center !important;
justify-content: center !important;
gap: 8px !important;
min-width: 0 !important;
height: auto !important;
min-height: 42px !important;
min-height: 40px !important;
margin: 0 !important;
padding: 8px 14px !important;
border: 1px solid #e5e7eb !important;
border-radius: 8px !important;
border-right: none !important;
border-radius: 0 !important;
background: #ffffff !important;
box-shadow: none !important;
color: #6b7280 !important;
font-size: 13px !important;
font-weight: 600 !important;
line-height: 1.3 !important;
letter-spacing: 0 !important;
white-space: nowrap !important;
white-space: normal !important;
text-align: center !important;
cursor: pointer;
transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease !important;
transition: all 0.16s ease !important;
&:first-child {
border-radius: 8px 0 0 8px !important;
}
&:last-child {
border-radius: 0 8px 8px 0 !important;
border-right: 1px solid #e5e7eb !important;
}
.step-bar {
display: none !important;
}
.step-no,
.step-marker {
position: static !important;
flex: 0 0 auto !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
flex: 0 0 auto !important;
min-width: 22px !important;
width: auto !important;
height: 22px !important;
padding: 0 5px !important;
border: none !important;
border-radius: 6px !important;
background: #f3f4f6 !important;
color: #6b7280 !important;
font-family: ui-monospace, "SF Mono", Consolas, monospace !important;
font-family: var(--student-font-data), ui-monospace, "SF Mono", Consolas, monospace !important;
font-size: 12px !important;
font-weight: 700 !important;
line-height: 1 !important;
transition: background-color 0.16s ease, color 0.16s ease !important;
transition: all 0.16s ease !important;
&::after {
display: none !important;
}
.step-copy {
display: flex !important;
flex-direction: column !important;
gap: 0 !important;
min-width: 0 !important;
}
.step-name {
overflow: hidden !important;
text-overflow: ellipsis !important;
white-space: normal !important;
line-height: 1.3 !important;
color: inherit !important;
}
/* 未到达项 hover */
.step-tab:hover:not(.active):not(.complete) {
border-color: #1f2937 !important;
background: #f9fafb !important;
color: #1f2937 !important;
.step-marker { background: #1f2937 !important; color: #ffffff !important; }
.step-copy {
margin-left: 0 !important;
gap: 4px !important;
}
/* 已完成 */
.step-tab.complete:not(.active) {
border-color: #dce9e2 !important;
&:hover:not(.active):not(.complete) {
border-color: #2563eb !important;
background: #eff6ff !important;
color: #2563eb !important;
z-index: 1 !important;
.step-no,
.step-marker {
background: #2563eb !important;
color: #ffffff !important;
}
}
&.complete:not(.active) {
border-color: #e5e7eb !important;
color: #374151 !important;
.step-marker { background: rgba(74, 157, 110, 0.12) !important; color: #3f8a5f !important; }
.step-no,
.step-marker {
background: rgba(43, 164, 113, 0.12) !important;
color: #16915f !important;
}
&:hover {
border-color: #4a9d6e !important;
background: #f9fafb !important;
.step-marker { background: #4a9d6e !important; color: #ffffff !important; }
border-color: #2ba471 !important;
background: #f0fdf6 !important;
z-index: 1 !important;
.step-no,
.step-marker {
background: #2ba471 !important;
color: #ffffff !important;
}
}
}
/* 当前步骤 */
.step-tab.active {
border-color: #1f2937 !important;
background: #1f2937 !important;
&.active {
border-color: #2563eb !important;
background: #2563eb !important;
color: #ffffff !important;
font-weight: 700 !important;
.step-marker { background: #ffffff !important; color: #1f2937 !important; }
z-index: 2 !important;
.step-no,
.step-marker {
background: #ffffff !important;
color: #2563eb !important;
}
&:hover {
background: #1d4ed8 !important;
border-color: #1d4ed8 !important;
}
}
}
.step-connector {
display: none !important;
}
}
/* ============================================================
* 共用组件换肤:TrainingMaterialButton 资料按钮
* ============================================================ */
.supplier-page .workbench-actions .material-button.el-button,
.supplier-page .supplier-toolbar .material-button.el-button {
height: 36px !important;
min-height: 36px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 8px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 600 !important;
transition:
border-color 0.16s ease,
background 0.16s ease,
color 0.16s ease,
box-shadow 0.16s ease !important;
&:hover {
background: #111827 !important;
border-color: #111827 !important;
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
}
&.is-plain {
border-color: #e5e7eb !important;
color: #9ca3af !important;
&:hover {
border-color: #e5e7eb !important;
color: #9ca3af !important;
background: #ffffff !important;
box-shadow: none !important;
}
}
}
/* ============================================================
* 顶部导出按钮(outline-action)
* ============================================================ */
.supplier-page .workbench-actions > button.outline-action {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 6px !important;
height: 36px !important;
min-height: 36px !important;
padding: 0 14px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 8px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 600 !important;
line-height: 1 !important;
transition:
border-color 0.16s ease,
background 0.16s ease,
color 0.16s ease,
box-shadow 0.16s ease !important;
&:hover {
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
transform: none !important;
}
}
/* ===== 窄屏:900px 横向滑动 ===== */
/* ============================================================
* 底部步骤按钮(el-button)
* ============================================================ */
.supplier-page .page-actions .el-button {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 8px !important;
height: 40px !important;
min-height: 40px !important;
padding: 0 18px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 10px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 700 !important;
line-height: 1 !important;
transition:
transform 0.16s ease,
border-color 0.16s ease,
background 0.16s ease,
box-shadow 0.16s ease !important;
}
.supplier-page .page-actions .el-button:hover:not(.is-disabled) {
transform: translateY(-1px) !important;
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12) !important;
}
/* 主按钮(el-button--primary) */
.supplier-page .page-actions .el-button--primary {
border-color: #2563eb !important;
color: #ffffff !important;
background: #2563eb !important;
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28) !important;
}
.supplier-page .page-actions .el-button--primary:hover:not(.is-disabled) {
border-color: #1d4ed8 !important;
color: #ffffff !important;
background: #1d4ed8 !important;
box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32) !important;
}
/* ============================================================
* 窄屏:横向滑动
* ============================================================ */
@media (max-width: 900px) {
#app .studentLayout section.app-main:has(.supplier-page) .step-indicator {
#app .studentLayout .app-main:has(.supplier-page) .step-indicator {
justify-content: flex-start !important;
gap: 8px !important;
overflow-x: auto !important;
}
#app .studentLayout section.app-main:has(.supplier-page) .step-indicator .step-tab {
flex: 0 0 auto !important;
#app .studentLayout .app-main:has(.supplier-page) .step-indicator .step-tab {
flex: 0 0 140px !important;
max-width: none !important;
}
}

@ -3,10 +3,13 @@
<main class="factors-core">
<section class="task-header">
<div class="task-head-main">
<div class="task-head-top">
<span class="task-badge">
<el-icon><Operation /></el-icon>
核心实训 · 互联网产品开发基础
</span>
<span class="task-status">进行中 · Step {{ String(currentStep + 1).padStart(2, "0") }}</span>
</div>
<h1 class="task-title">{{ taskTitle }}</h1>
<p class="task-brief">
<span class="task-brief-text">{{ taskBackground }}</span>
@ -581,6 +584,41 @@ function exportOutcome() {
min-width: 0;
}
.task-head-top {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: nowrap;
}
.task-status {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 3px 10px;
border-radius: 999px;
color: var(--student-accent);
background: var(--student-accent-soft);
font-family: var(--student-font-data);
font-size: var(--student-fs-caption);
font-weight: 600;
white-space: nowrap;
&::before {
content: "";
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--student-accent-light);
animation: pulse 1.8s ease-in-out infinite;
}
}
@keyframes pulse {
0%, 100% { opacity: 0.4; }
50% { opacity: 1; }
}
.task-badge {
display: inline-flex;
align-items: center;
@ -719,8 +757,8 @@ function exportOutcome() {
/* Step 编号小标签:教育蓝引导文字 */
.section-eyebrow {
margin: 0;
color: #2563eb;
font-size: 11px;
color: var(--student-accent);
font-size: var(--student-fs-caption);
font-weight: 800;
line-height: 1.3;
letter-spacing: 0.12em;

@ -3,7 +3,10 @@
<main class="process-core">
<section class="task-header">
<div class="task-head-main">
<div class="task-head-top">
<span class="task-badge"><el-icon><Operation /></el-icon>核心实训 · 产品开发基础</span>
<span class="task-status">进行中 · Step {{ String(currentStep).padStart(2, "0") }}</span>
</div>
<h1 class="task-title">{{ taskTitle }}</h1>
<p class="task-brief">
<span class="task-brief-text">{{ taskBackground }}</span>
@ -20,9 +23,6 @@
</span>
</p>
</div>
</section>
<section class="process-workbench">
<div class="workbench-head workbench-head--actions-only">
<div class="workbench-actions">
<TrainingMaterialButton
@ -38,6 +38,7 @@
<button type="button" class="outline-action" @click="exportOutcome"><el-icon><Download /></el-icon>导出实训成果</button>
</div>
</div>
</section>
<nav v-if="trainingSteps.length" class="step-indicator" aria-label="产品开发主要流程步骤">
<button
@ -714,6 +715,41 @@ function exportOutcome() {
min-width: 0;
}
.task-head-top {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: nowrap;
}
.task-status {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 3px 10px;
border-radius: 999px;
color: var(--student-accent);
background: var(--student-accent-soft);
font-family: var(--student-font-data);
font-size: var(--student-fs-caption);
font-weight: 600;
white-space: nowrap;
&::before {
content: "";
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--student-accent-light);
animation: pulse 1.8s ease-in-out infinite;
}
}
@keyframes pulse {
0%, 100% { opacity: 0.4; }
50% { opacity: 1; }
}
.task-badge {
display: inline-flex;
align-items: center;
@ -814,7 +850,7 @@ function exportOutcome() {
gap: 8px;
}
/* 顶部"导出实训成果"按钮:白底灰描边次按钮 */
/* 顶部"导出实训成果"按钮:白底教育蓝描边次按钮 */
.outline-action {
display: inline-flex;
align-items: center;
@ -822,9 +858,9 @@ function exportOutcome() {
gap: 7px;
min-height: 36px;
padding: 0 14px;
border: 1px solid #d1d5db;
border: 1px solid rgba(37, 99, 235, 0.45);
border-radius: 8px;
color: #374151;
color: #2563eb;
background: #ffffff;
font-family: inherit;
font-size: 13px;
@ -896,24 +932,25 @@ function exportOutcome() {
border-radius: 8px;
}
/* Step 编号小标签:灰色宽字距引导文字 */
/* Step 编号小标签:教育蓝引导文字 */
.section-eyebrow {
margin: 0;
color: var(--student-text-secondary);
font-size: 11px;
color: var(--student-accent);
font-size: var(--student-fs-caption);
font-weight: 800;
line-height: 1.3;
letter-spacing: 0.12em;
}
/* 步骤小徽章:中性灰白 */
/* 步骤小徽章:教育蓝浅底 */
.step-chip {
padding: 3px 10px;
border: 1px solid #e5e7eb;
flex: 0 0 auto;
padding: 4px 10px;
border: 1px solid #bfdbfe;
border-radius: 999px;
color: #6b7280;
background: #ffffff;
font-size: 11px;
color: var(--student-accent);
background: var(--student-accent-soft);
font-size: var(--student-fs-caption);
font-weight: 600;
white-space: nowrap;
}

File diff suppressed because one or more lines are too long

@ -3,9 +3,12 @@
<main class="product-positioning-core">
<section class="task-header">
<div class="task-head-main">
<div class="task-badge">
<div class="task-head-top">
<span class="task-badge">
<el-icon><Operation /></el-icon>
市场洞察与需求分析
</span>
<span class="task-status">进行中 · Step {{ String(form.activeStep).padStart(2, "0") }}</span>
</div>
<h1 class="task-title">{{ taskTitle }}</h1>
<p class="task-brief">
@ -771,6 +774,41 @@ async function handleValueCanvasUpload(event) {
flex: 1 1 auto;
}
/* task-head-top:badge + 脉动状态横排 */
.task-head-top {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: nowrap;
}
.task-status {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 3px 10px;
border-radius: 999px;
color: var(--student-text-secondary);
background: #f3f4f6;
font-size: var(--student-fs-caption);
font-weight: 600;
white-space: nowrap;
&::before {
content: "";
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--student-accent-light);
animation: pulse 1.8s ease-in-out infinite;
}
}
@keyframes pulse {
0%, 100% { opacity: 0.4; }
50% { opacity: 1; }
}
.task-badge {
display: inline-flex;
align-items: center;

File diff suppressed because it is too large Load Diff

@ -3,7 +3,10 @@
<main class="opportunity-core">
<section class="task-header">
<div class="task-head-main">
<div class="task-head-top">
<span class="task-badge"><el-icon><DataAnalysis /></el-icon> 核心实训 · 市场洞察与需求分析</span>
<span class="task-status">进行中 · Step {{ String(currentStep).padStart(2, "0") }}</span>
</div>
<h1 class="task-title">{{ taskTitle }}</h1>
<p class="task-brief">
<span class="task-brief-text">{{ taskBackground }}</span>
@ -340,6 +343,41 @@ function exportOutcome() { const blob = new Blob([JSON.stringify({ taskName: tas
flex: 1 1 auto;
}
/* task-head-top:badge + 脉动状态横排 */
.task-head-top {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: nowrap;
}
.task-status {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 3px 10px;
border-radius: 999px;
color: var(--student-text-secondary);
background: #f3f4f6;
font-size: var(--student-fs-caption);
font-weight: 600;
white-space: nowrap;
&::before {
content: "";
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--student-accent-light);
animation: pulse 1.8s ease-in-out infinite;
}
}
@keyframes pulse {
0%, 100% { opacity: 0.4; }
50% { opacity: 1; }
}
.task-brief {
margin: 0;
color: var(--student-text-secondary);

@ -3,7 +3,10 @@
<main class="price-core">
<section class="task-header">
<div class="task-head-main">
<div class="task-head-top">
<span class="task-badge">核心实训 · 新产品定价</span>
<span class="task-status">进行中 · Step {{ String(currentStep).padStart(2, "0") }}</span>
</div>
<h1 class="task-title">{{ taskTitle }}</h1>
<p class="task-brief">
<span class="task-brief-text">{{ taskBackground }}</span>
@ -1548,22 +1551,32 @@ onMounted(async () => {
</script>
<style scoped lang="scss">
/* ===== 页面级令牌(墨黑极简主题) ===== */
/* ===== 页面级令牌(教育蓝极简主题) ===== */
.price-page {
--student-accent: #1f2937;
--student-accent-deep: #111827;
--student-accent-light: #4b5563;
--student-accent-soft: #f3f4f6;
--student-danger: #d9554c;
--student-success: #4a9d6e;
--student-layer-1: #374151;
--student-layer-2: #43a294;
--student-layer-3: #8b6fc0;
--student-accent: #2563eb;
--student-accent-deep: #1d4ed8;
--student-accent-light: #3b82f6;
--student-accent-soft: #eff6ff;
--student-danger: #ef4444;
--student-success: #2ba471;
--student-layer-1: #1d4ed8;
--student-layer-2: #3b82f6;
--student-layer-3: #93c5fd;
--student-panel-border: #e5e7eb;
--student-card-bg: #ffffff;
--student-panel-bg: #fafbfc;
--student-text: #1f2937;
--student-text-secondary: #6b7280;
--el-color-primary: #2563eb;
--el-color-primary-light-3: #60a5fa;
--el-color-primary-light-5: #93c5fd;
--el-color-primary-light-7: #bfdbfe;
--el-color-primary-light-8: #dbeafe;
--el-color-primary-light-9: #eff6ff;
--el-color-primary-dark-2: #1d4ed8;
--el-input-hover-border-color: #3b82f6;
--el-input-focus-border-color: #2563eb;
--el-input-focus-ring-color: rgba(59, 130, 246, 0.15);
--student-fs-display: 17px;
--student-fs-h1: 15px;
--student-fs-h2: 14px;
@ -1594,15 +1607,27 @@ onMounted(async () => {
/* 任务头:独立白卡片(对齐 foundation 的 .task-header) */
.task-header {
position: relative;
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
gap: 16px;
margin: 0;
padding: 16px;
border: 1px solid #e7e9ed;
border-radius: 16px;
background: #ffffff;
padding: 18px 20px 18px 24px;
border: 1px solid var(--student-panel-border);
border-radius: 12px;
background: var(--student-card-bg);
overflow: hidden;
&::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 4px;
background: var(--student-accent);
}
}
/* task-header 内部主列(对齐 foundation 的 .task-head-main) */
@ -1614,6 +1639,14 @@ onMounted(async () => {
flex: 1 1 auto;
}
.task-head-top {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: nowrap;
margin-bottom: 8px;
}
.task-badge {
display: inline-flex;
align-items: center;
@ -1627,6 +1660,34 @@ onMounted(async () => {
font-weight: 700;
}
.task-status {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 3px 10px;
border-radius: 999px;
color: var(--student-text-secondary);
background: #f3f4f6;
font-family: var(--student-font-data);
font-size: var(--student-fs-caption);
font-weight: 600;
white-space: nowrap;
&::before {
content: "";
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--student-accent-light);
animation: pulse 1.8s ease-in-out infinite;
}
}
@keyframes pulse {
0%, 100% { opacity: 0.4; }
50% { opacity: 1; }
}
.task-title {
margin: 0;
color: var(--student-text);
@ -2328,161 +2389,347 @@ onMounted(async () => {
</style>
<style lang="scss">
/* ===== 步骤导航:按钮切换风 ===== */
#app .studentLayout section.app-main:has(.price-page) .step-indicator {
/* ============================================================
* 教育蓝极简换肤 · product/price.vue
* ============================================================ */
/* 画布背景 */
#app .studentLayout .app-main:has(.price-page) {
background: #ffffff !important;
}
/* ============================================================
* 步骤导航:分段连接胶囊(教育蓝极简)
* ============================================================ */
#app .studentLayout .app-main:has(.price-page) .step-indicator {
display: flex !important;
flex-wrap: nowrap !important;
align-items: stretch !important;
justify-content: center !important;
gap: 10px !important;
gap: 0 !important;
width: 100% !important;
margin: 4px 0 16px !important;
margin: 0 0 20px !important;
padding: 0 !important;
border: none !important;
border-radius: 0 !important;
background: transparent !important;
box-shadow: none !important;
.step-connector { display: none !important; }
.step-connector {
display: none !important;
}
.step-tab {
flex: 0 0 auto !important;
min-width: auto !important;
max-width: none !important;
flex: 1 1 0 !important;
max-width: 240px !important;
display: flex !important;
flex-direction: row !important;
align-items: center !important;
justify-content: center !important;
gap: 8px !important;
min-width: 0 !important;
height: auto !important;
min-height: 42px !important;
min-height: 40px !important;
margin: 0 !important;
padding: 8px 14px !important;
border: 1px solid #e5e7eb !important;
border-radius: 8px !important;
border-right: none !important;
border-radius: 0 !important;
background: #ffffff !important;
box-shadow: none !important;
color: #6b7280 !important;
font-size: 13px !important;
font-weight: 600 !important;
line-height: 1.3 !important;
letter-spacing: 0 !important;
white-space: nowrap !important;
white-space: normal !important;
text-align: center !important;
cursor: pointer;
transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease !important;
transition: all 0.16s ease !important;
&:first-child {
border-radius: 8px 0 0 8px !important;
}
&:last-child {
border-radius: 0 8px 8px 0 !important;
border-right: 1px solid #e5e7eb !important;
}
.step-bar {
display: none !important;
}
.step-no,
.step-marker {
position: static !important;
flex: 0 0 auto !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
flex: 0 0 auto !important;
min-width: 22px !important;
width: auto !important;
height: 22px !important;
padding: 0 5px !important;
border: none !important;
border-radius: 6px !important;
background: #f3f4f6 !important;
color: #6b7280 !important;
font-family: ui-monospace, "SF Mono", Consolas, monospace !important;
font-family: var(--student-font-data), ui-monospace, "SF Mono", Consolas, monospace !important;
font-size: 12px !important;
font-weight: 700 !important;
line-height: 1 !important;
transition: background-color 0.16s ease, color 0.16s ease !important;
box-shadow: none !important;
transition: all 0.16s ease !important;
&::after {
display: none !important;
}
}
.step-copy {
display: flex !important;
flex-direction: column !important;
gap: 0 !important;
min-width: 0 !important;
margin-left: 0 !important;
strong {
overflow: hidden !important;
text-overflow: ellipsis !important;
white-space: normal !important;
line-height: 1.3 !important;
.step-name {
color: inherit !important;
font-size: 13px !important;
font-weight: inherit !important;
}
span { display: none !important; }
.step-copy {
margin-left: 0 !important;
gap: 4px !important;
}
/* 未到达项 hover */
&:hover:not(.active):not(.complete) {
border-color: #1f2937 !important;
background: #f9fafb !important;
color: #1f2937 !important;
.step-marker { background: #1f2937 !important; color: #ffffff !important; }
border-color: #2563eb !important;
background: #eff6ff !important;
color: #2563eb !important;
z-index: 1 !important;
.step-no,
.step-marker {
background: #2563eb !important;
color: #ffffff !important;
}
}
/* 已完成 */
&.complete:not(.active) {
border-color: #dce9e2 !important;
border-color: #e5e7eb !important;
color: #374151 !important;
.step-marker { background: rgba(74, 157, 110, 0.12) !important; color: #3f8a5f !important; }
.step-no,
.step-marker {
background: rgba(43, 164, 113, 0.12) !important;
color: #16915f !important;
}
&:hover {
border-color: #4a9d6e !important;
background: #f9fafb !important;
.step-marker { background: #4a9d6e !important; color: #ffffff !important; }
border-color: #2ba471 !important;
background: #f0fdf6 !important;
z-index: 1 !important;
.step-no,
.step-marker {
background: #2ba471 !important;
color: #ffffff !important;
}
}
}
/* 当前步骤 */
&.active {
border-color: #1f2937 !important;
background: #1f2937 !important;
border-color: #2563eb !important;
background: #2563eb !important;
color: #ffffff !important;
font-weight: 700 !important;
.step-marker { background: #ffffff !important; color: #1f2937 !important; }
z-index: 2 !important;
.step-no,
.step-marker {
background: #ffffff !important;
color: #2563eb !important;
}
&:hover {
background: #111827 !important;
border-color: #111827 !important;
background: #1d4ed8 !important;
border-color: #1d4ed8 !important;
}
}
}
}
/* ===== 窄屏 ===== */
@media (max-width: 900px) {
#app .studentLayout section.app-main:has(.price-page) .step-indicator {
justify-content: flex-start !important;
gap: 8px !important;
overflow-x: auto !important;
/* ============================================================
* 共用组件换肤:TrainingMaterialButton 资料按钮
* ============================================================ */
.price-page .price-toolbar .material-button.el-button,
.price-page .workbench-actions .material-button.el-button {
height: 36px !important;
min-height: 36px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 8px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 600 !important;
transition:
border-color 0.16s ease,
background 0.16s ease,
color 0.16s ease,
box-shadow 0.16s ease !important;
&:hover {
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
}
&.is-plain {
border-color: #e5e7eb !important;
color: #9ca3af !important;
&:hover {
border-color: #e5e7eb !important;
color: #9ca3af !important;
background: #ffffff !important;
box-shadow: none !important;
}
#app .studentLayout section.app-main:has(.price-page) .step-indicator .step-tab {
flex: 0 0 auto !important;
max-width: none !important;
}
}
/* ===== 工具栏换肤 ===== */
.price-page .outline-action {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
min-height: 36px;
height: 36px;
padding: 0 14px;
border: 1px solid #d1d5db;
border-radius: 8px;
color: #374151;
background: #ffffff;
box-shadow: none;
text-shadow: none;
font-size: 13px;
font-weight: 600;
transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
/* ============================================================
* 顶部导出按钮(outline-action)
* ============================================================ */
.price-page .price-toolbar > button.outline-action,
.price-page .workbench-actions > button.outline-action {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 6px !important;
height: 36px !important;
min-height: 36px !important;
padding: 0 14px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 8px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 600 !important;
line-height: 1 !important;
transition:
border-color 0.16s ease,
background 0.16s ease,
color 0.16s ease,
box-shadow 0.16s ease !important;
&:hover {
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
transform: none !important;
}
}
/* ============================================================
* 底部操作按钮(el-button)
* ============================================================ */
.price-page .workbench-footer .el-button {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 8px !important;
height: 40px !important;
min-height: 40px !important;
padding: 0 18px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 10px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 700 !important;
transition:
transform 0.16s ease,
border-color 0.16s ease,
background 0.16s ease,
box-shadow 0.16s ease !important;
}
.price-page .outline-action .el-icon {
font-size: 14px;
color: inherit;
.price-page .workbench-footer .el-button:hover:not(.is-disabled) {
transform: translateY(-1px) !important;
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12) !important;
}
/* 主按钮(el-button--primary) */
.price-page .workbench-footer .el-button--primary {
border-color: #2563eb !important;
color: #ffffff !important;
background: #2563eb !important;
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28) !important;
}
.price-page .workbench-footer .el-button--primary:hover:not(.is-disabled) {
border-color: #1d4ed8 !important;
color: #ffffff !important;
background: #1d4ed8 !important;
box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32) !important;
}
/* ============================================================
* 步骤内按钮(primary-button, secondary-button)
* ============================================================ */
.price-page .primary-button {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 6px !important;
height: 36px !important;
min-height: 36px !important;
padding: 0 14px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 8px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 600 !important;
transition:
border-color 0.16s ease,
background 0.16s ease,
color 0.16s ease,
box-shadow 0.16s ease !important;
&:hover:not(:disabled) {
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
transform: translateY(-1px) !important;
}
}
.price-page .secondary-button {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 6px !important;
height: 36px !important;
min-height: 36px !important;
padding: 0 14px !important;
border: 1px solid #e5e7eb !important;
border-radius: 8px !important;
color: #374151 !important;
background: #f3f4f6 !important;
font-size: 13px !important;
font-weight: 600 !important;
transition:
border-color 0.16s ease,
background 0.16s ease,
color 0.16s ease,
box-shadow 0.16s ease !important;
&:hover:not(:disabled) {
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
}
}
/* ============================================================
* 窄屏:横向滑动
* ============================================================ */
@media (max-width: 900px) {
#app .studentLayout .app-main:has(.price-page) .step-indicator {
justify-content: flex-start !important;
overflow-x: auto !important;
}
#app .studentLayout .app-main:has(.price-page) .step-indicator .step-tab {
flex: 0 0 140px !important;
max-width: none !important;
}
}
</style>

@ -283,15 +283,15 @@ onMounted(async () => { try { const result = await getTrainingTaskByKey(TASK_KEY
<style scoped lang="scss">
/* ===== 页面级令牌(墨黑极简主题) ===== */
.release-channel-page {
--student-accent: #1f2937;
--student-accent-deep: #111827;
--student-accent-light: #4b5563;
--student-accent-soft: #f3f4f6;
--student-danger: #d9554c;
--student-success: #4a9d6e;
--student-layer-1: #374151;
--student-layer-2: #43a294;
--student-layer-3: #8b6fc0;
--student-accent: #2563eb;
--student-accent-deep: #1d4ed8;
--student-accent-light: #3b82f6;
--student-accent-soft: #eff6ff;
--student-danger: #ef4444;
--student-success: #2ba471;
--student-layer-1: #1d4ed8;
--student-layer-2: #3b82f6;
--student-layer-3: #93c5fd;
--student-panel-border: #e5e7eb;
--student-card-bg: #ffffff;
--student-panel-bg: #fafbfc;
@ -649,7 +649,7 @@ onMounted(async () => { try { const result = await getTrainingTaskByKey(TASK_KEY
.table-wrap :deep(.el-textarea__inner:focus),
.analysis-field :deep(.el-textarea__inner:focus),
.table-wrap :deep(.el-input__wrapper.is-focus) {
outline: 2px solid rgba(31, 41, 55, 0.2);
outline: 2px solid rgba(37, 99, 235, 0.2);
outline-offset: -2px;
box-shadow: none;
}
@ -766,33 +766,33 @@ onMounted(async () => { try { const result = await getTrainingTaskByKey(TASK_KEY
.step-copy small { display: none !important; }
&:hover:not(.active):not(.complete) {
border-color: #1f2937 !important;
background: #f9fafb !important;
color: #1f2937 !important;
.step-marker { background: #1f2937 !important; color: #ffffff !important; }
border-color: #2563eb !important;
background: #eff6ff !important;
color: #2563eb !important;
.step-marker { background: #2563eb !important; color: #ffffff !important; }
}
&.complete:not(.active) {
border-color: #dce9e2 !important;
border-color: #e5e7eb !important;
color: #374151 !important;
.step-marker { background: rgba(74, 157, 110, 0.12) !important; color: #3f8a5f !important; }
.step-marker { background: rgba(43, 164, 113, 0.12) !important; color: #16915f !important; }
&:hover {
border-color: #4a9d6e !important;
background: #f9fafb !important;
.step-marker { background: #4a9d6e !important; color: #ffffff !important; }
border-color: #2ba471 !important;
background: #f0fdf6 !important;
.step-marker { background: #2ba471 !important; color: #ffffff !important; }
}
}
&.active {
border-color: #1f2937 !important;
background: #1f2937 !important;
border-color: #2563eb !important;
background: #2563eb !important;
color: #ffffff !important;
font-weight: 700 !important;
box-shadow: none !important;
.step-marker { background: #ffffff !important; color: #1f2937 !important; }
.step-marker { background: #ffffff !important; color: #2563eb !important; }
&:hover {
background: #111827 !important;
border-color: #111827 !important;
background: #1d4ed8 !important;
border-color: #1d4ed8 !important;
}
}
}
@ -820,22 +820,24 @@ onMounted(async () => { try { const result = await getTrainingTaskByKey(TASK_KEY
}
.release-channel-page .table-actions .el-button--primary,
.release-channel-page .footer-actions .el-button--primary {
border-color: #1f2937 !important;
background: #1f2937 !important;
border-color: #2563eb !important;
background: #2563eb !important;
color: #ffffff !important;
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28) !important;
}
.release-channel-page .table-actions .el-button--primary:hover,
.release-channel-page .footer-actions .el-button--primary:hover {
border-color: #111827 !important;
background: #111827 !important;
border-color: #1d4ed8 !important;
background: #1d4ed8 !important;
box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32) !important;
}
.release-channel-page .footer-actions .el-button:not(.el-button--primary) {
border-color: rgba(31, 41, 55, 0.4) !important;
border-color: rgba(37, 99, 235, 0.45) !important;
background: #ffffff !important;
color: #1f2937 !important;
color: #2563eb !important;
}
.release-channel-page .footer-actions .el-button:not(.el-button--primary):hover {
border-color: #1f2937 !important;
background: #f3f4f6 !important;
border-color: #2563eb !important;
background: #eff6ff !important;
}
</style>

@ -293,15 +293,15 @@ onMounted(async () => { try { const result = await getTrainingTaskByKey(TASK_KEY
<style scoped lang="scss">
/* ===== 页面级令牌(墨黑极简主题) ===== */
.promotion-page {
--student-accent: #1f2937;
--student-accent-deep: #111827;
--student-accent-light: #4b5563;
--student-accent-soft: #f3f4f6;
--student-danger: #d9554c;
--student-success: #4a9d6e;
--student-layer-1: #374151;
--student-layer-2: #43a294;
--student-layer-3: #8b6fc0;
--student-accent: #2563eb;
--student-accent-deep: #1d4ed8;
--student-accent-light: #3b82f6;
--student-accent-soft: #eff6ff;
--student-danger: #ef4444;
--student-success: #2ba471;
--student-layer-1: #1d4ed8;
--student-layer-2: #3b82f6;
--student-layer-3: #93c5fd;
--student-panel-border: #e5e7eb;
--student-card-bg: #ffffff;
--student-panel-bg: #fafbfc;
@ -795,36 +795,36 @@ onMounted(async () => { try { const result = await getTrainingTaskByKey(TASK_KEY
.step-action { display: none !important; }
/* 未到达项 hover */
/* 未到达项 hover:教育蓝边浅底 */
&:hover:not(.active):not(.complete) {
border-color: #1f2937 !important;
background: #f9fafb !important;
color: #1f2937 !important;
.step-marker { background: #1f2937 !important; color: #ffffff !important; }
border-color: #2563eb !important;
background: #eff6ff !important;
color: #2563eb !important;
.step-marker { background: #2563eb !important; color: #ffffff !important; }
}
/* 已完成 */
/* 已完成:绿色编号徽章 */
&.complete:not(.active) {
border-color: #dce9e2 !important;
border-color: #e5e7eb !important;
color: #374151 !important;
.step-marker { background: rgba(74, 157, 110, 0.12) !important; color: #3f8a5f !important; }
.step-marker { background: rgba(43, 164, 113, 0.12) !important; color: #16915f !important; }
&:hover {
border-color: #4a9d6e !important;
background: #f9fafb !important;
.step-marker { background: #4a9d6e !important; color: #ffffff !important; }
border-color: #2ba471 !important;
background: #f0fdf6 !important;
.step-marker { background: #2ba471 !important; color: #ffffff !important; }
}
}
/* 当前步骤 */
/* 当前步骤:教育蓝实底 */
&.active {
border-color: #1f2937 !important;
background: #1f2937 !important;
border-color: #2563eb !important;
background: #2563eb !important;
color: #ffffff !important;
font-weight: 700 !important;
.step-marker { background: #ffffff !important; color: #1f2937 !important; }
.step-marker { background: #ffffff !important; color: #2563eb !important; }
&:hover {
background: #111827 !important;
border-color: #111827 !important;
background: #1d4ed8 !important;
border-color: #1d4ed8 !important;
}
}
}
@ -854,9 +854,9 @@ onMounted(async () => { try { const result = await getTrainingTaskByKey(TASK_KEY
min-height: 36px;
height: 36px;
padding: 0 14px;
border: 1px solid #d1d5db;
border: 1px solid rgba(37, 99, 235, 0.45);
border-radius: 8px;
color: #374151;
color: #2563eb;
background: #ffffff;
box-shadow: none;
text-shadow: none;
@ -872,30 +872,30 @@ onMounted(async () => { try { const result = await getTrainingTaskByKey(TASK_KEY
.promotion-page .task-toolbar-button.el-button:hover,
.promotion-page .task-toolbar-button.el-button:focus {
border-color: #1f2937;
color: #1f2937;
background: #f9fafb;
box-shadow: 0 2px 6px rgba(17, 24, 39, 0.1);
border-color: #2563eb;
color: #2563eb;
background: #eff6ff;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}
.promotion-page .task-toolbar-button--submit.el-button {
border-color: #1f2937;
border-color: #2563eb;
color: #ffffff;
background: #1f2937;
box-shadow: 0 2px 8px rgba(17, 24, 39, 0.22);
background: #2563eb;
box-shadow: 0 1px 2px rgba(37, 99, 235, 0.35), 0 3px 10px rgba(37, 99, 235, 0.22);
}
.promotion-page .task-toolbar-button--submit.el-button:hover,
.promotion-page .task-toolbar-button--submit.el-button:focus {
border-color: #111827;
border-color: #1d4ed8;
color: #ffffff;
background: #111827;
box-shadow: 0 4px 12px rgba(17, 24, 39, 0.28);
background: #1d4ed8;
box-shadow: 0 2px 4px rgba(37, 99, 235, 0.4), 0 5px 14px rgba(29, 78, 216, 0.28);
}
.promotion-page .task-toolbar-button.el-button.is-loading {
border-color: #d1d5db;
color: #374151;
border-color: rgba(37, 99, 235, 0.45);
color: #2563eb;
background: #ffffff;
}
</style>

Loading…
Cancel
Save