From aeda6f4cd31343ac8d4de042cf5c9fc36464b102 Mon Sep 17 00:00:00 2001 From: yml2213 Date: Wed, 4 Nov 2026 20:12:59 +0800 Subject: [PATCH] =?UTF-8?q?style(mobile):=20=E4=BC=98=E5=8C=96=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E4=B8=AD=E5=BF=83=E5=92=8C=E7=AB=99=E5=86=85=E4=BF=A1?= =?UTF-8?q?=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/package.json | 3 +- .../auth/views/MobileNotificationsView.vue | 269 +++++++++++++---- .../features/auth/views/MobileProfileView.css | 273 ++++++++++++------ .../features/auth/views/MobileProfileView.vue | 79 +++-- 4 files changed, 455 insertions(+), 169 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index c7ac654..baa48d8 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -4,7 +4,8 @@ "private": true, "type": "module", "scripts": { - "dev": "vue-tsc -b --noEmit --watch --preserveWatchOutput & vite --host 0.0.0.0", + "dev": "vite --host 0.0.0.0", + "dev:typecheck": "vue-tsc -b --noEmit --watch --preserveWatchOutput", "build": "vue-tsc -b --noEmit && vite build", "preview": "vite preview --host 0.0.0.0", "typecheck": "vue-tsc -b --noEmit", diff --git a/frontend/src/features/auth/views/MobileNotificationsView.vue b/frontend/src/features/auth/views/MobileNotificationsView.vue index a2c8ec1..257721d 100644 --- a/frontend/src/features/auth/views/MobileNotificationsView.vue +++ b/frontend/src/features/auth/views/MobileNotificationsView.vue @@ -93,6 +93,30 @@ function typeLabel(type: string) { } return map[type] || '系统' } + +function typeIcon(type: string) { + const map: Record = { + order: 'orders-o', + handoff: 'logistics', + checkout: 'balance-list-o', + settlement: 'gold-coin-o', + dispute: 'warning-o', + arbitration: 'warning-o', + timeout: 'clock-o', + listing_review: 'certificate', + listing_admin: 'shop-o', + order_admin: 'service-o', + } + return map[type] || 'volume-o' +} + +function typeTone(type: string) { + if (type === 'checkout' || type === 'settlement') return 'money' + if (type === 'dispute' || type === 'arbitration' || type === 'timeout') return 'warning' + if (type === 'listing_review' || type === 'listing_admin') return 'review' + if (type === 'order' || type === 'handoff' || type === 'order_admin') return 'order' + return 'system' +}