From dd187cf15cb1e9f1af9c86929cb89b8a834c6843 Mon Sep 17 00:00:00 2001 From: let5sne Date: Thu, 23 Jul 2026 01:47:26 +0800 Subject: [PATCH] =?UTF-8?q?feat(mobile-uni):=20=E5=85=A8=E9=9D=A2=E9=87=8D?= =?UTF-8?q?=E6=9E=84=E2=80=9C=E5=AD=A6=E2=80=9D=EF=BC=88=E5=AD=A6=E4=B9=A0?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=EF=BC=89=E9=A1=B5=E9=9D=A2=E4=B8=BA=E5=8E=9F?= =?UTF-8?q?=E7=94=9FApp=E5=88=86=E6=AE=B5=E8=A7=86=E5=9B=BE=E6=9E=B6?= =?UTF-8?q?=E6=9E=84=EF=BC=8C=E6=96=B0=E5=A2=9ESegmented=20Tabs=E4=B8=8E?= =?UTF-8?q?=E6=82=AC=E6=B5=AEDock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile-uni/src/pages/user/learning/index.vue | 1498 ++++++++++-------- 1 file changed, 817 insertions(+), 681 deletions(-) diff --git a/mobile-uni/src/pages/user/learning/index.vue b/mobile-uni/src/pages/user/learning/index.vue index 2e18409c..be35aa27 100644 --- a/mobile-uni/src/pages/user/learning/index.vue +++ b/mobile-uni/src/pages/user/learning/index.vue @@ -1,17 +1,17 @@ @@ -346,6 +471,32 @@ const examLoading = ref(false); const requests = createPageRequestScope(); let visibleAccountKey = ''; +const activeTab = ref<'tasks' | 'sop' | 'exam'>('tasks'); + +const assignmentAccentClass = (source?: string) => { + if (source === 'daily') return 'accent-daily'; + if (source === 'retry') return 'accent-retry'; + return 'accent-practice'; +}; + +const assignmentTagClass = (source?: string) => { + if (source === 'daily') return 'tag-daily'; + if (source === 'retry') return 'tag-retry'; + return 'tag-practice'; +}; + +const assignmentTagIcon = (source?: string) => { + if (source === 'daily') return 'compose'; + if (source === 'retry') return 'refresh'; + return 'flag-filled'; +}; + +const assignmentTagColor = (source?: string) => { + if (source === 'daily') return '#2d80ff'; + if (source === 'retry') return '#d97706'; + return '#e60012'; +}; + const defaultTopic = computed(() => `${positionProfile.value.value} 岗前 SOP`); const topics = computed(() => buildLearningTopics( assignments.value, @@ -731,487 +882,507 @@ onUnload(invalidateRequests);