page.js 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. import React from 'react';
  2. import { CopyToClipboard } from 'react-copy-to-clipboard';
  3. import './index.less';
  4. import Page from '@src/containers/Page';
  5. import Assets from '@src/components/Assets';
  6. import { asyncSMessage } from '@src/services/AsyncTools';
  7. import { PcUrl } from '../../../../Constant';
  8. import { Main } from '../../../stores/main';
  9. export default class extends Page {
  10. initData() {
  11. Main.getIndex().then(result => {
  12. this.setState(result);
  13. });
  14. }
  15. renderView() {
  16. const { user = {} } = this.state;
  17. const { info = {} } = this.props.user;
  18. return (
  19. <div>
  20. <div className="block-1">
  21. <div className="title">加入“千行GMAT”</div>
  22. <div className="sub">一起Waste Less,Learn More.</div>
  23. <div className="line" />
  24. <div className="copy-title">复制下方地址至浏览器打开</div>
  25. <div className="input">
  26. <div className="prefix">http://</div>
  27. <div className="value">{PcUrl.replace('http://', '')}/id/{info.inviteCode}</div>
  28. <CopyToClipboard
  29. text={`${PcUrl}/id/${info.inviteCode}`}
  30. onCopy={() => asyncSMessage('已复制')}>
  31. <Assets name="copy" />
  32. </CopyToClipboard>
  33. </div>
  34. </div>
  35. <div className="block-2">
  36. <div className="bg">
  37. <div className="bg-1" />
  38. <div className="bg-2" />
  39. <div className="bg-3" />
  40. <div className="bg-4" />
  41. <div className="bg-5" />
  42. </div>
  43. <div className="fixed">
  44. <div className="h-title">PREPARE THE GMAT LIKE A PRO.</div>
  45. <div className="line" />
  46. <div className="title">Why 千行</div>
  47. <div className="block-2-1">
  48. <div className="block-2-1-h">
  49. <Assets name="planet" />
  50. <div className="block-2-1-h-t">内容全⾯</div>
  51. <div className="block-2-1-h-s">360° Support</div>
  52. </div>
  53. <div className="block-2-1-d">
  54. 网站涵盖考试介绍、方法引导、技巧点拨、练习、课程、机经、模考、心经分享等,从入门到出分,一应俱全,满足各阶段考生的备考需求。
  55. </div>
  56. </div>
  57. <div className="block-2-1">
  58. <div className="block-2-1-h">
  59. <Assets name="expert" />
  60. <div className="block-2-1-h-t">指导专业</div>
  61. <div className="block-2-1-h-s">We are Pro.</div>
  62. </div>
  63. <div className="block-2-1-d">
  64. 专注GMAT备考8年
  65. <br /> 出分周期高于行业平均水平26%
  66. <br /> 学员均分高于行业18%
  67. </div>
  68. </div>
  69. <div className="block-2-1">
  70. <div className="block-2-1-h">
  71. <Assets name="userfriendly" />
  72. <div className="block-2-1-h-t">⼈⼈会⽤</div>
  73. <div className="block-2-1-h-s">User-frriendly</div>
  74. </div>
  75. <div className="block-2-1-d">
  76. 除提供有用的数据信息外,网站多处设置信息导,提供必要的解释和原理说明,从源头规避误区,协助考生做出更加明智的决策,提高备考效率。
  77. </div>
  78. </div>
  79. <div className="block-2-2">
  80. <div className="block-2-2-i">
  81. <div className="block-2-2-i-t blue">{user.numberOffline}</div>
  82. <div className="block-2-2-i-d">注册用户</div>
  83. </div>
  84. <div className="block-2-2-i">
  85. <div className="block-2-2-i-t yellow">{user.number700}</div>
  86. <div className="block-2-2-i-d">700+分学员</div>
  87. </div>
  88. <div className="block-2-2-i">
  89. <div className="block-2-2-i-t red">{user.numberScore}</div>
  90. <div className="block-2-2-i-d">学员均分</div>
  91. </div>
  92. </div>
  93. <div className="title">独家服务</div>
  94. <div className="block-2-3">
  95. <Assets name="sun_blue" />
  96. <div className="block-2-3-t blue">千⾏CAT模考</div>
  97. <div className="block-2-3-d">采⽤CAT出题机制、排名制算分⽅法</div>
  98. <div className="block-2-3-d">独家题源,排除重题⼲扰</div>
  99. <div className="block-2-3-d">模考报告提供具体考点分析,明确提升⽅向。</div>
  100. </div>
  101. <div className="block-2-3">
  102. <Assets name="sun_red" />
  103. <div className="block-2-3-t red">机经服务</div>
  104. <div className="block-2-3-d">⾼效整理:梳理逻辑结构,⽆“反吞噬”⻛险</div>
  105. <div className="block-2-3-d">轻松获取:⾃动更新⾄邮箱代替⼿动领取</div>
  106. <div className="block-2-3-d">随时查阅:⼿机查看、在线浏览、在线做题</div>
  107. </div>
  108. <div className="block-2-3">
  109. <Assets name="sun_yello" />
  110. <div className="block-2-3-t yellow">VIP服务</div>
  111. <div className="block-2-3-d">⾃由组卷,练你想练</div>
  112. <div className="block-2-3-d">独家解析,专业报告</div>
  113. <div className="block-2-3-d">提问特权,1VS1答疑</div>
  114. </div>
  115. </div>
  116. </div>
  117. </div >
  118. );
  119. }
  120. }