This commit is contained in:
@@ -307,7 +307,10 @@ export default function UserIndex() {
|
||||
{/* Profile Card */}
|
||||
<View className='profile-card'>
|
||||
<View className='avatar-container' onClick={handleAvatarClick}>
|
||||
<Image src={userInfo?.avatar_url || 'https://via.placeholder.com/150/00b96b/FFFFFF?text=USER'} className='avatar' />
|
||||
<Image
|
||||
src={userInfo?.avatar_url || `https://api.dicebear.com/7.x/miniavs/svg?seed=${userInfo?.id || 'guest'}`}
|
||||
className='avatar'
|
||||
/>
|
||||
{userInfo && <View className='online-dot' />}
|
||||
</View>
|
||||
<View className='info-col'>
|
||||
@@ -341,14 +344,14 @@ export default function UserIndex() {
|
||||
</View>
|
||||
)}
|
||||
|
||||
<Text className='uid'>ID: {userInfo ? (userInfo.phone_number || userInfo.id || '----') : '----'}</Text>
|
||||
<Text className='uid'>ID: {userInfo?.phone_number || '未绑定手机号'}</Text>
|
||||
{!userInfo?.phone_number && (
|
||||
<View className='login-btns'>
|
||||
<Button
|
||||
className='btn-login primary'
|
||||
onClick={() => setShowLoginModal(true)}
|
||||
>
|
||||
立即登录
|
||||
{userInfo ? '绑定手机号' : '立即登录'}
|
||||
</Button>
|
||||
</View>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user