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