|
|
|
@ -22,6 +22,7 @@ interface List { |
|
|
|
|
src: string, |
|
|
|
|
type?: number |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function jump(token: string | null, type?: number) { |
|
|
|
|
if (!token) { |
|
|
|
|
Taro.navigateTo({url: '/pages/login/login'}) |
|
|
|
@ -36,7 +37,7 @@ const My: FC = () => { |
|
|
|
|
const {token, company, setCompany, user} = Profile.useContainer() |
|
|
|
|
const [companyShow, setCompanyShow] = useState(false) |
|
|
|
|
const [companyList, setCompanyList] = useState<Company[]>([]) |
|
|
|
|
const [courseRecord,setCourseRecord] = useState<Course | undefined>(undefined) |
|
|
|
|
const [courseRecord, setCourseRecord] = useState<Course | undefined>(undefined) |
|
|
|
|
const [navbarOpacity, setNavbarOpacity] = useState('0') |
|
|
|
|
const navbarHeight = globalData.statusBarHeight + globalData.textBarHeight; |
|
|
|
|
const [auditMode, setAuditMode] = useState(true) |
|
|
|
@ -123,22 +124,16 @@ const My: FC = () => { |
|
|
|
|
</> |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Service/> |
|
|
|
|
|
|
|
|
|
<PageContainer |
|
|
|
|
overlayStyle={'background:rgba(0,0,0,0.3)'} |
|
|
|
|
overlayStyle='background:rgba(0,0,0,0.3)' |
|
|
|
|
position='bottom' |
|
|
|
|
round |
|
|
|
|
show={companyShow} |
|
|
|
|
onClickOverlay={() => setCompanyShow(false)}> |
|
|
|
|
<View className="px-3 py-5"> |
|
|
|
|
<View className="font-32 pb-3" style={{ |
|
|
|
|
display: 'flex', |
|
|
|
|
justifyContent: 'center', |
|
|
|
|
borderBottom: '2rpx solid #f5f8f7' |
|
|
|
|
}}> |
|
|
|
|
选择公司</View> |
|
|
|
|
<View className={styles.corporation}>选择公司</View> |
|
|
|
|
{ |
|
|
|
|
companyList.length >= 1 && |
|
|
|
|
companyList.map((d, idx) => |
|
|
|
|