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 {