QRegister.jsx 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. import React, { useEffect } from "react";
  2. import { useNavigate } from "react-router-dom";
  3. import { Button, Form, Input, Radio, Select, Row, Col, Checkbox } from "antd";
  4. import "./style.less";
  5. export default (props) => {
  6. const navigate = useNavigate();
  7. const { Search } = Input;
  8. const [form] = Form.useForm();
  9. const onFinish = () => {
  10. }
  11. return (
  12. <div className="qregister-right-box">
  13. <div className="qregister-right-title">开通Qbit账户</div>
  14. <div style={{ display: 'flex', alignItems: 'center', marginBottom: '40px' }}>
  15. <div>已有账户?</div><Button type="link" onClick={() => navigate('/qLogin')}>去登陆</Button>
  16. </div>
  17. <Form
  18. form={form}
  19. layout="vertical"
  20. size="large"
  21. onFinish={onFinish}
  22. >
  23. <Form.Item
  24. label="手机号"
  25. name="loginName"
  26. rules={[{ required: true }]}
  27. >
  28. <Input.Group>
  29. <Row>
  30. <Col span={8}>
  31. <Select defaultValue="+86">
  32. <Option value="+86" style={{ backgroundColor: '#f5f5f5' }}>+86</Option>
  33. <Option value="+852" style={{ backgroundColor: '#f5f5f5' }}>+852</Option>
  34. </Select>
  35. </Col>
  36. <Col span={16}><Input placeholder="请输入手机号" /></Col>
  37. </Row>
  38. </Input.Group>
  39. </Form.Item>
  40. <Form.Item
  41. label="验证码"
  42. name="loginName"
  43. rules={[{ required: true }]}
  44. >
  45. <Input.Group>
  46. <Row>
  47. <Col span={15}>
  48. <Input placeholder="请输入手机验证码" />
  49. </Col>
  50. <Col span={9}><Button type="primary">获取验证码</Button></Col>
  51. </Row>
  52. </Input.Group>
  53. </Form.Item>
  54. <Form.Item
  55. label="设置密码"
  56. name="password"
  57. rules={[{ required: true }]}
  58. >
  59. <Input.Password
  60. placeholder="请设置密码"
  61. style={{ borderRadius: "4px" }}
  62. />
  63. </Form.Item>
  64. <Form.Item
  65. label="确认密码"
  66. name="password"
  67. rules={[{ required: true }]}
  68. >
  69. <Input.Password
  70. placeholder="请再次输入密码"
  71. style={{ borderRadius: "4px" }}
  72. />
  73. </Form.Item>
  74. <Form.Item
  75. label="微信号(选填)"
  76. name="loginName"
  77. >
  78. <Input placeholder="请输入微信号/手机号" style={{ borderRadius: "4px" }} />
  79. </Form.Item>
  80. <Form.Item
  81. label="邀请码(选填)"
  82. name="loginName"
  83. >
  84. <Input placeholder="若有,请输入邀请码" style={{ borderRadius: "4px" }} />
  85. </Form.Item>
  86. <Checkbox>
  87. <div>
  88. <span>我已阅读并同意</span>
  89. <a>Qbit General Terms and Conditions</a>和
  90. <a>Privacy Policies</a>
  91. {/*<Button type="link">Qbit General Terms and Conditions</Button>
  92. 和<Button type="link">Privacy Policies</Button> */}
  93. </div>
  94. </Checkbox>
  95. <Form.Item>
  96. <Button
  97. type="primary"
  98. size="large"
  99. style={{ width: "100%", marginTop: "24px", borderRadius: "4px", height: '3em' }}
  100. htmlType="submit"
  101. >
  102. 确认开通
  103. </Button>
  104. </Form.Item>
  105. </Form>
  106. </div>
  107. )
  108. }