From 29b2a3566143e59fbd5099f3fa378c7303ce6c40 Mon Sep 17 00:00:00 2001 From: qinzhenpen Date: Tue, 22 Sep 2026 10:35:46 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E7=A7=BB=E9=99=A4=E5=90=84=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=86=97=E4=BD=99=E7=9A=84=E9=A1=B5=E9=9D=A2=E7=94=BB?= =?UTF-8?q?=E5=B8=83=E5=92=8C=E8=A1=8C=E9=AB=98=E6=A0=B7=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E5=85=A8=E5=B1=80=E6=A0=B7=E5=BC=8F=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 移除了20+个页面内单独编写的app-main背景覆盖和行高样式代码 2. 仅保留学生首页的padding和margin清零调整,背景渐变由student-training.scss统一管理 3. 简化代码结构,将页面样式统一收敛到全局配置,减少重复代码 --- src/assets/styles/student-training.scss | 3 +- src/views/analysis-of-students/analysis.vue | 13 --------- src/views/analysis-of-students/dialogue.vue | 8 ----- src/views/assessment/diagnosis.vue | 8 ----- src/views/assessment/optimization.vue | 8 ----- src/views/channel/supplier.vue | 8 ----- src/views/demand/business-feasibility.vue | 9 ------ .../competitive-environment-analysis.vue | 8 ----- src/views/demand/consumer-behavior.vue | 5 ---- src/views/demand/consumer-scenario.vue | 8 ----- src/views/demand/feature-conversion.vue | 8 ----- src/views/demand/industry-demand-analysis.vue | 8 ----- src/views/demand/people.vue | 5 ---- src/views/exam/index.vue | 10 ------- src/views/exam/result.vue | 10 ------- src/views/exam/take.vue | 10 ------- src/views/foundation/new-product-survey.vue | 10 ------- .../product-development-factors.vue | 11 ------- .../product-development-process.vue | 11 ------- src/views/product/after-sales-service.vue | 8 ----- src/views/product/differentiation.vue | 8 ----- src/views/product/hardware-cost.vue | 8 ----- .../product/market-opportunity-selection.vue | 8 ----- src/views/product/price.vue | 8 ----- src/views/product/requirements-doc.vue | 8 ----- src/views/product/structure.vue | 8 ----- src/views/student/index.vue | 9 ++---- src/views/test-report/index.vue | 8 ----- src/views/test/index.vue | 29 ++++++++++--------- src/views/test/promotion.vue | 8 ----- src/views/training/GenericTrainingPage.vue | 9 ------ 31 files changed, 21 insertions(+), 259 deletions(-) diff --git a/src/assets/styles/student-training.scss b/src/assets/styles/student-training.scss index 1212308..27a1beb 100644 --- a/src/assets/styles/student-training.scss +++ b/src/assets/styles/student-training.scss @@ -85,7 +85,8 @@ * layout's older black gradient as a vertical block beside the sidebar. */ #app .studentLayout .app-main:has(.student-training-shell), -#app .teacherLayout .app-main:has(.student-training-shell) { +#app .teacherLayout .app-main:has(.student-training-shell), +#app .studentLayout .app-main:has(.student-home) { background: linear-gradient(135deg, #f5f8fc 0%, #eaf2fb 52%, #f3f8ff 100%) !important; } diff --git a/src/views/analysis-of-students/analysis.vue b/src/views/analysis-of-students/analysis.vue index 5aad833..1648d96 100644 --- a/src/views/analysis-of-students/analysis.vue +++ b/src/views/analysis-of-students/analysis.vue @@ -337,16 +337,3 @@ onMounted(() => { } } - - diff --git a/src/views/analysis-of-students/dialogue.vue b/src/views/analysis-of-students/dialogue.vue index 3ec0dbf..67669ee 100644 --- a/src/views/analysis-of-students/dialogue.vue +++ b/src/views/analysis-of-students/dialogue.vue @@ -673,11 +673,3 @@ const exportData = () => { } } - - diff --git a/src/views/assessment/diagnosis.vue b/src/views/assessment/diagnosis.vue index c50320f..3fc0745 100644 --- a/src/views/assessment/diagnosis.vue +++ b/src/views/assessment/diagnosis.vue @@ -1079,14 +1079,6 @@ button.is-disabled { - - diff --git a/src/views/exam/result.vue b/src/views/exam/result.vue index 69bed9d..bf2c7c0 100644 --- a/src/views/exam/result.vue +++ b/src/views/exam/result.vue @@ -261,13 +261,3 @@ aside { } } - - diff --git a/src/views/exam/take.vue b/src/views/exam/take.vue index 53b162f..b613ccc 100644 --- a/src/views/exam/take.vue +++ b/src/views/exam/take.vue @@ -384,13 +384,3 @@ function formatTime(v){return v?new Date(v).toLocaleString("zh-CN",{hour12:false } } - - diff --git a/src/views/foundation/new-product-survey.vue b/src/views/foundation/new-product-survey.vue index cd5f2ca..f075662 100644 --- a/src/views/foundation/new-product-survey.vue +++ b/src/views/foundation/new-product-survey.vue @@ -1960,16 +1960,6 @@ function exportOutcome() { 所有选择器均以 .new-product-value-page 为根,不影响其他页面。 --> diff --git a/src/views/test/index.vue b/src/views/test/index.vue index f74f850..9ed4b55 100644 --- a/src/views/test/index.vue +++ b/src/views/test/index.vue @@ -405,6 +405,17 @@ onMounted(async () => { try { const result = await getTrainingTaskByKey(TASK_KEY .release-channel-toolbar { flex: 0 0 auto; + width: 320px; + + :deep(.material-actions) { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 8px; + } + + :deep(.material-button) { + width: 100%; + } } /* ===== task-card:透明容器 ===== */ @@ -673,14 +684,6 @@ onMounted(async () => { try { const result = await getTrainingTaskByKey(TASK_KEY