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