From fe35a48123bb95fd2a81ae597df3299645d52aa1 Mon Sep 17 00:00:00 2001 From: Agent Date: Thu, 26 Mar 2026 12:53:23 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A6=96=E9=A1=B5UI=EF=BC=8C?= =?UTF-8?q?=E7=BE=8E=E5=8C=96=E7=95=8C=E9=9D=A2=E8=AE=BE=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/index.vue | 488 +++++++++++++++++++++++++++----------- 1 file changed, 345 insertions(+), 143 deletions(-) diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 67b51f1..314b69a 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -1,111 +1,142 @@ @@ -137,6 +168,11 @@ export default { if (this.isSales) return '销售员' if (this.isCustomer) return '顾客' return '游客' + }, + roleClass() { + if (this.isAdmin) return 'admin' + if (this.isCustomer) return 'customer' + return '' } }, onLoad() { @@ -207,94 +243,122 @@ export default {