page.js 8.0 KB

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