page.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import React from 'react';
  2. import './index.less';
  3. import Page from '@src/containers/Page';
  4. import Input, { SelectInput, VerificationInput } from '../../../components/Input';
  5. import Button from '../../../components/Button';
  6. import { SpecialRadioGroup, RadioGroup } from '../../../components/Radio';
  7. import Tag from '../../../components/Tag';
  8. import Checkbox from '../../../components/CheckBox';
  9. import Money from '../../../components/Money';
  10. import { Block, TopBlock, TagBlock, LinkBlock } from '../../../components/Block';
  11. export default class extends Page {
  12. init() {}
  13. renderView() {
  14. return (
  15. <div>
  16. <Input placeholder="请输入手机号" error="该手机号已绑定其他账号,请更换手机号码。" onChange={() => {}} />
  17. <SelectInput placeholder="请输入手机号" selectValue="+86" onSelect={() => {}} />
  18. <VerificationInput placeholder="请输入验证码" onSend={() => {}} />
  19. <Button margin={25} radius block>
  20. 绑定
  21. </Button>
  22. <SpecialRadioGroup list={[{ key: '1', label: 1 }, { key: '2', label: 2 }]} value="1" onChange={() => {}} />
  23. <RadioGroup list={[{ key: '1', label: 1 }, { key: '2', label: 2 }]} value="1" onChange={() => {}} />
  24. <Tag size="small">适合新手</Tag>
  25. <Tag theme="border">OG20阅读刷题(7课时)</Tag>
  26. <Tag size="small" theme="border" radius>
  27. OG20阅读刷题(7课时)
  28. </Tag>
  29. <Checkbox checked />
  30. <Checkbox />
  31. <Money value="100" />
  32. <Money value="100" size="lager" />
  33. <Money value="100" size="lager" theme="sell" />
  34. <Block />
  35. <TopBlock />
  36. <TagBlock tag="Yuwen" />
  37. <LinkBlock title="新手辅导" sub="GMAT 全面了解,定制学习计划" />
  38. <LinkBlock title="诊断辅导" sub="复习效果不理想,制定突破计划" theme="not" />
  39. </div>
  40. );
  41. }
  42. }