From b4585c93a69e7f8f7b87cd7ee3af26557ed27db8 Mon Sep 17 00:00:00 2001 From: chenghuan Date: Mon, 1 Dec 2025 16:52:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=A4=B4=E5=83=8F=E6=94=B9=E4=B8=BA=E5=90=B4=E9=97=A8=E5=9B=BD?= =?UTF-8?q?=E9=99=85logo=EF=BC=9B=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=8F=90=E7=A4=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/user/profile/index.vue | 11 +++++------ style/ui.scss | 4 ++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/pages/user/profile/index.vue b/pages/user/profile/index.vue index 6ca570c..6d54bd7 100644 --- a/pages/user/profile/index.vue +++ b/pages/user/profile/index.vue @@ -7,7 +7,7 @@ @@ -148,7 +148,7 @@ const { t } = useI18n() const userStore = useUserStore() // 默认头像 -const defaultAvatar = '/static/home_icon.png' +const defaultAvatar = '/static/logo.png' // 字段列表 const fields = computed(() => [ @@ -200,10 +200,9 @@ const avatarUrl = ref('') const userInfo = ref({}) // 用户信息 const getData = async () => { const res = await getUserInfo() - if (res.result) { - userStore.setUserInfo(res.result) - userInfo.value = res.result - } + userStore.setUserInfo(res.result) + userInfo.value = res.result + userInfo.value.avatar = res.result.avatar || defaultAvatar } /** diff --git a/style/ui.scss b/style/ui.scss index 940e4b8..7e71e68 100644 --- a/style/ui.scss +++ b/style/ui.scss @@ -109,10 +109,10 @@ uni-textarea { // popup .wd-popup { - z-index: 9999 !important; + z-index: 99 !important; } .wd-overlay { - z-index: 9998 !important; + z-index: 98 !important; } .wd-popup-wrapper { .wd-popup {