This commit is contained in:
张成
2025-11-09 00:21:49 +08:00
parent 7a53d74e57
commit db9a4a2c83
6 changed files with 15 additions and 64 deletions

View File

@@ -23,6 +23,7 @@ const BackNavbar: React.FC<BackNavbarProps> = ({
className = ''
}) => {
const userInfo = useUserInfo();
const { statusBarHeight, navBarHeight, totalHeight } = getNavbarHeight();
const handleBack = () => {
@@ -39,7 +40,7 @@ const BackNavbar: React.FC<BackNavbarProps> = ({
style={{
paddingTop: `${statusBarHeight}px`,
height: `${totalHeight}px`,
backgroundColor: backgroundColor || "#ffffff"
backgroundColor: backgroundColor || "#fafafa"
}}
>
<View
@@ -55,7 +56,7 @@ const BackNavbar: React.FC<BackNavbarProps> = ({
{showAvatar && (
<Image
className="navbar-avatar"
src={userInfo?.userInfo?.avatar_url}
src={userInfo?.avatar_url || require('@/static/userInfo/default_avatar.svg')}
mode="aspectFill"
/>
)}