|
|
|
@ -1,5 +1,5 @@ |
|
|
|
|
import {FC, useCallback, useEffect, useState} from "react"; |
|
|
|
|
import {Form, Image, Input, Picker, Textarea, View} from "@tarojs/components"; |
|
|
|
|
import {Form, Image, Input, Picker, View} from "@tarojs/components"; |
|
|
|
|
import Taro, {getSetting, authorize} from "@tarojs/taro"; |
|
|
|
|
import {curriculum, Meeting, meetingAPi} from "@/api"; |
|
|
|
|
import {formatDate} from "@/utils/time"; |
|
|
|
@ -227,14 +227,23 @@ const SpotMeeting: FC = () => { |
|
|
|
|
<View className={styles.page}> |
|
|
|
|
|
|
|
|
|
<View className={styles.box}> |
|
|
|
|
<View>填完信息才能生成二维码</View> |
|
|
|
|
<View>现场会</View> |
|
|
|
|
{process.env.TARO_ENV === 'h5' && <View className='text-center text-muted'>微信公众号,浏览器中请截图保存</View>} |
|
|
|
|
|
|
|
|
|
<View className={styles.code}> |
|
|
|
|
{ |
|
|
|
|
imgUrl |
|
|
|
|
? <Image src={imgUrl} mode='aspectFit' onLoad={imagLoad} onError={imagLoad} fadeIn/> |
|
|
|
|
: <Image src={code} mode='aspectFit'/> |
|
|
|
|
? <Image |
|
|
|
|
src={imgUrl} |
|
|
|
|
mode='aspectFit' |
|
|
|
|
style={{width: '150px'}} |
|
|
|
|
onLoad={imagLoad} |
|
|
|
|
onError={imagLoad} |
|
|
|
|
fadeIn/> |
|
|
|
|
: <> |
|
|
|
|
<View className={styles.empty}>填完写完整信息</View> |
|
|
|
|
<Image src={code} mode='aspectFit' style={{width: '150px'}}/> |
|
|
|
|
</> |
|
|
|
|
} |
|
|
|
|
{status === 2 && <Image src={failure} className={styles.failure}/>} |
|
|
|
|
</View> |
|
|
|
@ -279,16 +288,16 @@ const SpotMeeting: FC = () => { |
|
|
|
|
<PopPut title='选择部门' content={manages?.find(x => x.id == depid)?.name}/> |
|
|
|
|
</Picker> |
|
|
|
|
|
|
|
|
|
<Textarea |
|
|
|
|
value={description} |
|
|
|
|
className='Textarea' |
|
|
|
|
disabled={!!params.id || status === 1} |
|
|
|
|
placeholder='请输入描述' |
|
|
|
|
maxlength={255} |
|
|
|
|
name='description' |
|
|
|
|
onInput={(e) => setDescription(e.detail.value)} |
|
|
|
|
style={{height: '60px'}}> |
|
|
|
|
</Textarea> |
|
|
|
|
{/*<Textarea*/} |
|
|
|
|
{/* value={description}*/} |
|
|
|
|
{/* className='Textarea'*/} |
|
|
|
|
{/* disabled={!!params.id || status === 1}*/} |
|
|
|
|
{/* placeholder='请输入描述'*/} |
|
|
|
|
{/* maxlength={255}*/} |
|
|
|
|
{/* name='description'*/} |
|
|
|
|
{/* onInput={(e) => setDescription(e.detail.value)}*/} |
|
|
|
|
{/* style={{height: '60px'}}>*/} |
|
|
|
|
{/*</Textarea>*/} |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
id !== undefined && <> |
|
|
|
|