|
|
@ -7,7 +7,7 @@ import {getCurrentInstance} from "@tarojs/runtime"; |
|
|
|
import {regexTel} from "@/utils/regu"; |
|
|
|
import {regexTel} from "@/utils/regu"; |
|
|
|
|
|
|
|
|
|
|
|
const Meeting: FC = () => { |
|
|
|
const Meeting: FC = () => { |
|
|
|
const {depid, start_time, end_time} = getCurrentInstance()?.router?.params as unknown as Offline |
|
|
|
const {meeting_id} = getCurrentInstance()?.router?.params as unknown as { meeting_id: string } |
|
|
|
const {setUser, setToken, setCompany} = Profile.useContainer() |
|
|
|
const {setUser, setToken, setCompany} = Profile.useContainer() |
|
|
|
const [h5params, setH5Params] = useState<LoginParams | null>(null) |
|
|
|
const [h5params, setH5Params] = useState<LoginParams | null>(null) |
|
|
|
const router = useRouter() |
|
|
|
const router = useRouter() |
|
|
@ -18,22 +18,17 @@ const Meeting: FC = () => { |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, []) |
|
|
|
}, []) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Taro.useLoad(() => { |
|
|
|
Taro.useLoad(() => { |
|
|
|
const time = Date.now() |
|
|
|
loginApi.meetingInfo(meeting_id).then(res => { |
|
|
|
if (!depid |
|
|
|
if (res !== 1) { |
|
|
|
|| !start_time |
|
|
|
Taro.showModal({ |
|
|
|
|| !end_time |
|
|
|
title: '二维码已过期', |
|
|
|
|| time > new Date(end_time).getTime() |
|
|
|
success() { |
|
|
|
|| time < new Date(start_time).getTime()) { |
|
|
|
Taro.reLaunch({url: '/pages/login/login'}) |
|
|
|
Taro.showModal({ |
|
|
|
} |
|
|
|
title: '二维码已过期', |
|
|
|
}) |
|
|
|
success() { |
|
|
|
} |
|
|
|
Taro.reLaunch({url: '/pages/login/login'}) |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
function submit(e) { |
|
|
|
function submit(e) { |
|
|
@ -82,7 +77,7 @@ const Meeting: FC = () => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<View className='h-10 bg-white p-2'> |
|
|
|
<View className='h-10 bg-white px-2'> |
|
|
|
<Form className='form' onSubmit={submit}> |
|
|
|
<Form className='form' onSubmit={submit}> |
|
|
|
|
|
|
|
|
|
|
|
<View className='item'> |
|
|
|
<View className='item'> |
|
|
|