page.js 9.4 KB

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