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