diff --git a/src/components/OrderDetailModal/components/File/File.css b/src/components/OrderDetailModal/components/File/File.css index 42d718f..e625254 100644 --- a/src/components/OrderDetailModal/components/File/File.css +++ b/src/components/OrderDetailModal/components/File/File.css @@ -17,4 +17,10 @@ .upFileBox { display: flex; margin-top: 20px; + align-items: center; +} +.phoneBoxLeft{ + display: flex; + flex-direction: column; + } \ No newline at end of file diff --git a/src/components/OrderDetailModal/components/File/File.tsx b/src/components/OrderDetailModal/components/File/File.tsx index 3d2cb07..77eddd1 100644 --- a/src/components/OrderDetailModal/components/File/File.tsx +++ b/src/components/OrderDetailModal/components/File/File.tsx @@ -1,11 +1,12 @@ import { useEffect, useState } from 'react' -import { Table, Space, Modal,Input } from "antd" +import { Table, Space, Modal, Input, Form } from "antd" import { sellSupplementList, buySupplementList, supplementDetail } from '../../../../request/api' const { Column } = Table; import useMessage from "antd/es/message/useMessage"; import './File.css' const { TextArea } = Input; export default function File(props: any) { + const [form] = Form.useForm(); const [messageApi, messageContext] = useMessage(); const [correctionId, setCorrectionId] = useState('') // 点击查看内容选中的id // 补充资料弹窗 @@ -68,7 +69,7 @@ export default function File(props: any) { } } // 补充资料详情 - const[detailData, setDetailData] = useState({}) + const [detailData, setDetailData] = useState({}) const getSupplementDetail = async (id: string) => { try { const res: any = await supplementDetail(id) @@ -205,30 +206,95 @@ export default function File(props: any) {
主题
内容
附件
- + {detailData.correctionFile ? ( +
材料列表
+ ) : ( +
+ 无 +
+ )}
在下面填写您补充的内容
+
{ + + console.log(value); + + }} + onFinishFailed={() => { + messageApi.open({ + type: 'error', + content: '请填写完整信息', + }) + }} + autoComplete="off" + > +
+
内容
+ + + + +
+
+
附件
+ + + + +
+ + + + +
diff --git a/src/layout/head/Head.tsx b/src/layout/head/Head.tsx index 9bddbfb..cc73172 100644 --- a/src/layout/head/Head.tsx +++ b/src/layout/head/Head.tsx @@ -12,6 +12,13 @@ import { Dropdown, MenuProps, message, Modal, Space, Spin, Input, Table, Form, Button // Form, Button, InputNumber } from "antd"; +import { + CloseOutlined +} from '@ant-design/icons'; +import title from '../../static/Phone/title.png' +import titleB from '../../static/Phone/titleB.png' +import line from '../../static/Phone/line.png' + import pack from '../../static/pack.png' // import type { TableProps, FormProps } from 'antd'; interface DataType { @@ -159,13 +166,13 @@ export default function Head() { } } const onFinish = async (values: any) => { - // console.log('Success:', values); + console.log('Success:', values); try { const res = await checkPhone(values.phone) // console.log(res); if (res.data == 'SUCCESS') { submit(values.phone, values.smsCode) - + } else { messageApi.open({ @@ -915,6 +922,7 @@ export default function Head() { // console.log('嘎嘎嘎哈哈', data); setUserId(data.userId) if (data.isUpdateWxUsernamePhone == 1) { + // if (data.isUpdateWxUsernamePhone != 1) { setIsUpdateWxUsernamePhone(true); dispath({ type: 'changePhoneModal', @@ -925,7 +933,7 @@ export default function Head() { // if(!data.hasUserInfo && data.isUpdateWxUsernamePhone != 1) { // setIsSelfModalOpen(true); // } - if (!data.hasUserInfo ) { + if (!data.hasUserInfo) { setIsSelfModalOpen(true); } }); @@ -933,9 +941,9 @@ export default function Head() { const getUserData = () => { reloadUser(messageApi, globalDispatchContext).then((data) => { console.log(data); - + //嘻嘻嘻 - if(!data.hasUserInfo ) { + if (!data.hasUserInfo) { setIsSelfModalOpen(true); } // if (!data.hasUserInfo && !phoneModal) { @@ -978,7 +986,7 @@ export default function Head() { setInterval(reloadUserInterval, 5 * 60 * 1000); getMyPackNum() // console.log('是否关闭',phoneModal); - + }, []) const loginFlag = async () => { try { @@ -1744,16 +1752,14 @@ export default function Head() { - { - // setOrderDetailModal(false) - // }} + onCancel={() => { setIsUpdateWxUsernamePhone(false); dispath({ @@ -1764,14 +1770,14 @@ export default function Head() { }} width={500} centered - // zIndex={100} + >
手机号*
@@ -1789,7 +1795,7 @@ export default function Head() {
验证码*
@@ -1846,7 +1852,188 @@ export default function Head() {
- + */} + {/* 绑定手机号 */} +
+
+
+
+
+ +
+
+ +
+
+ +
+
+
+
+
{ + setIsUpdateWxUsernamePhone(false); + dispath({ + type: 'changePhoneModal', + val: false + }) + getUserData() + }}> + +
+ +
+
+
您正在绑定手机号
+
绑定手机号后,您可以通过手机号码登录平台
+
+
+
+ + + + +
+
+ + + + + {countdown === 0 ? ( +
+ 发送验证码 +
+ ) : ( +
+ 倒计时 {countdown} 秒 +
+ )} +
+
+ + + +
+ +
+
+
{ + setIsUpdateWxUsernamePhone(false); + dispath({ + type: 'changePhoneModal', + val: false + }) + getUserData() + }}>跳过,下次再说
+
+
+
+
+
+ + {/*