This commit is contained in:
@@ -307,7 +307,10 @@ export default function UserIndex() {
|
|||||||
{/* Profile Card */}
|
{/* Profile Card */}
|
||||||
<View className='profile-card'>
|
<View className='profile-card'>
|
||||||
<View className='avatar-container' onClick={handleAvatarClick}>
|
<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' />}
|
{userInfo && <View className='online-dot' />}
|
||||||
</View>
|
</View>
|
||||||
<View className='info-col'>
|
<View className='info-col'>
|
||||||
@@ -341,14 +344,14 @@ export default function UserIndex() {
|
|||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<Text className='uid'>ID: {userInfo ? (userInfo.phone_number || userInfo.id || '----') : '----'}</Text>
|
<Text className='uid'>ID: {userInfo?.phone_number || '未绑定手机号'}</Text>
|
||||||
{!userInfo?.phone_number && (
|
{!userInfo?.phone_number && (
|
||||||
<View className='login-btns'>
|
<View className='login-btns'>
|
||||||
<Button
|
<Button
|
||||||
className='btn-login primary'
|
className='btn-login primary'
|
||||||
onClick={() => setShowLoginModal(true)}
|
onClick={() => setShowLoginModal(true)}
|
||||||
>
|
>
|
||||||
立即登录
|
{userInfo ? '绑定手机号' : '立即登录'}
|
||||||
</Button>
|
</Button>
|
||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user