page.js 7.5 KB

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