{{ customer.contactPhone || customer.phone || '未填写手机号' }}
@@ -159,11 +162,24 @@ onMounted(() => { } .avatar { - display: grid; - place-items: center; width: 58px; height: 58px; +} + +.avatar img, +.avatar span { + display: grid; + place-items: center; + width: 100%; + height: 100%; border-radius: 20px; +} + +.avatar img { + object-fit: cover; +} + +.avatar span { background: var(--accent-soft); color: var(--accent); font-size: 24px; diff --git a/JY-Salon-Front/src/views/CustomersView.vue b/JY-Salon-Front/src/views/CustomersView.vue index 19257d99..db55fe63 100644 --- a/JY-Salon-Front/src/views/CustomersView.vue +++ b/JY-Salon-Front/src/views/CustomersView.vue @@ -9,8 +9,12 @@