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