page.js 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. import React from 'react';
  2. import './index.less';
  3. import Page from '@src/containers/Page';
  4. import Continue from '../../../components/Continue';
  5. import Tabs from '../../../components/Tabs';
  6. import Module from '../../../components/Module';
  7. import Division from '../../../components/Division';
  8. import Panel from '../../../components/Panel';
  9. import Card from '../../../components/Card';
  10. import List from '../../../components/List';
  11. import ListTable from '../../../components/ListTable';
  12. import ProgressText from '../../../components/ProgressText';
  13. import IconButton from '../../../components/IconButton';
  14. import Step from '../../../components/Step';
  15. export default class extends Page {
  16. renderView() {
  17. return (
  18. <div>
  19. <Continue date={'2019-04-29 16:30'} data={{}} />
  20. <div className="content">
  21. <Module className="m-t-2">
  22. <Tabs
  23. type="card"
  24. active="main"
  25. tabs={[
  26. { key: 'main', name: '首页', path: '/' },
  27. { key: 'ready', name: 'GetReady', path: '/' },
  28. { key: 'exercise', name: '练习', path: '/' },
  29. { key: 'cat', name: 'CAT模考', path: '/' },
  30. { key: 'item', name: '题库', path: '/' },
  31. { key: 'machine', name: '换库&机经', path: '/' },
  32. ]}
  33. />
  34. <Tabs
  35. active="main"
  36. tabs={[
  37. { key: 'main', name: '首页', path: '/' },
  38. { key: 'ready', name: 'GetReady', path: '/' },
  39. { key: 'exercise', name: '练习', path: '/' },
  40. { key: 'cat', name: 'CAT模考', path: '/' },
  41. { key: 'item', name: '题库', path: '/' },
  42. ]}
  43. />
  44. </Module>
  45. <Module>
  46. <Tabs
  47. active="main"
  48. border
  49. width="180px"
  50. space="0"
  51. tabs={[
  52. { key: 'main', name: '首页', path: '/' },
  53. { key: 'ready', name: 'GetReady', path: '/' },
  54. { key: 'exercise', name: '练习', path: '/' },
  55. { key: 'cat', name: 'CAT模考', path: '/' },
  56. { key: 'item', name: '题库', path: '/' },
  57. ]}
  58. />
  59. <Tabs
  60. active="main"
  61. type="text"
  62. tabs={[
  63. { key: 'main', name: '首页', path: '/' },
  64. { key: 'ready', name: 'GetReady', path: '/' },
  65. { key: 'exercise', name: '练习', path: '/' },
  66. { key: 'cat', name: 'CAT模考', path: '/' },
  67. { key: 'item', name: '题库', path: '/' },
  68. ]}
  69. />
  70. </Module>
  71. <Module>
  72. <Step
  73. list={[
  74. '「1」前言',
  75. '「2」重新认识',
  76. '「3」基本元素',
  77. '「4」简单变长',
  78. '「5」练习',
  79. '「6」翻译',
  80. '「7」附录',
  81. ]}
  82. step="4"
  83. />
  84. </Module>
  85. <Division col="2">
  86. <Panel
  87. title="OG"
  88. col="3"
  89. list={[{ progress: 10, title: '测试' }, { progress: 10, title: '测试' }, { progress: 0, title: '测试' }]}
  90. />
  91. <Panel
  92. title="OG"
  93. col="4"
  94. list={[{ progress: 10, title: '测试' }, { progress: 10, title: '测试' }, { progress: 10, title: '测试' }]}
  95. />
  96. </Division>
  97. <Division col="3">
  98. <Card title="句改 SC" data={{ status: 'buy', desc: ['名师讲解', '精进学习', '提升成绩'] }} />
  99. <Card title="句改 SC" data={{ status: 'open' }} />
  100. <Card
  101. title="句改 SC"
  102. data={{
  103. status: 'ing',
  104. list: [
  105. { progress: 30, date: '2019-04-22', status: 'start' },
  106. { progress: 40, date: '2019-04-22', status: 'ing' },
  107. ],
  108. }}
  109. />
  110. <Card title="句改 SC" data={{ status: 'ing', list: [] }} />
  111. <Card title="句改 SC" data={{ status: 'end' }} />
  112. </Division>
  113. <List
  114. title="Chapter4"
  115. subTitle="简单句如何变长难句"
  116. list={[{ progress: 30, title: '什么样的句子叫长难句,长难句的基本特征。', part: 'Part 1' }]}
  117. />
  118. <ListTable
  119. title="Chapter5"
  120. subTitle="练习"
  121. filters={[
  122. { type: 'radio', checked: 'first', list: [{ key: 'first', title: 123 }, { key: 'two', title: 321 }] },
  123. { type: 'select', checked: 'first', list: [{ key: 'first', title: 123 }, { key: 'two', title: 321 }] },
  124. ]}
  125. data={[{}]}
  126. columns={[
  127. {
  128. title: '练习册',
  129. width: 250,
  130. align: 'left',
  131. render: () => {
  132. return (
  133. <div className="table-row">
  134. <div className="night f-s-16">OG18 综合:第1-20题</div>
  135. <div>
  136. <ProgressText progress="30" size="small" />
  137. </div>
  138. </div>
  139. );
  140. },
  141. },
  142. {
  143. title: '正确率',
  144. width: 150,
  145. align: 'left',
  146. render: () => {
  147. return (
  148. <div className="table-row">
  149. <div className="night f-s-16 f-w-b">--</div>
  150. <div className="f-s-12">全站55%</div>
  151. </div>
  152. );
  153. },
  154. },
  155. {
  156. title: '全站用时',
  157. width: 150,
  158. align: 'left',
  159. render: () => {
  160. return (
  161. <div className="table-row">
  162. <div className="night f-s-16 f-w-b">55%</div>
  163. <div className="f-s-12">全站56s</div>
  164. </div>
  165. );
  166. },
  167. },
  168. {
  169. title: '最近做题',
  170. width: 150,
  171. align: 'left',
  172. render: () => {
  173. return (
  174. <div className="table-row">
  175. <div>2019-04-28</div>
  176. <div>07:30</div>
  177. </div>
  178. );
  179. },
  180. },
  181. {
  182. title: '操作',
  183. width: 180,
  184. align: 'left',
  185. render: () => {
  186. return (
  187. <div className="table-row p-t-1">
  188. <IconButton className="m-r-2" type="continue" tip="Continue" />
  189. <IconButton type="restart" tip="Restart" />
  190. </div>
  191. );
  192. },
  193. },
  194. {
  195. title: '报告',
  196. width: 30,
  197. align: 'right',
  198. render: () => {
  199. return (
  200. <div className="table-row p-t-1">
  201. <IconButton type="report" tip="Report" />
  202. </div>
  203. );
  204. },
  205. },
  206. ]}
  207. />
  208. </div>
  209. </div>
  210. );
  211. }
  212. }