|
|
|
@ -25,6 +25,7 @@ const SpotMeeting: FC = () => { |
|
|
|
|
const [loading, setLoading] = useState(false) |
|
|
|
|
const [status, setStatus] = useState(0) // 状态
|
|
|
|
|
const [id, setId] = useState<number | undefined>(params.id ? Number(params.id) : undefined) |
|
|
|
|
const pathUrl = process.env.TARO_ENV === 'h5' ? '/official/qrcode' : '/wechat/link' |
|
|
|
|
const {company} = Profile.useContainer() |
|
|
|
|
|
|
|
|
|
function setData(res: Meeting | null) { |
|
|
|
@ -119,6 +120,9 @@ const SpotMeeting: FC = () => { |
|
|
|
|
//存储二维码
|
|
|
|
|
handleWriteFile() |
|
|
|
|
}, |
|
|
|
|
fail() { |
|
|
|
|
Taro.showToast({title: '保存授权失败', icon: "error"}) |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
handleWriteFile() |
|
|
|
@ -133,7 +137,7 @@ const SpotMeeting: FC = () => { |
|
|
|
|
/** 获取二维码地址 */ |
|
|
|
|
const downUrl = (id: number, down = true) => { |
|
|
|
|
Taro.showLoading({title: '加载二维码'}) |
|
|
|
|
const url = process.env.TARO_APP_API + '/official/qrcode?' + 'meeting_id=' + id + '&path=' + path |
|
|
|
|
const url = process.env.TARO_APP_API + pathUrl + '?meeting_id=' + id + '&path=' + path |
|
|
|
|
|
|
|
|
|
if (process.env.TARO_ENV !== 'h5') { |
|
|
|
|
Taro.downloadFile({ |
|
|
|
@ -302,17 +306,6 @@ 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>*/} |
|
|
|
|
|
|
|
|
|
<View className='flex justify-between'> |
|
|
|
|
{ |
|
|
|
|
id !== undefined && <> |
|
|
|
|