|
|
|
@ -12,21 +12,24 @@ const Info: FC<Props> = ({data}) => { |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<> |
|
|
|
|
<View className={styles.box}> |
|
|
|
|
<Img width={120} height={120} src={data?.avatar || ''} className={styles.image}/> |
|
|
|
|
<View className={styles.box} style={{height: '184rpx'}}> |
|
|
|
|
<Img width={120} height={120} src={data?.avatar || ''} className={styles.image} errorType='avatar'/> |
|
|
|
|
<View className='ml-2'> |
|
|
|
|
<View> |
|
|
|
|
<Text className='font-weight'>{data?.name}</Text> |
|
|
|
|
<Text className='font-weight font-32'>{data?.name}</Text> |
|
|
|
|
<Text |
|
|
|
|
className={data?.is_lock ? styles.tag_muted : styles.tag}> |
|
|
|
|
{data?.is_lock ? '禁用' : '正常'} |
|
|
|
|
</Text> |
|
|
|
|
</View> |
|
|
|
|
<View className='text-muted font-24 mt-2'>{['学员', '管理员', '超级管理员'][data?.role_type || 0]}</View> |
|
|
|
|
<View className='text-muted font-28' |
|
|
|
|
style={{marginTop: '2px'}}> |
|
|
|
|
{['学员', '管理员', '超级管理员'][data?.role_type || 0]} |
|
|
|
|
</View> |
|
|
|
|
</View> |
|
|
|
|
</View> |
|
|
|
|
|
|
|
|
|
<View className={`${styles.box} mt-3`} style={{display: 'block'}}> |
|
|
|
|
<View className={`${styles.box}`} style={{display: 'block', margin: '16rpx 0', padding: '0 32rpx'}}> |
|
|
|
|
<View className={styles.information} style={{borderBottom: "1px solid #F5F8F7"}}> |
|
|
|
|
<Text style={{width: '100px', display: 'inline-block'}}>学员编号</Text> |
|
|
|
|
<Text>{data?.id}号</Text> |
|
|
|
|