|
|
@ -1,5 +1,5 @@ |
|
|
|
import {FC} from "react"; |
|
|
|
import {FC} from "react"; |
|
|
|
import { Text, View} from "@tarojs/components"; |
|
|
|
import {Text, View} from "@tarojs/components"; |
|
|
|
import styles from '../userInfo.module.scss' |
|
|
|
import styles from '../userInfo.module.scss' |
|
|
|
import Img from "@/components/image/image"; |
|
|
|
import Img from "@/components/image/image"; |
|
|
|
|
|
|
|
|
|
|
@ -12,21 +12,24 @@ const Info: FC<Props> = ({data}) => { |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<> |
|
|
|
<> |
|
|
|
<View className={styles.box}> |
|
|
|
<View className={styles.box} style={{height: '184rpx'}}> |
|
|
|
<Img width={120} height={120} src={data?.avatar || ''} className={styles.image}/> |
|
|
|
<Img width={120} height={120} src={data?.avatar || ''} className={styles.image} errorType='avatar'/> |
|
|
|
<View className='ml-2'> |
|
|
|
<View className='ml-2'> |
|
|
|
<View> |
|
|
|
<View> |
|
|
|
<Text className='font-weight'>{data?.name}</Text> |
|
|
|
<Text className='font-weight font-32'>{data?.name}</Text> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
className={data?.is_lock ? styles.tag_muted : styles.tag}> |
|
|
|
className={data?.is_lock ? styles.tag_muted : styles.tag}> |
|
|
|
{data?.is_lock ? '禁用' : '正常'} |
|
|
|
{data?.is_lock ? '禁用' : '正常'} |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
</View> |
|
|
|
</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> |
|
|
|
</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"}}> |
|
|
|
<View className={styles.information} style={{borderBottom: "1px solid #F5F8F7"}}> |
|
|
|
<Text style={{width: '100px', display: 'inline-block'}}>学员编号</Text> |
|
|
|
<Text style={{width: '100px', display: 'inline-block'}}>学员编号</Text> |
|
|
|
<Text>{data?.id}号</Text> |
|
|
|
<Text>{data?.id}号</Text> |
|
|
|