Просмотр исходного кода

Merge branch 'master' of http://git.ycjcjy.com/kypay/global_funding-pc-merchant

张涛 1 год назад
Родитель
Сommit
fcc8c1fab2

+ 1
- 1
.env Просмотреть файл

@@ -1,2 +1,2 @@
1
-VITE_SERVER_BASE=/api/admin
1
+VITE_SERVER_BASE=/api
2 2
 # VITE_LOGIN_URL=http://localhost:3009/admin/

Двоичные данные
public/img/empty.png Просмотреть файл


+ 41
- 6
src/components/Upload/UploadFile.jsx Просмотреть файл

@@ -1,7 +1,9 @@
1 1
 import React, { useState } from 'react';
2 2
 import { LoadingOutlined, PlusOutlined, CloudUploadOutlined } from '@ant-design/icons';
3
+import { Button } from "antd";
3 4
 import { useTranslation } from 'react-i18next';
4 5
 import Upload from './Upload';
6
+import "./style.less";
5 7
 
6 8
 export default (props) => {
7 9
   const { value, onChange } = props;
@@ -9,6 +11,21 @@ export default (props) => {
9 11
 
10 12
   const [loading, setLoading] = useState(false);
11 13
 
14
+  function beforeUpload (file) {
15
+
16
+    // const isImage = file.type === 'image/jpeg' || file.type === 'image/png'||file.type==='image/gif';
17
+    // if (!isImage) {
18
+    //   message.error('请上传 JPG , PNG或GIF 图片!');
19
+    // }
20
+    // const isLt10M = file.size / 1024 / 1024 < 10;
21
+    // if (!isLt10M) {
22
+    //   message.error('图片大小必须小于 10MB!');
23
+    // }
24
+
25
+    // return isImage && isLt10M;
26
+    return true;
27
+  }
28
+
12 29
   const UploadButton = (props) => (
13 30
     <div style={{ textAlign: 'center', width: '260px' }}>
14 31
       {props.loading ? <LoadingOutlined /> : <CloudUploadOutlined style={{ fontSize: '30px', color: '#1890ff' }} />}
@@ -29,15 +46,33 @@ export default (props) => {
29 46
     if (info.file.status === 'done') {
30 47
       setLoading(false);
31 48
       const { url, fileType } = info.file.response;
49
+      onChange(url);
32 50
     }
33 51
   };
34 52
 
35 53
   return (
36
-    <Upload
37
-      accept=".pdf"
38
-      onChange={handleChange}
39
-    >
40
-      {value ? '' : <UploadButton loading={loading} />}
41
-    </Upload>
54
+    <>
55
+
56
+      {/* <div style={{ marginTop: '40px', fontSize: '16px' }}>{t('authentication.uploadTitle1')}</div> */}
57
+      <div style={{ display: 'flex', alignItem: 'stretch' }}>
58
+        <div className="authentication-right-upload-box">
59
+          <Upload
60
+            // accept=".pdf"
61
+            className="image-uploader"
62
+            showUploadList={false}
63
+            onChange={handleChange}
64
+            beforeUpload={beforeUpload}
65
+          >
66
+            {value ? value : <UploadButton loading={loading} />}
67
+          </Upload >
68
+        </div>
69
+        <div style={{ flex: 1.2 }}>
70
+          <div style={{ padding: '0 15px', color: '#bfbfbf' }}>{t('authentication.uploadPromptText1')}</div>
71
+          <div style={{ padding: '0 15px', color: '#bfbfbf' }}>{t('authentication.uploadPromptText2')}</div>
72
+          <div style={{ padding: '0 15px', color: '#bfbfbf' }}>{t('authentication.uploadPromptText3')}</div>
73
+          <Button type="link">{t('authentication.uploadBtnText')}</Button>
74
+        </div>
75
+      </div>
76
+    </>
42 77
   )
43 78
 }

+ 4
- 3
src/components/Upload/request.js Просмотреть файл

@@ -5,7 +5,8 @@ const upload = (file, fileType = 'image') => {
5 5
   formData.append("file", file);
6 6
   formData.append("fileType", fileType);
7 7
 
8
-  return request('/api/admin/file', {
8
+  console.log('formData', formData);
9
+  return request(`/admin/upload`, {
9 10
     method: 'post',
10 11
     data: formData,
11 12
     headers: {
@@ -18,7 +19,7 @@ const upload = (file, fileType = 'image') => {
18 19
  * 上传文件
19 20
  * @returns 
20 21
  */
21
-export function uploadFile(params) {
22
+export function uploadFile (params) {
22 23
   const { file, onSuccess, onError } = params;
23 24
   upload(file).then((res) => {
24 25
     onSuccess(res, file)
@@ -27,6 +28,6 @@ export function uploadFile(params) {
27 28
   });
28 29
 
29 30
   return {
30
-    abort: () => {},
31
+    abort: () => { },
31 32
   };
32 33
 }

+ 11
- 0
src/components/Upload/style.less Просмотреть файл

@@ -5,3 +5,14 @@
5 5
     max-height: 360px;
6 6
   }
7 7
 }
8
+.authentication-right-upload-box {
9
+  width: 200px;
10
+  height: 120px;
11
+  border-radius: 1em;
12
+  display: flex;
13
+  justify-content: center;
14
+  align-items: center;
15
+  border: 1px dashed #1890ff;
16
+  display: 1;
17
+  flex: 0.8;
18
+}

+ 13
- 0
src/locale/zh.json Просмотреть файл

@@ -39,17 +39,28 @@
39 39
     "formRightInputPlaceholder3": "具体地址(如区、街道、建筑、门牌号)/Address Line",
40 40
     "formRightInputPlaceholder4": "邮政编码/Postal Code",
41 41
     "formRightInputPlaceholder5": "请选择雇员人数",
42
+    "formRightInputNumber1": "员工人数超过200人",
43
+    "formRightInputNumber2": "员工人数50-200人",
44
+    "formRightInputNumber3": "员工人数少于50人",
42 45
     "formRightInputPlaceholder6": "请选择经营场所类型",
46
+    "formRightInputPlace1": "自有办公场所",
47
+    "formRightInputPlace2": "较大租用办公场所 (大于500平方)",
48
+    "formRightInputPlace3": "较小租用办公场所 (小于500平方)",
49
+    "formRightInputPlace4": "无固定办公场所",
43 50
     "formRightLabel1": "企业类型",
44 51
     "formRightLabel2": "商业登记号码",
45 52
     "formRightLabel3": "注册地址",
46 53
     "formRightLabel4": "实际经营地址",
47 54
     "formRightLabel5": "雇员人数",
48 55
     "formRightLabel6": "经营场所类型",
56
+    "formRightPlaceholder": "请输入商业登记号码",
57
+    "formRightPlaceholder2": "请选择注册地址",
58
+    "formRightPlaceholder3": "请输入实际经营地址",
49 59
     "foundationInfoNextBtn": "下一步",
50 60
 
51 61
     "subTitleRight2": "您的身份为",
52 62
     "directorInfoRadioValue1": "企业董事",
63
+    "directorInfoSubTitle3": "请用手机扫描二维码拍摄上传",
53 64
     "directorInfoRadioText1": "您本人为该企业的负责人,能够代表企业行驶职权",
54 65
     "directorInfoRadioValue2": "被授权人",
55 66
     "directorInfoRadioText2": "您本人被企业授权,能够代表企业处理事务",
@@ -67,6 +78,7 @@
67 78
     "directorInfoIDCardRightText": "请用手机扫描二维码拍照上传",
68 79
     "directorInfoLabel3": "中文姓名",
69 80
     "directorInfoLabel4": "证件号码",
81
+    "directorInfoPlaceholder1": "请选择国家",
70 82
     "directorInfoInputPlaceholder1": "请输入董事姓氏",
71 83
     "directorInfoInputPlaceholder2": "请输入董事名称",
72 84
     "directorInfoInputPlaceholder3": "请输入董事证件号码",
@@ -116,6 +128,7 @@
116 128
     "AuthenticationLabel4": "是否为上市公司",
117 129
     "AuthenticationPlaceholder1": "请填写企业中文名称",
118 130
     "AuthenticationPlaceholder2": "请填写企业英文名称",
131
+    "AuthenticationPlaceholder3": "请选择企业注册地",
119 132
     "AuthenticationBtn": "开始实名认证",
120 133
     "AuthenticationTip": "请确保您的企业名称与企业文件上的注册名称一致,开始认证流程后无法修改",
121 134
     "AuthenticationYes": "是",

+ 1
- 1
src/pages/accountsettings/components/ChangeModalPassword.jsx Просмотреть файл

@@ -20,7 +20,7 @@ export default (props) => {
20 20
       newPassword: md5(values.newPassword),
21 21
     };
22 22
     await changePassword(data);
23
-    navigate(`/login`);
23
+    navigate(`/qLogin`);
24 24
 
25 25
     return true;
26 26
   };

+ 6
- 6
src/pages/accountsettings/components/ChangeModalPhone.jsx Просмотреть файл

@@ -16,11 +16,11 @@ export default (props) => {
16 16
 
17 17
   const onFinish = async (values) => {
18 18
     const data = {
19
-      originPhone: md5(values.phone),
20
-      newPhone: md5(values.newPhone),
19
+      originPhone: values.phone,
20
+      newPhone: values.newPhone,
21 21
     };
22 22
     await changePhone(data);
23
-    navigate(`/login`);
23
+    navigate(`/qLogin`);
24 24
 
25 25
     return true;
26 26
   };
@@ -35,12 +35,12 @@ export default (props) => {
35 35
       }}
36 36
       onFinish={onFinish}
37 37
     >
38
-      <ProFormText.Password
38
+      <ProFormText
39 39
         label={t('accountsettings.phoneInput1')}
40 40
         name="phone"
41 41
         rules={[{ required: true }]}
42 42
       />
43
-      <ProFormText.Password
43
+      <ProFormText
44 44
         label={t('accountsettings.phoneInput2')}
45 45
         name="newPhone"
46 46
         rules={[{ required: true }]}
@@ -48,7 +48,7 @@ export default (props) => {
48 48
 
49 49
       <ProFormDependency name={["newPhone"]}>
50 50
         {({ newPhone }) => (
51
-          <ProFormText.Password
51
+          <ProFormText
52 52
             label={t('accountsettings.phoneInputLabel')}
53 53
             name="newPhone2"
54 54
             rules={[

+ 61
- 53
src/pages/accountsettings/index.jsx Просмотреть файл

@@ -27,73 +27,81 @@ export default (props) => {
27 27
   }
28 28
   return (
29 29
     <Page>
30
-      <div style={{ width: '460px', display: 'inline-block', marginRight: '24px' }}>
31
-        <Card>
32
-          <div style={{ display: "flex", alignItems: "stretch" }}>
33
-            <div style={{ flex: 0.5 }}>
34
-              <img src="https://qbitnetwork.com/app/img/password-qbit.957e234a.png" alt={t('accountsettings.title1')} width="100" />
35
-            </div>
36
-            <div style={{ flex: 1.5 }}>
37
-              <div style={{ display: "flex", justifyContent: "space-between", paddingTop: '10px' }}>
38
-                <div style={{ fontSize: "16px", fontWeight: "bold" }}>{t('accountsettings.title1')}</div>
39
-                <Button type="primary" onClick={onOpenPassword}>{t('accountsettings.btnText1')}</Button>
30
+      <div style={{ display: "flex", alignItems: "stretch" }}>
31
+        <div style={{ flex: 1, marginRight: '24px' }}>
32
+          <Card>
33
+            <div style={{ display: "flex", alignItems: "stretch" }}>
34
+              <div style={{ flex: 0.4, display: "flex", justifyContent: "center" }}>
35
+                <img src="https://qbitnetwork.com/app/img/password-qbit.957e234a.png" alt={t('accountsettings.title1')} width="100" />
36
+              </div>
37
+              <div style={{ flex: 1.6 }}>
38
+                <div style={{ display: "flex", justifyContent: "space-between", paddingTop: '10px' }}>
39
+                  <div style={{ fontSize: "16px", fontWeight: "bold" }}>{t('accountsettings.title1')}</div>
40
+                  <Button type="primary" onClick={onOpenPassword}>{t('accountsettings.btnText1')}</Button>
41
+                </div>
42
+                <div style={{ paddingTop: '1em', color: '#bfbfbf' }}>{t('accountsettings.text1')}</div>
40 43
               </div>
41
-              <div style={{ paddingTop: '1em', color: '#bfbfbf' }}>{t('accountsettings.text1')}</div>
42
-            </div>
43
-          </div>
44
-        </Card>
45
-      </div>
46
-      <div style={{ width: '460px', display: 'inline-block' }}>
47
-        <Card>
48
-          <div style={{ display: "flex", alignItems: "stretch" }}>
49
-            <div style={{ flex: 0.5 }}>
50
-              <img src="https://qbitnetwork.com/app/img/phone-qbit.5eab89b2.png" alt={t('accountsettings.title2')} width="100" />
51 44
             </div>
52
-            <div style={{ flex: 1.5 }}>
53
-              <div style={{ display: "flex", justifyContent: "space-between", paddingTop: '10px' }}>
54
-                <div style={{ fontSize: "16px", fontWeight: "bold" }}>{t('accountsettings.title2')}</div>
55
-                <Button type="primary" onClick={onOpenPhone}>{t('accountsettings.btnText2')}</Button>
45
+          </Card>
46
+        </div>
47
+        <div style={{ flex: 1 }}>
48
+          <Card>
49
+            <div style={{ display: "flex", alignItems: "stretch" }}>
50
+              <div style={{ flex: 0.4, display: "flex", justifyContent: "center" }}>
51
+                <img src="https://qbitnetwork.com/app/img/phone-qbit.5eab89b2.png" alt={t('accountsettings.title2')} width="100" />
52
+              </div>
53
+              <div style={{ flex: 1.6 }}>
54
+                <div style={{ display: "flex", justifyContent: "space-between", paddingTop: '10px' }}>
55
+                  <div style={{ fontSize: "16px", fontWeight: "bold" }}>{t('accountsettings.title2')}</div>
56
+                  <Button type="primary" onClick={onOpenPhone}>{t('accountsettings.btnText2')}</Button>
57
+                </div>
58
+                <div style={{ paddingTop: '1em', color: '#bfbfbf' }}>{t('accountsettings.text2')}+8***77</div>
56 59
               </div>
57
-              <div style={{ paddingTop: '1em', color: '#bfbfbf' }}>{t('accountsettings.text2')}+8***77</div>
58 60
             </div>
59
-          </div>
60
-        </Card>
61
+          </Card>
62
+        </div>
61 63
       </div>
62 64
 
63
-      <div style={{ width: '460px', marginTop: '24px' }}>
64
-        <Card>
65
-          <div style={{ display: "flex", alignItems: "stretch" }}>
66
-            <div style={{ flex: 0.5 }}>
67
-              <img src="/img/email.png" alt={t('accountsettings.title3')} width="100" />
68
-            </div>
69
-            <div style={{ flex: 1.5 }}>
70
-              <div style={{ display: "flex", justifyContent: "space-between", paddingTop: '10px' }}>
71
-                <div style={{ fontSize: "16px", fontWeight: "bold" }}>{t('accountsettings.title3')}</div>
72
-                <Button type="primary" onClick={onOpenEmail}>{t('accountsettings.btnText3')}</Button>
65
+      <div style={{ display: "flex", alignItems: "stretch", marginTop: '24px' }}>
66
+        <div style={{ flex: 0.5, marginRight: '24px' }}>
67
+          <Card>
68
+            <div style={{ display: "flex", alignItems: "stretch" }}>
69
+              <div style={{ flex: 0.4, display: "flex", justifyContent: "center" }}>
70
+                <img src="./img/email.png" alt={t('accountsettings.title3')} width="100" />
71
+              </div>
72
+              <div style={{ flex: 1.6 }}>
73
+                <div style={{ display: "flex", justifyContent: "space-between", paddingTop: '10px' }}>
74
+                  <div style={{ fontSize: "16px", fontWeight: "bold" }}>{t('accountsettings.title3')}</div>
75
+                  <Button type="primary" onClick={onOpenEmail}>{t('accountsettings.btnText3')}</Button>
76
+                </div>
77
+                <div style={{ paddingTop: '1em', color: '#bfbfbf' }}>{t('accountsettings.text3')}99****qq.com</div>
73 78
               </div>
74
-              <div style={{ paddingTop: '1em', color: '#bfbfbf' }}>{t('accountsettings.text3')}99****qq.com</div>
75 79
             </div>
76
-          </div>
77
-        </Card>
80
+          </Card>
81
+        </div>
78 82
       </div>
79 83
 
80 84
       <div style={{ margin: '24px 0', fontWeight: '400', fontSize: '24px' }}>{t('accountsettings.sumTitle')}</div>
81
-      <div style={{ width: '460px', marginTop: '24px' }}>
82
-        <Card>
83
-          <div style={{ display: "flex", alignItems: "stretch" }}>
84
-            <div style={{ flex: 0.5 }}>
85
-              <img src="	https://qbitnetwork.com/app/img/business-report-qbit.99ec4666.png" alt={t('accountsettings.title4')} width="100" />
86
-            </div>
87
-            <div style={{ flex: 1.5 }}>
88
-              <div style={{ display: "flex", justifyContent: "space-between", paddingTop: '10px' }}>
89
-                <div style={{ fontSize: "16px", fontWeight: "bold" }}>{t('accountsettings.title4')}</div>
90
-                <Button type="primary" onClick={() => navigate('/authentication')} >{t('accountsettings.btnText4')}</Button>
85
+      <div style={{ display: "flex", alignItems: "stretch", marginTop: '24px' }}>
86
+        <div style={{ flex: 0.5, marginRight: '24px' }}>
87
+          <Card>
88
+            <div style={{ display: "flex", alignItems: "stretch" }}>
89
+              <div style={{ flex: 0.4, display: "flex", justifyContent: "center" }}>
90
+                <img src="	https://qbitnetwork.com/app/img/business-report-qbit.99ec4666.png" alt={t('accountsettings.title4')} width="100" />
91
+              </div>
92
+              <div style={{ flex: 1.6 }}>
93
+                <div style={{ display: "flex", justifyContent: "space-between", paddingTop: '10px' }}>
94
+                  <div style={{ fontSize: "16px", fontWeight: "bold" }}>{t('accountsettings.title4')}</div>
95
+                  <Button type="primary" onClick={() => navigate('/authentication')} >{t('accountsettings.btnText4')}</Button>
96
+                </div>
97
+                <div style={{ paddingTop: '1em', color: '#bfbfbf' }}>{t('accountsettings.text4')}</div>
91 98
               </div>
92
-              <div style={{ paddingTop: '1em', color: '#bfbfbf' }}>{t('accountsettings.text4')}</div>
93 99
             </div>
94
-          </div>
95
-        </Card>
100
+          </Card>
101
+        </div>
96 102
       </div>
103
+
104
+
97 105
       <ChangeModalPhone opPhone={opPhone} setOpPhone={setOpPhone} />
98 106
       <ChangeModalPassword visible={visible} setVisible={setVisible} />
99 107
       <ChangeModalEmail opEmail={opEmail} setOpEmail={setOpEmail} />

+ 19
- 13
src/pages/authentication/components/Authentication.jsx Просмотреть файл

@@ -1,18 +1,21 @@
1 1
 import React from "react";
2 2
 import { Divider, Card, Steps, Button, Radio, Form, Input, Row, Col, Select, Image } from "antd";
3 3
 import { useTranslation } from 'react-i18next';
4
+import useBool from "@/utils/hooks/useBool";
5
+import { postTaCompanyInfo } from "@/services/taCompanyInfo";
4 6
 
5 7
 export default (props) => {
8
+
6 9
   const { index, setIndex } = props;
7 10
   const { t } = useTranslation();
8 11
   const [form] = Form.useForm();
9 12
 
10
-  const onFinish = () => {
11
-
12
-  };
13
-  const onClick = () => {
13
+  const onFinish = (values) => {
14
+    // postTaCompanyInfo(values).then((res) => {
14 15
     setIndex(index + 1);
15
-  }
16
+    // });
17
+  };
18
+
16 19
   return (
17 20
     <>
18 21
       <div style={{ fontSize: '24px', fontWeight: '400' }}>{t('authentication.AuthenticationTitle')}</div>
@@ -26,28 +29,31 @@ export default (props) => {
26 29
           style={{ marginTop: '4em' }}
27 30
           wrapperCol={{ span: 14 }}
28 31
         >
29
-          <Form.Item label={t('authentication.AuthenticationLabel1')}>
30
-            <Select defaultValue="中国大陆">
32
+          <Form.Item label={t('authentication.AuthenticationLabel1')} name="registrationLocation">
33
+            <Select placeholder={t('authentication.AuthenticationPlaceholder3')}>
34
+              <Select.Option value="中国大陆">中国大陆</Select.Option>
31 35
             </Select>
32 36
           </Form.Item>
33
-          <Form.Item label={t('authentication.AuthenticationLabel2')}>
37
+          <Form.Item label={t('authentication.AuthenticationLabel2')} name="companyNameCn">
34 38
             <Input placeholder={t('authentication.AuthenticationPlaceholder1')} />
35 39
           </Form.Item>
36 40
           <div style={{ fontSize: '11px', color: '#bfbfbf', marginTop: '-20px' }}>{t('authentication.AuthenticationTip')}</div>
37
-          <Form.Item label={t('authentication.AuthenticationLabel3')}>
41
+          <Form.Item label={t('authentication.AuthenticationLabel3')} name="companyNameEn">
38 42
             <Input placeholder={t('authentication.AuthenticationPlaceholder2')} />
39 43
           </Form.Item>
40
-          <Form.Item label={t('authentication.AuthenticationLabel4')}>
44
+          <Form.Item label={t('authentication.AuthenticationLabel4')} name="isListedCompany">
41 45
             <div style={{ marginTop: '-24px' }}>
42
-              <Radio style={{ fontSize: '16px' }}>{t('authentication.AuthenticationYes')}</Radio>
43
-              <Radio style={{ fontSize: '16px' }}>{t('authentication.AuthenticationNo')}</Radio>
46
+              <Radio.Group>
47
+                <Radio value={1}>{t('authentication.AuthenticationYes')}</Radio>
48
+                <Radio value={0}>{t('authentication.AuthenticationNo')}</Radio>
49
+              </Radio.Group>
44 50
             </div>
45 51
           </Form.Item>
46 52
           <Form.Item style={{ marginTop: '24px' }}>
47 53
             <Button
48 54
               type="primary"
49 55
               size="large"
50
-              onClick={onClick}
56
+              htmlType="submit"
51 57
             >{t('authentication.AuthenticationBtn')}</Button>
52 58
           </Form.Item>
53 59
         </Form>

+ 40
- 36
src/pages/authentication/components/DirectorInfo.jsx Просмотреть файл

@@ -1,6 +1,7 @@
1 1
 import React from "react";
2 2
 import { Divider, Card, Steps, Button, Radio, Form, Input, Row, Col, Select, Image } from "antd";
3 3
 import { useTranslation } from 'react-i18next';
4
+import { postTaCompanyInfo } from "@/services/taCompanyInfo";
4 5
 import "../style.less";
5 6
 
6 7
 export default (props) => {
@@ -8,15 +9,13 @@ export default (props) => {
8 9
   const { t } = useTranslation();
9 10
   const [form] = Form.useForm();
10 11
 
11
-  const onNext = () => {
12
-    setIndex(index + 1)
13
-  }
14
-  const onFinish = () => {
15
-
12
+  const onFinish = (values) => {
13
+    // console.log('values', values);
14
+    // postTaCompanyInfo(values).then((res) => {
15
+    setIndex(index + 1);
16
+    // });
16 17
   };
17 18
 
18
-  const url = "data:image/png;base64,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"
19
-
20 19
   return (
21 20
     <>
22 21
       <div style={{ fontSize: '24px', fontWeight: '400' }}>{t('authentication.stepsTitle2')}</div>
@@ -24,55 +23,60 @@ export default (props) => {
24 23
         form={form}
25 24
         layout="vertical"
26 25
         onFinish={onFinish}
26
+        size="large"
27 27
       >
28 28
         <Card bordered={false} style={{ width: '900px', marginBottom: '24px' }}>
29 29
           {/* 您的身份为 */}
30
-          <div style={{ fontSize: '16px', fontWeight: '600' }}>{t('authentication.subTitleRight2')}</div>
31
-          <Form.Item>
32
-            <div style={{ marginBottom: '24px' }}>
33
-              <Radio style={{ fontSize: '16px' }}>{t('authentication.directorInfoRadioValue1')}</Radio>
34
-              <div>{t('authentication.directorInfoRadioText1')}</div>
35
-            </div>
36
-            <div style={{ marginBottom: '24px' }}>
37
-              <Radio style={{ fontSize: '16px' }}>{t('authentication.directorInfoRadioValue2')}</Radio>
38
-              <div>{t('authentication.directorInfoRadioText2')}</div>
39
-            </div>
30
+          <div style={{ fontSize: '16px', fontWeight: '600', marginBottom: '12px' }}>{t('authentication.subTitleRight2')}</div>
31
+          <Form.Item name="identity">
32
+            <Radio.Group>
33
+              <div style={{ marginBottom: '24px' }}>
34
+                <Radio style={{ fontSize: '16px' }} value="conpanyDirector">{t('authentication.directorInfoRadioValue1')}</Radio>
35
+                <div style={{ paddingTop: '6px', color: '#bfbfbf' }}>{t('authentication.directorInfoRadioText1')}</div>
36
+              </div>
37
+              <div style={{ marginBottom: '24px' }}>
38
+                <Radio style={{ fontSize: '16px' }} value="authorizedPerson">{t('authentication.directorInfoRadioValue2')}</Radio>
39
+                <div style={{ paddingTop: '6px', color: '#bfbfbf' }}>{t('authentication.directorInfoRadioText2')}</div>
40
+              </div>
41
+            </Radio.Group>
40 42
           </Form.Item>
41 43
           {/* 企业董事 */}
42
-          <div style={{ fontSize: '16px', fontWeight: '600' }}>{t('authentication.directorInfoRadioValue1')}</div>
43
-          <Form.Item label={t('authentication.directorInfoLabel1')}>
44
-            <Select defaultValue={t('authentication.directorInfoSelectValue1')}>
45
-              <Select.Option>{t('authentication.directorInfoSelectValue1')}</Select.Option>
44
+          <div style={{ fontSize: '16px', fontWeight: '600', marginBottom: '36px' }}>{t('authentication.directorInfoRadioValue1')}</div>
45
+          <Form.Item label={t('authentication.directorInfoLabel1')} wrapperCol={{ span: 17 }} name="directorCountry">
46
+            <Select placeholder={t('authentication.directorInfoPlaceholder1')}>
47
+              <Select.Option value={t('authentication.directorInfoSelectValue1')}>
48
+                {t('authentication.directorInfoSelectValue1')}</Select.Option>
46 49
             </Select>
47 50
           </Form.Item>
48
-          <Form.Item label={t('authentication.directorInfoLabel2')}>
49
-            <Radio style={{ fontSize: '16px' }}>{t('authentication.directorInfoRadioValue')}</Radio>
51
+          <Form.Item label={t('authentication.directorInfoLabel2')} name="directorIdType">
52
+            <Radio style={{ fontSize: '16px' }} value={t('authentication.directorInfoRadioValue')}>{t('authentication.directorInfoRadioValue')}</Radio>
50 53
           </Form.Item>
51
-          {/* 企业董事 */}
52
-          <div style={{ fontSize: '16px', fontWeight: '600' }}>{t('authentication.directorInfoRadioValue1')}</div>
54
+          {/* 请用手机扫描二维码拍摄上传 */}
55
+          <div style={{ fontSize: '16px', fontWeight: '600', marginBottom: '12px' }}>{t('authentication.directorInfoSubTitle3')}</div>
53 56
           <Form.Item>
54
-            <div>{t('authentication.directorInfoContent1')}</div>
55
-            <div>{t('authentication.directorInfoContent2')}</div>
56
-            <div>{t('authentication.directorInfoContent3')}</div>
57
+            <div style={{ color: '#bfbfbf' }}>{t('authentication.directorInfoContent1')}</div>
58
+            <div style={{ color: '#bfbfbf' }}>{t('authentication.directorInfoContent2')}</div>
59
+            <div style={{ color: '#bfbfbf' }}>{t('authentication.directorInfoContent3')}</div>
57 60
             <div style={{ color: 'red' }}>{t('authentication.directorInfoContent4')}</div>
58 61
             <Button type="link" style={{ padding: '4px 0' }}>{t('authentication.uploadBtnText')}</Button>
59 62
           </Form.Item>
60
-          <Form.Item>
63
+          <Form.Item name="directorIdFront">
61 64
             <div className="directorInfo-img-box">
62 65
               <div style={{ fontSize: '16px' }}>{t('authentication.directorInfoSubTitle1')}</div>
63 66
               <div>
64
-                <Image width={100} height={100} fallback={url} style={{ backgroundColor: '#00FA9A', opacity: '0.3' }} />
67
+                <Image width={100} height={100} preview={false} src="./img/empty.png" />
65 68
                 <div className="directorInfo-img-right-text">{t('authentication.directorInfoIDCardRightText')}</div>
66 69
               </div>
67 70
               <div style={{ marginTop: '24px', fontSize: '16px' }}>{t('authentication.directorInfoSubTitle2')}</div>
68 71
               <div>
69
-                <Image width={100} height={100} fallback={url} style={{ backgroundColor: '#00FA9A', opacity: '0.3' }} />
72
+                <Image width={100} height={100} preview={false} src="./img/empty.png" />
70 73
                 <div className="directorInfo-img-right-text">{t('authentication.directorInfoIDCardRightText')}</div>
71 74
               </div>
72 75
             </div>
73 76
           </Form.Item>
74
-          <Form.Item label={t('authentication.directorInfoLabel3')}>
75
-            <Input.Group>
77
+          <Form.Item label={t('authentication.directorInfoLabel3')} wrapperCol={{ span: 17 }} name="directorIdBack">
78
+            <Input placeholder={t('authentication.directorInfoInputPlaceholder2')} />
79
+            {/* <Input.Group>
76 80
               <Row>
77 81
                 <Col span={8}>
78 82
                   <Input placeholder={t('authentication.directorInfoInputPlaceholder1')} size="large" />
@@ -81,14 +85,14 @@ export default (props) => {
81 85
                   <Input placeholder={t('authentication.directorInfoInputPlaceholder2')} size="large" />
82 86
                 </Col>
83 87
               </Row>
84
-            </Input.Group>
88
+            </Input.Group> */}
85 89
           </Form.Item>
86
-          <Form.Item label={t('authentication.directorInfoLabel4')} wrapperCol={{ span: 17 }}>
90
+          <Form.Item label={t('authentication.directorInfoLabel4')} wrapperCol={{ span: 17 }} name="directorIdNo">
87 91
             <Input placeholder={t('authentication.directorInfoInputPlaceholder3')} size="large" />
88 92
           </Form.Item>
89 93
           {/* 其他董事 */}
90 94
           <div style={{ fontSize: '16px', fontWeight: '600' }}>{t('authentication.directorInfoOtherDirectors')}</div>
91
-          <Button type="primary" onClick={onNext} >{t('authentication.foundationInfoNextBtn')}</Button>
95
+          <Button type="primary" htmlType="submit" style={{ width: '6vw' }}>{t('authentication.foundationInfoNextBtn')}</Button>
92 96
         </Card>
93 97
 
94 98
       </Form>

+ 19
- 12
src/pages/authentication/components/EveryoneInfo.jsx Просмотреть файл

@@ -2,6 +2,7 @@ import React from "react";
2 2
 import { Divider, Card, Steps, Button, Radio, Form, Input, Row, Col, Select, Image } from "antd";
3 3
 import UploadFile from "@/components/Upload/UploadFile";
4 4
 import { useTranslation } from 'react-i18next';
5
+import { postTaCompanyInfo } from "@/services/taCompanyInfo";
5 6
 import "../style.less";
6 7
 
7 8
 export default (props) => {
@@ -9,15 +10,15 @@ export default (props) => {
9 10
   const { t } = useTranslation();
10 11
   const [form] = Form.useForm();
11 12
 
12
-  const onFinish = () => {
13
-
13
+  const onFinish = (values) => {
14
+    console.log('values', values);
15
+    // postTaCompanyInfo(values).then((res) => {
16
+    setIndex(index + 1);
17
+    // });
14 18
   };
15 19
   const onBack = () => {
16 20
     setIndex(index - 1);
17 21
   };
18
-  const onSubmit = () => {
19
-    setIndex(index + 1);
20
-  };
21 22
 
22 23
   return (
23 24
     <>
@@ -32,10 +33,13 @@ export default (props) => {
32 33
           style={{ marginTop: '4em' }}
33 34
         >
34 35
           <Form.Item label={t('authentication.everyoneInfoInputLabel1')}>
35
-            <Radio style={{ fontSize: '16px' }}>{t('authentication.everyoneInfoInputRadioValue1')}</Radio>
36
-            <Radio style={{ fontSize: '16px' }}>{t('authentication.everyoneInfoInputRadioValue2')}</Radio>
36
+            <Radio.Group>
37
+              <Radio style={{ fontSize: '16px' }} value="1">{t('authentication.everyoneInfoInputRadioValue1')}</Radio>
38
+              <Radio style={{ fontSize: '16px' }} value="2">{t('authentication.everyoneInfoInputRadioValue2')}</Radio>
39
+            </Radio.Group>
37 40
           </Form.Item>
38 41
           <Form.Item>
42
+            {/* name="equityStructureChart" */}
39 43
             <div style={{ marginTop: '40px', fontSize: '16px' }}>{t('authentication.everyoneInfoUploadTitle')}</div>
40 44
             <div style={{ display: 'flex', alignItems: 'stretch ' }}>
41 45
               <div className="authentication-right-upload-box">
@@ -49,10 +53,12 @@ export default (props) => {
49 53
               </div>
50 54
             </div>
51 55
           </Form.Item>
52
-          <Form.Item label={t('authentication.everyoneInfoInputLabel2')}>
53
-            <Radio style={{ fontSize: '16px' }}>{t('authentication.everyoneInfoInputRadioValue1')}</Radio>
54
-            <Radio style={{ fontSize: '16px' }}>{t('authentication.everyoneInfoInputRadioValue2')}</Radio>
55
-            <div style={{ color: '#ffac00' }}>{t('authentication.everyoneInfoRadioTip')}</div>
56
+          <Form.Item label={t('authentication.everyoneInfoInputLabel2')} name="shareholdingRatio">
57
+            <Radio.Group>
58
+              <Radio style={{ fontSize: '16px' }} value="1">{t('authentication.everyoneInfoInputRadioValue1')}</Radio>
59
+              <Radio style={{ fontSize: '16px' }} value="2">{t('authentication.everyoneInfoInputRadioValue2')}</Radio>
60
+            </Radio.Group>
61
+            {/* <div style={{ color: '#ffac00' }}>{t('authentication.everyoneInfoRadioTip')}</div> */}
56 62
           </Form.Item>
57 63
           <Radio>
58 64
             {t('authentication.everyoneInfoAgreement')}
@@ -63,8 +69,9 @@ export default (props) => {
63 69
         </Form>
64 70
         <Form.Item style={{ marginTop: '24px' }}>
65 71
           <Button size="large" style={{ width: '6vw', marginRight: '2vw' }} onClick={onBack}>{t('authentication.everyoneInfoBack')}</Button>
66
-          <Button size="large" type="primary" style={{ width: '6vw' }} onClick={onSubmit}>{t('authentication.everyoneInfoSubmit')}</Button>
72
+          <Button size="large" type="primary" htmlType="submit" style={{ width: '6vw' }}>{t('authentication.everyoneInfoSubmit')}</Button>
67 73
         </Form.Item>
74
+
68 75
       </Card>
69 76
     </>
70 77
   )

+ 72
- 88
src/pages/authentication/components/FoundationInfo.jsx Просмотреть файл

@@ -2,6 +2,7 @@ import React from "react";
2 2
 import { Divider, Card, Steps, Button, Radio, Form, Input, Row, Col, Select } from "antd";
3 3
 import UploadFile from "@/components/Upload/UploadFile";
4 4
 import { useTranslation } from 'react-i18next';
5
+import { postTaCompanyInfo } from "@/services/taCompanyInfo";
5 6
 import "../style.less";
6 7
 
7 8
 export default (props) => {
@@ -9,14 +10,13 @@ export default (props) => {
9 10
   const [form] = Form.useForm();
10 11
   const { t } = useTranslation();
11 12
 
12
-  const onFinish = () => {
13
+  const onFinish = (values) => {
13 14
 
15
+    // postTaCompanyInfo(values).then((res) => {
16
+    setIndex(index + 1);
17
+    // });
14 18
   };
15 19
 
16
-  const onNext = () => {
17
-    setIndex(index + 1)
18
-  }
19
-
20 20
   return (
21 21
     <>
22 22
       <div style={{ fontSize: '24px', fontWeight: '400' }}>{t('authentication.titleRight')}</div>
@@ -28,134 +28,118 @@ export default (props) => {
28 28
         form={form}
29 29
         layout="vertical"
30 30
         onFinish={onFinish}
31
+        size="large"
31 32
       >
32 33
         <Card bordered={false} style={{ width: '900px', marginBottom: '24px' }}>
33
-          <Form.Item>
34
-            <div style={{ fontSize: '16px', fontWeight: '600' }}>{t('authentication.subTitleRight')}</div>
35
-            <div style={{ marginTop: '40px', fontSize: '16px' }}>{t('authentication.uploadTitle1')}</div>
36
-            <div style={{ display: 'flex', alignItem: 'stretch' }}>
37
-              <div className="authentication-right-upload-box">
38
-                <UploadFile />
39
-              </div>
40
-              <div style={{ flex: 1.2 }}>
41
-                <div style={{ padding: '0 15px', color: '#bfbfbf' }}>{t('authentication.uploadPromptText1')}</div>
42
-                <div style={{ padding: '0 15px', color: '#bfbfbf' }}>{t('authentication.uploadPromptText2')}</div>
43
-                <div style={{ padding: '0 15px', color: '#bfbfbf' }}>{t('authentication.uploadPromptText3')}</div>
44
-                <Button type="link">{t('authentication.uploadBtnText')}</Button>
45
-              </div>
46
-            </div>
47
-          </Form.Item>
48
-          <Form.Item>
49
-            <div style={{ marginTop: '40px', fontSize: '16px' }}>{t('authentication.uploadTitle2')}</div>
50
-            <div style={{ display: 'flex', alignItem: 'stretch' }}>
51
-              <div className="authentication-right-upload-box">
52
-                <UploadFile />
53
-              </div>
54
-              <div style={{ flex: 1.2 }}>
55
-                <div style={{ padding: '0 15px', color: '#bfbfbf' }}>{t('authentication.uploadPromptText1')}</div>
56
-                <div style={{ padding: '0 15px', color: '#bfbfbf' }}>{t('authentication.uploadPromptText2')}</div>
57
-                <div style={{ padding: '0 15px', color: '#bfbfbf' }}>{t('authentication.uploadPromptText3')}</div>
58
-                <div style={{ padding: '0 15px', fontWeight: '600' }}>4.{t('authentication.uploadPromptTextII4')}</div>
59
-                <Button type="link">{t('authentication.uploadBtnText')}</Button>
60
-              </div>
61
-            </div>
62
-          </Form.Item>
63
-          <Form.Item>
64
-            <div style={{ marginTop: '40px', fontSize: '16px' }}>{t('authentication.uploadTitle3')}</div>
65
-            <div style={{ display: 'flex', alignItem: 'stretch' }}>
66
-              <div className="authentication-right-upload-box">
67
-                <UploadFile />
68
-              </div>
69
-              <div style={{ flex: 1.2 }}>
70
-                <div style={{ padding: '0 15px', color: '#bfbfbf' }}>{t('authentication.uploadPromptText1')}</div>
71
-                <div style={{ padding: '0 15px', color: '#bfbfbf' }}>{t('authentication.uploadPromptText2')}</div>
72
-                <div style={{ padding: '0 15px', color: '#bfbfbf' }}>{t('authentication.uploadPromptText3')}</div>
73
-                <div style={{ padding: '0 15px', color: '#bfbfbf' }}>{t('authentication.uploadPromptTextIII4')}</div>
74
-                <div style={{ padding: '0 15px', fontWeight: '600' }}>5.{t('authentication.uploadPromptTextII4')}</div>
75
-                <Button type="link">{t('authentication.uploadBtnText')}</Button>
76
-              </div>
77
-            </div>
78
-          </Form.Item>
79
-          <Form.Item>
80
-            <div style={{ marginTop: '40px', fontSize: '16px' }}>{t('authentication.uploadTitle4')}</div>
81
-            <div style={{ display: 'flex', alignItem: 'stretch' }}>
82
-              <div className="authentication-right-upload-box">
83
-                <UploadFile />
84
-              </div>
85
-              <div style={{ flex: 1.2 }}>
86
-                <div style={{ padding: '0 15px', color: '#bfbfbf' }}>{t('authentication.uploadPromptText1')}</div>
87
-                <div style={{ padding: '0 15px', color: '#bfbfbf' }}>{t('authentication.uploadPromptText2')}</div>
88
-                <div style={{ padding: '0 15px', color: '#bfbfbf' }}>{t('authentication.uploadPromptText3')}</div>
89
-                <Button type="link">{t('authentication.uploadBtnText')}</Button>
90
-              </div>
91
-            </div>
34
+          <div style={{ fontSize: '16px', fontWeight: '600', marginBottom: '40px' }}>{t('authentication.subTitleRight')}</div>
35
+          <Form.Item name="certificateIncorporation" label={t('authentication.uploadTitle1')}>
36
+            <UploadFile />
37
+          </Form.Item>
38
+          <Form.Item name="companyBusinessRegistration" label={t('authentication.uploadTitle2')}>
39
+            <UploadFile />
40
+            {/* <div style={{ padding: '0 15px', fontWeight: '600' }}>4.{t('authentication.uploadPromptTextII4')}</div> */}
41
+          </Form.Item>
42
+          <Form.Item name="nnc1Nar1" label={t('authentication.uploadTitle3')}>
43
+            <UploadFile />
44
+            {/* <div style={{ padding: '0 15px', color: '#bfbfbf' }}>{t('authentication.uploadPromptTextIII4')}</div>
45
+                <div style={{ padding: '0 15px', fontWeight: '600' }}>5.{t('authentication.uploadPromptTextII4')}</div> */}
46
+          </Form.Item>
47
+          <Form.Item name="otherAnnex" label={t('authentication.uploadTitle4')}>
48
+            <UploadFile />
92 49
           </Form.Item>
93 50
         </Card>
94 51
         <Card bordered={false} style={{ width: '900px', marginBottom: '24px' }}>
95
-          <Form.Item label={t('authentication.formRightLabel1')}>
96
-            <Radio style={{ fontSize: '16px', fontWeight: '600' }}>{t('authentication.enterpriseTypeRadio1')}</Radio>
97
-            <Radio style={{ fontSize: '16px', fontWeight: '600' }}>{t('authentication.enterpriseTypeRadio2')}</Radio>
98
-            <Radio style={{ fontSize: '16px', fontWeight: '600' }}>{t('authentication.enterpriseTypeRadio3')}</Radio>
99
-            <Radio style={{ fontSize: '16px', fontWeight: '600' }}>{t('authentication.enterpriseTypeRadio4')}</Radio>
100
-          </Form.Item>
101
-          <Form.Item label={t('authentication.formRightLabel2')}>
102
-            <Input.Group>
52
+          <Form.Item label={t('authentication.formRightLabel1')} wrapperCol={{ span: 18 }} name="companyType">
53
+            <Radio.Group>
54
+              <Radio
55
+                style={{ fontSize: '16px', fontWeight: '600', paddingBottom: '12px' }}
56
+                value={t('authentication.enterpriseTypeRadio1')}
57
+              >{t('authentication.enterpriseTypeRadio1')}</Radio>
58
+              <Radio
59
+                style={{ fontSize: '16px', fontWeight: '600', paddingBottom: '12px' }}
60
+                value={t('authentication.enterpriseTypeRadio2')}
61
+              >{t('authentication.enterpriseTypeRadio2')}</Radio>
62
+              <Radio
63
+                style={{ fontSize: '16px', fontWeight: '600', paddingBottom: '12px' }}
64
+                value={t('authentication.enterpriseTypeRadio3')}
65
+              >{t('authentication.enterpriseTypeRadio3')}</Radio>
66
+              <Radio
67
+                style={{ fontSize: '16px', fontWeight: '600' }}
68
+                value={t('authentication.enterpriseTypeRadio4')}
69
+              >{t('authentication.enterpriseTypeRadio4')}</Radio>
70
+            </Radio.Group>
71
+          </Form.Item>
72
+          <Form.Item label={t('authentication.formRightLabel2')} wrapperCol={{ span: 18 }} name="businessRegistrationNum">
73
+            <Input placeholder={t('authentication.formRightPlaceholder')} />
74
+            {/* <Input.Group>
103 75
               <Row>
104 76
                 <Col span={8}>
105 77
                   <Input placeholder="12345678" size="large" />
106 78
                 </Col>
107 79
                 <Col span={4}><Input placeholder="000" size="large" /></Col>
108 80
               </Row>
109
-            </Input.Group>
81
+            </Input.Group> */}
110 82
           </Form.Item>
111 83
 
112 84
 
113
-          <Form.Item label={t('authentication.formRightLabel3')} wrapperCol={{ span: 8 }}>
114
-            <Select defaultValue={t('authentication.formRightSelect1')}>
85
+          <Form.Item label={t('authentication.formRightLabel3')} wrapperCol={{ span: 18 }} name="registerCountry">
86
+            <Select placeholder={t('authentication.formRightPlaceholder2')}>
87
+              <Select.Option value={t('authentication.formRightSelect1')}>{t('authentication.formRightSelect1')}</Select.Option>
115 88
             </Select>
116 89
           </Form.Item>
117 90
 
118
-          <Form.Item>
91
+          <Form.Item wrapperCol={{ span: 18 }} name="registerProvinceRegion">
119 92
             <Select placeholder={t('authentication.formRightSelectPlaceholder1')}>
93
+              <Select.Option value="北京">北京</Select.Option>
120 94
             </Select>
121 95
           </Form.Item>
122
-          <Form.Item>
96
+          <Form.Item wrapperCol={{ span: 18 }} name="registerCity">
123 97
             <Input placeholder={t('authentication.formRightInputPlaceholder2')} />
124 98
           </Form.Item>
125
-          <Form.Item>
99
+          <Form.Item wrapperCol={{ span: 18 }} name="registerSpecificAddress">
126 100
             <Input placeholder={t('authentication.formRightInputPlaceholder3')} />
127 101
           </Form.Item>
128
-          <Form.Item>
102
+          <Form.Item wrapperCol={{ span: 18 }} name="registerPostalCode">
129 103
             <Input placeholder={t('authentication.formRightInputPlaceholder4')} />
130 104
           </Form.Item>
131
-          <Form.Item label={t('authentication.formRightLabel4')} wrapperCol={{ span: 8 }}>
132
-            <Select defaultValue={t('authentication.formRightSelectPlaceholderII1')}>
105
+          {/* 实际经营地址 */}
106
+          <Form.Item label={t('authentication.formRightLabel3')} wrapperCol={{ span: 18 }} name="realityCountry">
107
+            <Select placeholder={t('authentication.formRightSelectPlaceholder1')}>
108
+              <Select.Option value="中国香港(地区)">中国香港(地区)</Select.Option>
133 109
             </Select>
134 110
           </Form.Item>
135 111
 
136
-          <Form.Item>
112
+          <Form.Item wrapperCol={{ span: 18 }} name="realityProvinceRegion">
137 113
             <Select placeholder={t('authentication.formRightSelectPlaceholder1')}>
114
+              <Select.Option value="北京">北京</Select.Option>
138 115
             </Select>
139 116
           </Form.Item>
140
-          <Form.Item>
117
+          <Form.Item wrapperCol={{ span: 18 }} name="realityCity">
141 118
             <Input placeholder={t('authentication.formRightInputPlaceholder2')} />
142 119
           </Form.Item>
143
-          <Form.Item>
120
+          <Form.Item wrapperCol={{ span: 18 }} name="realitySpecificAddress">
144 121
             <Input placeholder={t('authentication.formRightInputPlaceholder3')} />
145 122
           </Form.Item>
146
-          <Form.Item>
123
+          <Form.Item wrapperCol={{ span: 18 }} name="realityPostalCode">
147 124
             <Input placeholder={t('authentication.formRightInputPlaceholder4')} />
148 125
           </Form.Item>
149 126
 
150
-          <Form.Item label={t('authentication.formRightLabel5')}>
127
+          <Form.Item label={t('authentication.formRightLabel5')} wrapperCol={{ span: 18 }} name="numEmployees">
151 128
             <Select placeholder={t('authentication.formRightInputPlaceholder5')}>
129
+              <Select.Option value={t('authentication.formRightInputNumber1')}>{t('authentication.formRightInputNumber1')}</Select.Option>
130
+              <Select.Option value={t('authentication.formRightInputNumber2')}>{t('authentication.formRightInputNumber2')}</Select.Option>
131
+              <Select.Option value={t('authentication.formRightInputNumber3')}>{t('authentication.formRightInputNumber3')}</Select.Option>
152 132
             </Select>
153 133
           </Form.Item>
154
-          <Form.Item label={t('authentication.formRightLabel6')}>
134
+          <Form.Item label={t('authentication.formRightLabel6')} wrapperCol={{ span: 18 }} name="businessPremisesType">
155 135
             <Select placeholder={t('authentication.formRightInputPlaceholder6')}>
136
+              <Select.Option value={t('authentication.formRightInputPlace1')}>{t('authentication.formRightInputPlace1')}</Select.Option>
137
+              <Select.Option value={t('authentication.formRightInputPlace2')}>{t('authentication.formRightInputPlace2')}</Select.Option>
138
+              <Select.Option value={t('authentication.formRightInputPlace3')}>{t('authentication.formRightInputPlace3')}</Select.Option>
139
+              <Select.Option value={t('authentication.formRightInputPlace4')}>{t('authentication.formRightInputPlace4')}</Select.Option>
156 140
             </Select>
157 141
           </Form.Item>
158
-          <Button type="primary" onClick={onNext} >{t('authentication.foundationInfoNextBtn')}</Button>
142
+          <Button type="primary" size="large" style={{ width: '6vw' }} htmlType="submit">{t('authentication.foundationInfoNextBtn')}</Button>
159 143
         </Card>
160 144
       </Form>
161 145
     </>

+ 2
- 2
src/pages/authentication/style.less Просмотреть файл

@@ -23,9 +23,9 @@
23 23
     display: inline-block;
24 24
   }
25 25
   .directorInfo-img-box {
26
-    padding: 12px;
26
+    padding: 24px;
27 27
     width: 600px;
28
-    background-color: #bfbfbf;
28
+    background-color: rgba(191, 191, 191, 0.1);
29 29
   }
30 30
   .face-recognition-box {
31 31
     display: flex;

+ 1
- 1
src/pages/qLogin/QLogin.jsx Просмотреть файл

@@ -46,7 +46,7 @@ export default (props) => {
46 46
         onFinish={onFinish}
47 47
       >
48 48
         <Form.Item
49
-          label="登录名"
49
+          label="手机号"
50 50
           name="loginName"
51 51
           rules={[{ required: true }]}
52 52
         >

+ 1
- 1
src/pages/qRegister/QRegister.jsx Просмотреть файл

@@ -59,7 +59,7 @@ export default (props) => {
59 59
           <Input placeholder="请输入用户名" />
60 60
         </Form.Item>
61 61
         <Form.Item
62
-          label="手机号(账户)"
62
+          label="手机号"
63 63
           name="phone"
64 64
           rules={[{ required: true }]}
65 65
         >

+ 7
- 7
src/services/login.js Просмотреть файл

@@ -4,37 +4,37 @@ import request from "@/utils/request";
4 4
  * 修改密码
5 5
  */
6 6
 export const changePassword = (data) =>
7
-  request(`/change-password`, { data, method: "put" });
7
+  request(`/admin/change-password`, { data, method: "put" });
8 8
 
9 9
 /*
10 10
  * 修改手机号
11 11
  */
12 12
 export const changePhone = (data) =>
13
-  request(`/change-phone`, { data, method: "put" });
13
+  request(`/admin/change-phone`, { data, method: "put" });
14 14
 
15 15
 /*
16 16
  * 修改邮箱
17 17
  */
18 18
 export const changeEmail = (data) =>
19
-  request(`/change-email`, { data, method: "put" });
19
+  request(`/admin/change-email`, { data, method: "put" });
20 20
 
21 21
 /*
22 22
  * 后台登录
23 23
  */
24 24
 export const login = (data) =>
25
-  request("/login", { data, method: "post" });
25
+  request("/admin/login", { data, method: "post" });
26 26
 
27 27
 /*
28 28
 * 后台注册
29 29
 */
30 30
 export const register = (data) =>
31
-  request("/register", { data, method: "post" });
31
+  request("/admin/register", { data, method: "post" });
32 32
 
33 33
 /*
34 34
 * 登出
35 35
 */
36 36
 export const logout = (data) =>
37
-  request("/logout", { data, method: "post" });
37
+  request("/admin/logout", { data, method: "post" });
38 38
 
39 39
 
40 40
 /*
@@ -46,4 +46,4 @@ export const logout = (data) =>
46 46
 /**
47 47
  * 获取当前用户信息
48 48
  */
49
-export const currentUser = (params) => request("/current", { params })
49
+export const currentUser = (params) => request("/admin/current", { params })

+ 26
- 0
src/services/taCompanyInfo.js Просмотреть файл

@@ -0,0 +1,26 @@
1
+import request from "@/utils/request";
2
+
3
+/*
4
+ * 分页查询
5
+ */
6
+export const getTaCompanyInfo = (params) => request(`/taCompanyInfo`, { params });
7
+
8
+/*
9
+ * 新增数据
10
+ */
11
+export const postTaCompanyInfo = (data) => request('/admin/taCompanyInfo', { data, method: 'post' });
12
+
13
+/*
14
+ * 更新数据
15
+ */
16
+export const putTaCompanyInfo = (id, data) => request(`/taCompanyInfo/${id}`, { data, method: 'put' });
17
+
18
+/*
19
+ * 通过主键删除数据
20
+ */
21
+export const deleteTaCompanyInfo = (id) => request(`/taCompanyInfo/${id}`, { method: 'delete' });
22
+
23
+/*
24
+ * 通过ID查询单条数据
25
+ */
26
+export const getTaCompanyInfoId = (id) => request(`/taCompanyInfo/${id}`);