+
{{ (editForm.nickname || '员').slice(0, 1) }}
@@ -398,6 +398,7 @@ watch(editModalVisible, syncEditDraft)
height: 62px;
overflow: hidden;
border-radius: 22px;
+ background: transparent;
color: var(--accent);
font-size: 24px;
font-weight: 900;
@@ -415,6 +416,16 @@ watch(editModalVisible, syncEditDraft)
object-fit: cover;
}
+.employee-avatar span,
+.avatar-preview span {
+ display: grid;
+ place-items: center;
+ width: 100%;
+ height: 100%;
+ border-radius: inherit;
+ background: var(--accent-soft);
+}
+
.employee-hero h2,
.employee-hero p {
margin: 0;
@@ -492,6 +503,7 @@ watch(editModalVisible, syncEditDraft)
height: 64px;
overflow: hidden;
border-radius: 22px;
+ background: transparent;
color: var(--accent);
font-size: 24px;
font-weight: 900;
diff --git a/JY-Salon-Front/src/views/EmployeesView.vue b/JY-Salon-Front/src/views/EmployeesView.vue
index 432697ad..fe022edf 100644
--- a/JY-Salon-Front/src/views/EmployeesView.vue
+++ b/JY-Salon-Front/src/views/EmployeesView.vue
@@ -4,7 +4,7 @@
-
+
{{ (employee.name || employee.nickname || '员').slice(0, 1) }}
@@ -191,11 +191,21 @@ watch(createModalVisible, syncCreateDraft)
height: 58px;
overflow: hidden;
border-radius: 20px;
+ background: transparent;
color: var(--accent);
font-size: 22px;
font-weight: 900;
}
+.employee-avatar span {
+ display: grid;
+ place-items: center;
+ width: 100%;
+ height: 100%;
+ border-radius: inherit;
+ background: var(--accent-soft);
+}
+
.employee-avatar img {
width: 100%;
height: 100%;