|
@@ -4,7 +4,7 @@ import { useParams } from 'react-router-dom'
|
|
import TopCom from '@/components/TopCom'
|
|
import TopCom from '@/components/TopCom'
|
|
import { Button, Form, FormInstance, Input } from 'antd'
|
|
import { Button, Form, FormInstance, Input } from 'antd'
|
|
import ZinfoPop from '@/components/ZinfoPop'
|
|
import ZinfoPop from '@/components/ZinfoPop'
|
|
-import history from '@/utils/history'
|
|
|
|
|
|
+import history, { wxDownFu } from '@/utils/history'
|
|
import TextArea from 'antd/es/input/TextArea'
|
|
import TextArea from 'antd/es/input/TextArea'
|
|
import { CloudUploadOutlined, EyeOutlined, CloseOutlined } from '@ant-design/icons'
|
|
import { CloudUploadOutlined, EyeOutlined, CloseOutlined } from '@ant-design/icons'
|
|
import MyPopconfirm from '@/components/MyPopconfirm'
|
|
import MyPopconfirm from '@/components/MyPopconfirm'
|
|
@@ -13,8 +13,12 @@ import { MessageFu } from '@/utils/message'
|
|
import { A5_APIgetTemplateUrl, A8_APIsave, upFileFu } from '@/store/action/all'
|
|
import { A5_APIgetTemplateUrl, A8_APIsave, upFileFu } from '@/store/action/all'
|
|
import { FileType } from '@/types'
|
|
import { FileType } from '@/types'
|
|
import { baseURL } from '@/utils/http'
|
|
import { baseURL } from '@/utils/http'
|
|
|
|
+import useWxXcx from '@/components/AownUse/useWxXcx'
|
|
|
|
|
|
function A8proof() {
|
|
function A8proof() {
|
|
|
|
+ // 是否是微信小程序
|
|
|
|
+ const { isWXxcx } = useWxXcx()
|
|
|
|
+
|
|
const urlObj: any = useParams()
|
|
const urlObj: any = useParams()
|
|
|
|
|
|
const canRef = useRef('')
|
|
const canRef = useRef('')
|
|
@@ -129,9 +133,9 @@ function A8proof() {
|
|
label='负责人姓名'
|
|
label='负责人姓名'
|
|
name='name'
|
|
name='name'
|
|
rules={[{ required: true, message: '请输入负责人姓名!' }]}
|
|
rules={[{ required: true, message: '请输入负责人姓名!' }]}
|
|
- getValueFromEvent={e => e.target.value.replace(/\s+/g, '')}
|
|
|
|
|
|
+ getValueFromEvent={e => e.target.value.trim()}
|
|
>
|
|
>
|
|
- <Input placeholder='请输入内容,不超过6个字' maxLength={6} />
|
|
|
|
|
|
+ <Input placeholder='请输入内容' maxLength={6} />
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
|
|
|
<Form.Item
|
|
<Form.Item
|
|
@@ -153,7 +157,7 @@ function A8proof() {
|
|
label='单位名称'
|
|
label='单位名称'
|
|
name='unit'
|
|
name='unit'
|
|
rules={[{ required: true, message: '请输入单位名称!' }]}
|
|
rules={[{ required: true, message: '请输入单位名称!' }]}
|
|
- // getValueFromEvent={e => e.target.value.replace(/\s+/g, '')}
|
|
|
|
|
|
+ // getValueFromEvent={e => e.target.value.trim()}
|
|
>
|
|
>
|
|
<TextArea placeholder='请输入内容,不超过50个字' maxLength={50} />
|
|
<TextArea placeholder='请输入内容,不超过50个字' maxLength={50} />
|
|
</Form.Item>
|
|
</Form.Item>
|
|
@@ -163,9 +167,15 @@ function A8proof() {
|
|
{templateUrl ? (
|
|
{templateUrl ? (
|
|
<div className='A8lKa A8lKaDown'>
|
|
<div className='A8lKa A8lKaDown'>
|
|
<div className='A8lKaDown1'>认证模板文件</div>
|
|
<div className='A8lKaDown1'>认证模板文件</div>
|
|
- <a className='A8lKaDown2' href={baseURL + templateUrl} download='认证模板'>
|
|
|
|
- 下载
|
|
|
|
- </a>
|
|
|
|
|
|
+ {isWXxcx ? (
|
|
|
|
+ <div className='A8lKaDown2' onClick={() => wxDownFu(templateUrl)}>
|
|
|
|
+ 下载
|
|
|
|
+ </div>
|
|
|
|
+ ) : (
|
|
|
|
+ <a className='A8lKaDown2' href={baseURL + templateUrl} download='认证模板'>
|
|
|
|
+ 下载
|
|
|
|
+ </a>
|
|
|
|
+ )}
|
|
</div>
|
|
</div>
|
|
) : null}
|
|
) : null}
|
|
|
|
|