index.vue 61 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723
  1. <template>
  2. <div class="course-exam">
  3. <Header></Header>
  4. <section class="section">
  5. <div class="container">
  6. <div class="section__header">
  7. <!-- <el-breadcrumb separator="/">
  8. <el-breadcrumb-item
  9. v-for="(item, index) in $route.matched"
  10. :key="index"
  11. :to="{ path: item.path }"
  12. >{{ item.name }}</el-breadcrumb-item
  13. >
  14. </el-breadcrumb> -->
  15. </div>
  16. <div class="section__body">
  17. <div class="explain-record">
  18. <div class="explain-record__body">
  19. <div class="left-box">
  20. <div class="left-box__header">
  21. <el-progress
  22. class="progress"
  23. :text-inside="true"
  24. :stroke-width="26"
  25. :percentage="
  26. toFixed(
  27. (questionOverNum(true) / questionList.length) * 100
  28. ) || 0
  29. "
  30. ></el-progress>
  31. <div class="text">
  32. 已完成<span>{{ questionOverNum(true) }}</span
  33. >/{{ questionList.length }}道题
  34. </div>
  35. </div>
  36. <div class="left-box__footer">
  37. <div class="btn" @click="prevQuestion">上一题</div>
  38. <div class="btn" @click="nextQuestion">下一题</div>
  39. </div>
  40. <div class="left-box__body">
  41. <template v-for="(question, questionIndex) in questionList">
  42. <div
  43. class="question"
  44. v-if="question.type == 1 && current == questionIndex"
  45. :key="questionIndex"
  46. >
  47. <div class="question__title">
  48. {{ questionIndex + 1 }}、单选题
  49. </div>
  50. <div
  51. class="question__desc"
  52. v-html="question.content"
  53. ></div>
  54. <div class="question__content">
  55. <div class="question-list" v-if="!question.ques">
  56. <div
  57. class="radio"
  58. v-for="(item, index) in question.jsonStr"
  59. :key="index"
  60. >
  61. <div>
  62. {{ ast[index] }}. {{ item.content }}
  63. <div v-if="item.imgUrl">
  64. <img
  65. style="max-width: 100%"
  66. :src="$tools.splitImgHost(item.imgUrl)"
  67. alt=""
  68. />
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. <div class="question-list" v-if="question.ques">
  74. <div
  75. class="radio"
  76. :class="{
  77. right:
  78. item.optionsId == question.ques ||
  79. item.optionsId == question.ans,
  80. wrong:
  81. item.optionsId == question.ques &&
  82. question.ques != question.ans,
  83. }"
  84. v-for="(item, index) in question.jsonStr"
  85. :key="index"
  86. >
  87. <div>
  88. {{ ast[index] }}. {{ item.content }}
  89. <div v-if="item.imgUrl">
  90. <img
  91. style="max-width: 100%"
  92. :src="$tools.splitImgHost(item.imgUrl)"
  93. alt=""
  94. />
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. <div class="answer-list">
  100. <div class="answer-list__left">
  101. 正确答案:{{ ast[question.ans - 1] }}
  102. </div>
  103. <div class="answer-list__left">
  104. 我的答案:{{ ast[question.ques - 1] }}
  105. </div>
  106. </div>
  107. <div class="explain-list">
  108. <div class="explain-list__header">答案解析:</div>
  109. <div
  110. class="explain-list__body"
  111. v-html="question.analysisContent"
  112. ></div>
  113. </div>
  114. </div>
  115. <div class="question__btns">
  116. <!-- <div class="collect" @click="collect">收藏本题</div> -->
  117. </div>
  118. </div>
  119. <div
  120. class="question"
  121. v-if="question.type == 2 && current == questionIndex"
  122. :key="questionIndex"
  123. >
  124. <div class="question__title">
  125. {{ questionIndex + 1 }}、多选题
  126. </div>
  127. <div
  128. class="question__desc"
  129. v-html="question.content"
  130. ></div>
  131. <div class="question__content">
  132. <div class="question-list" v-if="!question.ques">
  133. <el-checkbox
  134. disabled
  135. class="checkbox"
  136. v-for="(item, index) in question.jsonStr"
  137. :key="index"
  138. :label="item.optionsId"
  139. v-model="item.checked"
  140. >
  141. <div>
  142. {{ ast[index] }}. {{ item.content }}
  143. <div v-if="item.imgUrl">
  144. <img
  145. style="max-width: 100%"
  146. :src="$tools.splitImgHost(item.imgUrl)"
  147. alt=""
  148. />
  149. </div>
  150. </div>
  151. </el-checkbox>
  152. </div>
  153. <div class="question-list" v-if="question.ques">
  154. <el-checkbox
  155. disabled
  156. class="checkbox"
  157. :class="{
  158. right:
  159. question.ques.indexOf(item.optionsId) != -1 ||
  160. question.ans.indexOf(item.optionsId) != -1,
  161. wrong:
  162. question.ques.indexOf(item.optionsId) != -1 &&
  163. question.ans.indexOf(item.optionsId) == -1,
  164. }"
  165. v-for="(item, index) in question.jsonStr"
  166. :key="index"
  167. :label="item.optionsId"
  168. v-model="item.checked"
  169. >
  170. <div>
  171. {{ ast[index] }}. {{ item.content }}
  172. <div v-if="item.imgUrl">
  173. <img
  174. style="max-width: 100%"
  175. :src="$tools.splitImgHost(item.imgUrl)"
  176. alt=""
  177. />
  178. </div>
  179. </div>
  180. </el-checkbox>
  181. </div>
  182. <div class="answer-list">
  183. <div class="answer-list__left">
  184. 正确答案:
  185. <template v-for="ansItem in question.ans">{{
  186. ast[ansItem - 1]
  187. }}</template>
  188. </div>
  189. <div class="answer-list__left">
  190. 我的答案:
  191. <template v-for="quesItem in question.ques">{{
  192. ast[quesItem - 1]
  193. }}</template>
  194. </div>
  195. </div>
  196. <div class="explain-list">
  197. <div class="explain-list__header">答案解析:</div>
  198. <div
  199. class="explain-list__body"
  200. v-html="question.analysisContent"
  201. ></div>
  202. </div>
  203. </div>
  204. <div class="question__btns">
  205. <!-- <div class="collect" @click="collect">收藏本题</div> -->
  206. </div>
  207. </div>
  208. <div
  209. class="question"
  210. v-if="question.type == 3 && current == questionIndex"
  211. :key="questionIndex"
  212. >
  213. <div class="question__title">
  214. {{ questionIndex + 1 }}、判断题
  215. </div>
  216. <div
  217. class="question__desc"
  218. v-html="question.content"
  219. ></div>
  220. <div class="question__content">
  221. <div class="question-list" v-if="!question.ques">
  222. <div
  223. class="radio"
  224. v-for="(item, index) in judge"
  225. :key="index"
  226. >
  227. <div>
  228. {{ ast[index] }}. {{ item }}
  229. <div v-if="item.imgUrl">
  230. <img
  231. style="max-width: 100%"
  232. :src="$tools.splitImgHost(item.imgUrl)"
  233. alt=""
  234. />
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. <div class="question-list" v-if="question.ques">
  240. <div
  241. class="radio"
  242. :class="{
  243. right:
  244. index == question.ques || index == question.ans,
  245. wrong:
  246. index == question.ques &&
  247. question.ques != question.ans,
  248. }"
  249. v-for="(item, index) in judge"
  250. :key="index"
  251. >
  252. <div>
  253. {{ ast[index] }}. {{ item }}
  254. <div v-if="item.imgUrl">
  255. <img
  256. style="max-width: 100%"
  257. :src="$tools.splitImgHost(item.imgUrl)"
  258. alt=""
  259. />
  260. </div>
  261. </div>
  262. </div>
  263. </div>
  264. <div class="answer-list">
  265. <div class="answer-list__left">
  266. 正确答案:{{ ast[question.ans] }}
  267. </div>
  268. <div class="answer-list__left">
  269. 我的答案:{{ ast[question.ques] }}
  270. </div>
  271. </div>
  272. <div class="explain-list">
  273. <div class="explain-list__header">答案解析:</div>
  274. <div
  275. class="explain-list__body"
  276. v-html="question.analysisContent"
  277. ></div>
  278. </div>
  279. </div>
  280. <div class="question__btns">
  281. <!-- <div class="collect" @click="collect">收藏本题</div> -->
  282. </div>
  283. </div>
  284. <div
  285. class="question"
  286. v-if="question.type == 4 && current == questionIndex"
  287. :key="questionIndex"
  288. >
  289. <div class="question__title">
  290. {{ questionIndex + 1 }}、案例题
  291. </div>
  292. <div
  293. class="question__desc"
  294. v-html="question.content"
  295. ></div>
  296. <div class="question__content">
  297. <el-tabs v-model="question.tabIndex">
  298. <el-tab-pane
  299. v-for="(json, jsonIndex) in question.jsonStr"
  300. :label="'问题' + (jsonIndex + 1)"
  301. :name="jsonIndex + ''"
  302. :key="jsonIndex"
  303. >
  304. <div
  305. class="question"
  306. v-if="json.type == 1"
  307. :key="questionIndex"
  308. >
  309. <div class="question__title">
  310. {{ jsonIndex + 1 }}、单选题
  311. </div>
  312. <div
  313. class="question__desc"
  314. v-html="json.content"
  315. ></div>
  316. <div class="question__content">
  317. <div
  318. class="question-list"
  319. v-if="!question.ques[jsonIndex]"
  320. >
  321. <div
  322. class="radio"
  323. v-for="(item, index) in json.optionsList"
  324. :key="index"
  325. >
  326. <div>
  327. {{ ast[index] }}. {{ item.content }}
  328. <div v-if="item.imgUrl">
  329. <img
  330. style="max-width: 100%"
  331. :src="
  332. $tools.splitImgHost(item.imgUrl)
  333. "
  334. alt=""
  335. />
  336. </div>
  337. </div>
  338. </div>
  339. </div>
  340. <div
  341. class="question-list"
  342. v-if="question.ques[jsonIndex]"
  343. >
  344. <div
  345. class="radio"
  346. :class="{
  347. right:
  348. item.optionsId ==
  349. question.ques[jsonIndex] ||
  350. item.optionsId ==
  351. question.ans[jsonIndex],
  352. wrong:
  353. item.optionsId ==
  354. question.ques[jsonIndex] &&
  355. question.ques[jsonIndex] !=
  356. question.ans[jsonIndex],
  357. }"
  358. v-for="(item, index) in json.optionsList"
  359. :key="index"
  360. >
  361. <div>
  362. {{ ast[index] }}. {{ item.content }}
  363. <div v-if="item.imgUrl">
  364. <img
  365. style="max-width: 100%"
  366. :src="
  367. $tools.splitImgHost(item.imgUrl)
  368. "
  369. alt=""
  370. />
  371. </div>
  372. </div>
  373. </div>
  374. </div>
  375. <div class="answer-list">
  376. <div class="answer-list__left">
  377. 正确答案:{{
  378. ast[question.ans[jsonIndex] - 1]
  379. }}
  380. </div>
  381. <div class="answer-list__left">
  382. 我的答案:{{
  383. ast[question.ques[jsonIndex] - 1]
  384. }}
  385. </div>
  386. </div>
  387. <div class="explain-list">
  388. <div class="explain-list__header">
  389. 答案解析:
  390. </div>
  391. <div
  392. class="explain-list__body"
  393. v-html="json.analysisContent"
  394. ></div>
  395. </div>
  396. </div>
  397. <div class="question__btns"></div>
  398. </div>
  399. <div
  400. class="question"
  401. v-if="json.type == 2"
  402. :key="jsonIndex"
  403. >
  404. <div class="question__title">
  405. {{ jsonIndex + 1 }}、多选题
  406. </div>
  407. <div
  408. class="question__desc"
  409. v-html="json.content"
  410. ></div>
  411. <div class="question__content">
  412. <div
  413. class="question-list"
  414. v-if="!question.ques[jsonIndex]"
  415. >
  416. <el-checkbox
  417. disabled
  418. class="checkbox"
  419. v-for="(item, index) in json.optionsList"
  420. :key="index"
  421. :label="item.optionsId"
  422. v-model="item.checked"
  423. >
  424. <div>
  425. {{ ast[index] }}. {{ item.content }}
  426. <div v-if="item.imgUrl">
  427. <img
  428. style="max-width: 100%"
  429. :src="
  430. $tools.splitImgHost(item.imgUrl)
  431. "
  432. alt=""
  433. />
  434. </div>
  435. </div>
  436. </el-checkbox>
  437. </div>
  438. <div
  439. class="question-list"
  440. v-if="question.ques[jsonIndex]"
  441. >
  442. <el-checkbox
  443. disabled
  444. class="checkbox"
  445. :class="{
  446. right:
  447. question.ques[jsonIndex].indexOf(
  448. item.optionsId
  449. ) != -1 ||
  450. question.ans[jsonIndex].indexOf(
  451. item.optionsId
  452. ) != -1,
  453. wrong:
  454. question.ques[jsonIndex].indexOf(
  455. item.optionsId
  456. ) != -1 &&
  457. question.ans[jsonIndex].indexOf(
  458. item.optionsId
  459. ) == -1,
  460. }"
  461. v-for="(item, index) in json.optionsList"
  462. :key="index"
  463. :label="item.optionsId"
  464. v-model="item.checked"
  465. >
  466. <div>
  467. {{ ast[index] }}. {{ item.content }}
  468. <div v-if="item.imgUrl">
  469. <img
  470. style="max-width: 100%"
  471. :src="
  472. $tools.splitImgHost(item.imgUrl)
  473. "
  474. alt=""
  475. />
  476. </div>
  477. </div>
  478. </el-checkbox>
  479. </div>
  480. <div class="answer-list">
  481. <div class="answer-list__left">
  482. 正确答案:
  483. <template
  484. v-for="ansItem in question.ans[jsonIndex]"
  485. >{{ ast[ansItem - 1] }}</template
  486. >
  487. </div>
  488. <div class="answer-list__left">
  489. 我的答案:
  490. <template
  491. v-for="quesItem in question.ques[
  492. jsonIndex
  493. ]"
  494. >{{ ast[quesItem - 1] }}</template
  495. >
  496. </div>
  497. </div>
  498. <div class="explain-list">
  499. <div class="explain-list__header">
  500. 答案解析:
  501. </div>
  502. <div
  503. class="explain-list__body"
  504. v-html="json.analysisContent"
  505. ></div>
  506. </div>
  507. </div>
  508. <div class="question__btns"></div>
  509. </div>
  510. <div
  511. class="question"
  512. v-if="json.type == 3"
  513. :key="jsonIndex"
  514. >
  515. <div class="question__title">
  516. {{ jsonIndex + 1 }}、判断题
  517. </div>
  518. <div
  519. class="question__desc"
  520. v-html="json.content"
  521. ></div>
  522. <div class="question__content">
  523. <div
  524. class="question-list"
  525. v-if="!question.ques[jsonIndex]"
  526. >
  527. <div
  528. class="radio"
  529. v-for="(item, index) in judge"
  530. :key="index"
  531. >
  532. <div>
  533. {{ ast[index] }}. {{ item }}
  534. <div v-if="item.imgUrl">
  535. <img
  536. style="max-width: 100%"
  537. :src="
  538. $tools.splitImgHost(item.imgUrl)
  539. "
  540. alt=""
  541. />
  542. </div>
  543. </div>
  544. </div>
  545. </div>
  546. <div
  547. class="question-list"
  548. v-if="question.ques[jsonIndex]"
  549. >
  550. <div
  551. class="radio"
  552. :class="{
  553. right:
  554. index == question.ques[jsonIndex] ||
  555. index == question.ans[jsonIndex],
  556. wrong:
  557. index == question.ques[jsonIndex] &&
  558. question.ques[jsonIndex] !=
  559. question.ans[jsonIndex],
  560. }"
  561. v-for="(item, index) in judge"
  562. :key="index"
  563. >
  564. <div>
  565. {{ ast[index] }}. {{ item }}
  566. <div v-if="item.imgUrl">
  567. <img
  568. style="max-width: 100%"
  569. :src="
  570. $tools.splitImgHost(item.imgUrl)
  571. "
  572. alt=""
  573. />
  574. </div>
  575. </div>
  576. </div>
  577. </div>
  578. <div class="answer-list">
  579. <div class="answer-list__left">
  580. 正确答案:{{ ast[question.ans[jsonIndex]] }}
  581. </div>
  582. <div class="answer-list__left">
  583. 我的答案:{{
  584. ast[question.ques[jsonIndex]]
  585. }}
  586. </div>
  587. </div>
  588. <div class="explain-list">
  589. <div class="explain-list__header">
  590. 答案解析:
  591. </div>
  592. <div
  593. class="explain-list__body"
  594. v-html="json.analysisContent"
  595. ></div>
  596. </div>
  597. </div>
  598. <div class="question__btns"></div>
  599. </div>
  600. <div
  601. class="question"
  602. v-if="json.type == 5"
  603. :key="jsonIndex"
  604. >
  605. <div class="question__title">
  606. {{ jsonIndex + 1 }}、简答题
  607. </div>
  608. <div
  609. class="question__desc"
  610. v-html="json.content"
  611. ></div>
  612. <div class="question__content">
  613. <div class="explain-list">
  614. <div class="explain-list__header">
  615. 我的答案:
  616. </div>
  617. <div class="explain-list__body">
  618. <div>
  619. {{
  620. question.ques[jsonIndex] &&
  621. question.ques[jsonIndex].text
  622. }}
  623. </div>
  624. <div class="upload clearfix">
  625. <div
  626. class="upload__imgs"
  627. v-for="(img, imgIndex) in question.ques[
  628. jsonIndex
  629. ] && question.ques[jsonIndex].imageList"
  630. :key="imgIndex"
  631. >
  632. <img
  633. :src="$tools.splitImgHost(img, true)"
  634. alt=""
  635. />
  636. </div>
  637. </div>
  638. </div>
  639. <div class="explain-list__header">
  640. 答案解析:
  641. </div>
  642. <div
  643. class="explain-list__body"
  644. v-html="question.analysisContent"
  645. ></div>
  646. </div>
  647. </div>
  648. <div class="question__btns"></div>
  649. </div>
  650. </el-tab-pane>
  651. </el-tabs>
  652. </div>
  653. <div class="question__btns">
  654. <!-- <div class="collect" @click="collect">收藏本题</div> -->
  655. </div>
  656. </div>
  657. <div
  658. class="question"
  659. v-if="question.type == 5 && current == questionIndex"
  660. :key="questionIndex"
  661. >
  662. <div class="question__title">
  663. {{ questionIndex + 1 }}、简答题
  664. </div>
  665. <div
  666. class="question__desc"
  667. v-html="question.content"
  668. ></div>
  669. <div class="question__content">
  670. <div class="explain-list">
  671. <div class="explain-list__header">我的答案:</div>
  672. <div class="explain-list__body">
  673. <div>{{ question.ques.text }}</div>
  674. <div class="upload clearfix">
  675. <div
  676. class="upload__imgs"
  677. v-for="(img, imgIndex) in question.ques
  678. .imageList"
  679. :key="imgIndex"
  680. >
  681. <img
  682. :src="$tools.splitImgHost(img, true)"
  683. alt=""
  684. />
  685. </div>
  686. </div>
  687. </div>
  688. <div class="explain-list__header">答案解析:</div>
  689. <div
  690. class="explain-list__body"
  691. v-html="question.analysisContent"
  692. ></div>
  693. </div>
  694. </div>
  695. <div class="question__btns">
  696. <!-- <div class="collect" @click="collect">收藏本题</div> -->
  697. </div>
  698. </div>
  699. </template>
  700. </div>
  701. </div>
  702. <div class="right-box">
  703. <div class="right-box__header">
  704. <el-button
  705. type="primary"
  706. round
  707. plain
  708. size="small"
  709. class="back-btn"
  710. @click="$router.back(-1)"
  711. >返回</el-button
  712. >
  713. </div>
  714. <div class="right-box__header">答题卡</div>
  715. <div class="right-box__body">
  716. <div class="card">
  717. <div class="card__note">
  718. <div class="item">
  719. <div class="box green"></div>
  720. 正确
  721. </div>
  722. <div class="item">
  723. <div class="box red"></div>
  724. 错误
  725. </div>
  726. <div class="item">
  727. <div class="box blue"></div>
  728. 已做未评改
  729. </div>
  730. <div class="item">
  731. <div class="box yellow"></div>
  732. 少选
  733. </div>
  734. <div class="item">
  735. <div class="box white"></div>
  736. 未做
  737. </div>
  738. </div>
  739. <div class="card__content">
  740. <ul class="list">
  741. <li
  742. class="item white"
  743. v-for="(item, index) in questionList"
  744. :key="index"
  745. :class="{
  746. green: isRight(item, index),
  747. red: isWrong(item, index),
  748. yellow: isPart(item, index),
  749. blue: isOver(item, index),
  750. }"
  751. @click="changeIndex(index)"
  752. >
  753. {{ index + 1 }}
  754. </li>
  755. </ul>
  756. </div>
  757. </div>
  758. </div>
  759. </div>
  760. </div>
  761. </div>
  762. </div>
  763. </div>
  764. </section>
  765. <ToolBar></ToolBar>
  766. <Footer></Footer>
  767. </div>
  768. </template>
  769. <script>
  770. import Footer from "@/components/footer/index";
  771. import Header from "@/components/header/index";
  772. import ToolBar from "@/components/toolbar/index";
  773. import { mapMutations } from "vuex";
  774. export default {
  775. name: "BankExplain",
  776. components: {
  777. Footer,
  778. Header,
  779. ToolBar,
  780. },
  781. data() {
  782. return {
  783. recordId: 0,
  784. questionIndex: 0,
  785. checked: false,
  786. questionList: [],
  787. judge: ["错误", "正确"],
  788. ast: [
  789. "A",
  790. "B",
  791. "C",
  792. "D",
  793. "E",
  794. "F",
  795. "G",
  796. "H",
  797. "I",
  798. "J",
  799. "K",
  800. "L",
  801. "M",
  802. "N",
  803. "O",
  804. "P",
  805. "Q",
  806. "R",
  807. "S",
  808. "T",
  809. "U",
  810. "V",
  811. "W",
  812. "X",
  813. "Y",
  814. "Z",
  815. ],
  816. lastCount: 0,
  817. examId: 0,
  818. goodsId: 0,
  819. courseId: 0,
  820. gradeId: 0,
  821. moduleId: 0,
  822. chapterId: 0,
  823. current: 0,
  824. orderGoodsId: 0,
  825. courseType: 1, //1题库,2视频 商品类型
  826. };
  827. },
  828. async mounted() {
  829. this.recordId = this.$route.params.recordId;
  830. this.examId = this.$route.query.examId;
  831. this.moduleId = this.$route.query.moduleId;
  832. this.chapterId = this.$route.query.chapterId;
  833. this.goodsId = this.$route.query.goodsId;
  834. this.orderGoodsId = this.$route.query.orderGoodsId;
  835. this.courseType = this.$route.query.courseType
  836. this.goodsQuestionList();
  837. },
  838. methods: {
  839. ...mapMutations(["setExamResult"]),
  840. toFixed(num) {
  841. if (num) {
  842. let str = String(num).indexOf(".");
  843. if (str != -1) {
  844. return +num.toFixed(2);
  845. } else {
  846. return num;
  847. }
  848. } else {
  849. return 0;
  850. }
  851. },
  852. changeIndex(index) {
  853. this.current = index;
  854. },
  855. /**
  856. * 请求题目列表
  857. */
  858. goodsQuestionList() {
  859. if (this.courseType == 2) {
  860. this.$request.bankReportData(this.recordId).then(async (res) => {
  861. let questionList = JSON.parse(res.data.historyExamJson);
  862. this.listForEach(questionList)
  863. });
  864. } else {
  865. this.$request.examReport(this.recordId).then(async (res) => {
  866. let questionList = JSON.parse(res.data.historyExamJson);
  867. this.listForEach(questionList)
  868. });
  869. }
  870. },
  871. listForEach(questionList) {
  872. questionList.forEach((json) => {
  873. //只获取类型1,2,3 单选,多选,判断 ,主观题灭有对错
  874. if (json.type == 1 || json.type == 3) {
  875. //单选判断
  876. if (json.ans != json.ques) {
  877. this.questionList.push(json);
  878. }
  879. } else if (json.type == 2) {
  880. //判断是否全对
  881. let isRight = json.ans.every((quesItem, quesIndex) => {
  882. if (json.ques) {
  883. console.log(json.ques[quesIndex], "json.ques[quesIndex]");
  884. console.log(json.ans[quesIndex], "json.ans[quesIndex]");
  885. return json.ques[quesIndex] == json.ans[quesIndex];
  886. } else {
  887. return false;
  888. }
  889. });
  890. if (!isRight) {
  891. this.questionList.push(json);
  892. }
  893. }
  894. });
  895. // console.log(this.questionList);
  896. },
  897. nextQuestion() {
  898. if (this.current >= this.questionList.length - 1) {
  899. this.$message({
  900. type: "warning",
  901. message: "已经是最后一题了!",
  902. });
  903. return;
  904. }
  905. this.current++;
  906. },
  907. prevQuestion() {
  908. if (this.current == 0) {
  909. this.$message({
  910. type: "warning",
  911. message: "已经是第一题了!",
  912. });
  913. return;
  914. } else {
  915. this.current--;
  916. }
  917. },
  918. isOver(item, index) {
  919. if (this.questionList[index].ques) {
  920. if (item.type == 4) {
  921. //案例题
  922. let isOver = item.jsonStr.every((jsonItem, indexs) => {
  923. if (
  924. jsonItem.type == 1 ||
  925. jsonItem.type == 2 ||
  926. jsonItem.type == 3
  927. ) {
  928. if (item.ques[indexs]) {
  929. return true;
  930. } else {
  931. return false;
  932. }
  933. } else if (jsonItem.type == 5) {
  934. if (
  935. item.ques[indexs] &&
  936. (item.ques[indexs].text || item.ques[indexs].imageList.length)
  937. ) {
  938. console.log("chil");
  939. return true;
  940. } else {
  941. return false;
  942. }
  943. }
  944. });
  945. if (isOver) {
  946. return true;
  947. } else {
  948. return false;
  949. }
  950. } else if (item.type == 5) {
  951. //简答题
  952. //每一项都相等
  953. if (item.ques && (item.ques.imageList.length || item.ques.text)) {
  954. return true;
  955. }
  956. //判断
  957. } else {
  958. return false;
  959. }
  960. } else {
  961. return false;
  962. }
  963. },
  964. isRight(item, index) {
  965. //单选
  966. if (this.questionList[index].ques) {
  967. if (item.type == 1) {
  968. console.log(
  969. this.questionList[index].ques == this.questionList[index].ans
  970. );
  971. return this.questionList[index].ques == this.questionList[index].ans;
  972. //多选
  973. } else if (item.type == 2) {
  974. //每一项都相等
  975. return this.questionList[index].ans.every((item, i) => {
  976. return item == this.questionList[index].ques[i];
  977. });
  978. //判断
  979. } else if (item.type == 3) {
  980. return this.questionList[index].ques == this.questionList[index].ans;
  981. } else {
  982. return false;
  983. }
  984. } else {
  985. return false;
  986. }
  987. },
  988. isWrong(item, index) {
  989. if (this.questionList[index].ques) {
  990. //单选
  991. if (item.type == 1) {
  992. return this.questionList[index].ques != this.questionList[index].ans;
  993. //多选
  994. } else if (item.type == 2) {
  995. //每一项都相等
  996. return this.questionList[index].ques.some((item, i) => {
  997. return this.questionList[index].ans.indexOf(item) == -1;
  998. });
  999. //判断
  1000. } else if (item.type == 3) {
  1001. return this.questionList[index].ques != this.questionList[index].ans;
  1002. } else {
  1003. return false;
  1004. }
  1005. } else {
  1006. return false;
  1007. }
  1008. },
  1009. isPart(item, index) {
  1010. if (this.questionList[index].ques) {
  1011. if (item.type == 2) {
  1012. let isWrong = this.questionList[index].ques.some((item, i) => {
  1013. return this.questionList[index].ans.indexOf(item) == -1;
  1014. });
  1015. let isRight = this.questionList[index].ans.every((item, i) => {
  1016. return item == this.questionList[index].ques[i];
  1017. });
  1018. if (!isRight && !isWrong) {
  1019. return true;
  1020. }
  1021. }
  1022. } else {
  1023. return false;
  1024. }
  1025. },
  1026. right(bankIndex, ansIndex, option) {
  1027. if (
  1028. this.questionList[bankIndex].ques[ansIndex] &&
  1029. this.questionList[bankIndex].ans[ansIndex]
  1030. ) {
  1031. if (
  1032. this.questionList[bankIndex].ques[ansIndex].indexOf(
  1033. option.optionsId
  1034. ) != -1 ||
  1035. this.questionList[bankIndex].ans[ansIndex].indexOf(
  1036. option.optionsId
  1037. ) != -1
  1038. ) {
  1039. return true;
  1040. } else {
  1041. return false;
  1042. }
  1043. } else {
  1044. return false;
  1045. }
  1046. },
  1047. wrong(bankIndex, ansIndex, option) {
  1048. if (
  1049. this.questionList[bankIndex].ques[ansIndex] &&
  1050. this.questionList[bankIndex].ans[ansIndex]
  1051. ) {
  1052. if (
  1053. this.questionList[bankIndex].ques[ansIndex].indexOf(
  1054. option.optionsId
  1055. ) != -1 &&
  1056. this.questionList[bankIndex].ans[ansIndex].indexOf(
  1057. option.optionsId
  1058. ) == -1
  1059. ) {
  1060. return true;
  1061. } else {
  1062. return false;
  1063. }
  1064. } else {
  1065. return false;
  1066. }
  1067. },
  1068. /**
  1069. * 获取已经回答的题目数
  1070. * hasSpecail (是否包含简答和案例)
  1071. */
  1072. questionOverNum(hasSpecail) {
  1073. let count = 0;
  1074. this.questionList.forEach((item) => {
  1075. if (item.type == 1 || item.type == 2 || item.type == 3) {
  1076. if (item.ques) {
  1077. count++;
  1078. }
  1079. } else if (item.type == 4) {
  1080. //案例题
  1081. if (hasSpecail) {
  1082. let isOver = item.jsonStr.every((jsonItem, index) => {
  1083. if (
  1084. jsonItem.type == 1 ||
  1085. jsonItem.type == 2 ||
  1086. jsonItem.type == 3
  1087. ) {
  1088. if (item.ques[index]) {
  1089. return true;
  1090. } else {
  1091. return false;
  1092. }
  1093. } else if (jsonItem.type == 5) {
  1094. if (
  1095. item.ques[index] &&
  1096. (item.ques[index].text || item.ques[index].imageList.length)
  1097. ) {
  1098. return true;
  1099. } else {
  1100. return false;
  1101. }
  1102. }
  1103. });
  1104. if (isOver) {
  1105. count++;
  1106. console.log(item, 444);
  1107. }
  1108. }
  1109. } else if (item.type == 5) {
  1110. //简答题
  1111. if (hasSpecail) {
  1112. if (item.ques && (item.ques.text || item.ques.imageList.length)) {
  1113. console.log(5, item);
  1114. count++;
  1115. }
  1116. }
  1117. }
  1118. });
  1119. return count;
  1120. },
  1121. collect() {
  1122. this.$message({
  1123. message: "试做题目,不支持收藏~",
  1124. type: "warning",
  1125. });
  1126. return;
  1127. },
  1128. },
  1129. };
  1130. </script>
  1131. <!-- Add "scoped" attribute to limit CSS to this component only -->
  1132. <style scoped lang="scss">
  1133. .course-exam {
  1134. .section {
  1135. overflow: hidden;
  1136. &__header {
  1137. height: 20px;
  1138. margin-top: 20px;
  1139. }
  1140. &__body {
  1141. .explain-record {
  1142. &__header {
  1143. }
  1144. &__body {
  1145. border: 1px solid #eee;
  1146. .left-box {
  1147. float: left;
  1148. width: 970px;
  1149. min-height: 630px;
  1150. border: 1px solid #eee;
  1151. &__header {
  1152. height: 40px;
  1153. padding-left: 12px;
  1154. border-bottom: 1px solid #eeeeee;
  1155. display: flex;
  1156. align-items: center;
  1157. .progress {
  1158. width: 636px;
  1159. }
  1160. .text {
  1161. margin-left: 15px;
  1162. font-size: 16px;
  1163. span {
  1164. font-family: Microsoft YaHei;
  1165. font-weight: bold;
  1166. color: #3f8dfd;
  1167. line-height: 24px;
  1168. }
  1169. }
  1170. }
  1171. &__body {
  1172. border-bottom: 1px solid #eee;
  1173. .question {
  1174. padding: 12px 0 0 12px;
  1175. display: flex;
  1176. flex-direction: column;
  1177. height: 100%;
  1178. &__title {
  1179. padding-left: 12px;
  1180. font-size: 16px;
  1181. font-family: Microsoft YaHei;
  1182. font-weight: bold;
  1183. color: #333333;
  1184. line-height: 24px;
  1185. }
  1186. &__desc {
  1187. padding-left: 12px;
  1188. margin-top: 20px;
  1189. font-size: 16px;
  1190. font-family: Microsoft YaHei;
  1191. font-weight: 400;
  1192. color: #666666;
  1193. line-height: 24px;
  1194. /deep/ img {
  1195. max-width: 100% !important;
  1196. }
  1197. }
  1198. &__content {
  1199. /deep/ .el-tabs__item {
  1200. height: 40px;
  1201. line-height: 40px;
  1202. }
  1203. .question__content {
  1204. height: auto;
  1205. overflow: auto;
  1206. }
  1207. .question-list {
  1208. padding: 24px 0 0 24px;
  1209. .checkbox,
  1210. .radio {
  1211. cursor: pointer;
  1212. margin-right: 24px;
  1213. padding: 0 24px;
  1214. display: flex;
  1215. align-items: center;
  1216. margin-top: 2px;
  1217. min-height: 40px;
  1218. padding-top: 10px;
  1219. padding-bottom: 10px;
  1220. background: #f5f9ff;
  1221. border-radius: 8px;
  1222. box-sizing: border-box;
  1223. &.right {
  1224. background: #37c65b;
  1225. }
  1226. &.wrong {
  1227. background: #ff3a30;
  1228. }
  1229. }
  1230. &.textarea {
  1231. margin-right: 12px;
  1232. .upload {
  1233. margin-top: 10px;
  1234. &__imgs {
  1235. margin-right: 10px;
  1236. width: 80px;
  1237. height: 80px;
  1238. background: #ffffff;
  1239. border: 1px solid #eeeeee;
  1240. border-radius: 4px;
  1241. position: relative;
  1242. display: flex;
  1243. float: left;
  1244. align-items: center;
  1245. justify-content: center;
  1246. img {
  1247. max-width: 100%;
  1248. max-height: 100%;
  1249. }
  1250. }
  1251. &__btn {
  1252. margin-right: 10px;
  1253. width: 80px;
  1254. height: 80px;
  1255. background: #ffffff;
  1256. border: 1px solid #eeeeee;
  1257. border-radius: 4px;
  1258. position: relative;
  1259. display: flex;
  1260. float: left;
  1261. align-items: center;
  1262. justify-content: center;
  1263. flex-direction: column;
  1264. .icon {
  1265. font-size: 20px;
  1266. color: #3f8dfd;
  1267. }
  1268. p {
  1269. font-size: 12px;
  1270. font-family: Microsoft YaHei;
  1271. font-weight: 400;
  1272. color: #999999;
  1273. line-height: 24px;
  1274. }
  1275. input {
  1276. position: absolute;
  1277. left: 0;
  1278. top: 0;
  1279. display: block;
  1280. width: 100%;
  1281. height: 100%;
  1282. opacity: 0;
  1283. }
  1284. }
  1285. }
  1286. }
  1287. /deep/
  1288. .el-checkbox__input.is-checked
  1289. + .el-checkbox__label {
  1290. color: #000 !important;
  1291. }
  1292. /deep/
  1293. .el-checkbox__input.is-disabled
  1294. + span.el-checkbox__label {
  1295. color: #000;
  1296. }
  1297. /deep/ .el-checkbox {
  1298. white-space: normal;
  1299. }
  1300. }
  1301. .answer-list {
  1302. height: 40px;
  1303. border-top: 1px solid #eee;
  1304. border-bottom: 1px solid #eee;
  1305. margin-top: 24px;
  1306. display: flex;
  1307. align-items: center;
  1308. justify-content: space-between;
  1309. padding: 0 24px;
  1310. &__left {
  1311. font-size: 16px;
  1312. font-family: Microsoft YaHei;
  1313. font-weight: 400;
  1314. color: #333333;
  1315. line-height: 24px;
  1316. }
  1317. &__right {
  1318. font-size: 16px;
  1319. font-family: Microsoft YaHei;
  1320. font-weight: 400;
  1321. color: #333333;
  1322. line-height: 24px;
  1323. }
  1324. }
  1325. .explain-list {
  1326. padding: 12px 24px;
  1327. &__header {
  1328. font-size: 16px;
  1329. font-family: Microsoft YaHei;
  1330. font-weight: bold;
  1331. color: #666666;
  1332. line-height: 24px;
  1333. }
  1334. &__body {
  1335. margin-top: 12px;
  1336. font-size: 16px;
  1337. font-family: Microsoft YaHei;
  1338. font-weight: 400;
  1339. color: #666666;
  1340. line-height: 24px;
  1341. }
  1342. .upload {
  1343. margin-top: 10px;
  1344. &__imgs {
  1345. margin-right: 10px;
  1346. width: 80px;
  1347. height: 80px;
  1348. background: #ffffff;
  1349. border: 1px solid #eeeeee;
  1350. border-radius: 4px;
  1351. position: relative;
  1352. display: flex;
  1353. float: left;
  1354. align-items: center;
  1355. justify-content: center;
  1356. img {
  1357. max-width: 100%;
  1358. max-height: 100%;
  1359. }
  1360. }
  1361. }
  1362. }
  1363. }
  1364. &__btns {
  1365. position: relative;
  1366. height: 32px;
  1367. .submit {
  1368. cursor: pointer;
  1369. margin: 0 auto;
  1370. width: 140px;
  1371. height: 32px;
  1372. background: #3f8dfd;
  1373. box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.2);
  1374. border-radius: 16px;
  1375. text-align: center;
  1376. line-height: 32px;
  1377. color: #fff;
  1378. font-size: 16px;
  1379. }
  1380. .collect {
  1381. cursor: pointer;
  1382. position: absolute;
  1383. right: 0;
  1384. top: 5px;
  1385. font-size: 12px;
  1386. font-family: Microsoft YaHei;
  1387. font-weight: 400;
  1388. color: #3f8dfd;
  1389. line-height: 24px;
  1390. }
  1391. }
  1392. }
  1393. }
  1394. &__footer {
  1395. height: 40px;
  1396. display: flex;
  1397. justify-content: space-around;
  1398. align-items: center;
  1399. .btn {
  1400. cursor: pointer;
  1401. width: 140px;
  1402. height: 32px;
  1403. background: #ffffff;
  1404. border: 1px solid #3f8dfd;
  1405. border-radius: 16px;
  1406. line-height: 32px;
  1407. text-align: center;
  1408. color: #3f8dfd;
  1409. }
  1410. }
  1411. }
  1412. .right-box {
  1413. float: right;
  1414. width: 299px;
  1415. border-right: 1px solid #eee;
  1416. &__header {
  1417. height: 40px;
  1418. line-height: 40px;
  1419. font-size: 16px;
  1420. font-family: Microsoft YaHei;
  1421. font-weight: bold;
  1422. color: #333333;
  1423. text-align: center;
  1424. border-bottom: 1px solid #eeeeee;
  1425. .back-btn {
  1426. display: block;
  1427. margin: 0 auto;
  1428. width: 160px;
  1429. }
  1430. }
  1431. &__body {
  1432. height: 510px;
  1433. border-bottom: 1px solid #eee;
  1434. .card {
  1435. &__note {
  1436. display: flex;
  1437. height: 64px;
  1438. align-items: center;
  1439. border-bottom: 1px solid #eee;
  1440. flex-wrap: wrap;
  1441. .item {
  1442. display: flex;
  1443. align-items: center;
  1444. margin-left: 10px;
  1445. width: 84px;
  1446. font-size: 12px;
  1447. .box {
  1448. margin-right: 5px;
  1449. width: 16px;
  1450. height: 16px;
  1451. border-radius: 4px;
  1452. &.white {
  1453. background: #ffffff;
  1454. border: 1px solid #eeeeee;
  1455. }
  1456. &.green {
  1457. background: #37c65b;
  1458. }
  1459. &.red {
  1460. background: #ff3a30;
  1461. }
  1462. &.yellow {
  1463. background: #ffc53d;
  1464. }
  1465. &.blue {
  1466. background: #3f8dfd;
  1467. }
  1468. }
  1469. }
  1470. }
  1471. &__content {
  1472. height: 440px;
  1473. overflow-y: scroll;
  1474. &::-webkit-scrollbar {
  1475. width: 6px;
  1476. }
  1477. &::-webkit-scrollbar-track {
  1478. background-color: #fff;
  1479. -webkit-border-radius: 2em;
  1480. -moz-border-radius: 2em;
  1481. border-radius: 2em;
  1482. }
  1483. &::-webkit-scrollbar-thumb {
  1484. background-color: #eeeeee;
  1485. -webkit-border-radius: 2em;
  1486. -moz-border-radius: 2em;
  1487. border-radius: 2em;
  1488. }
  1489. .list {
  1490. display: flex;
  1491. flex-wrap: wrap;
  1492. .item {
  1493. width: 40px;
  1494. height: 40px;
  1495. border-radius: 10px;
  1496. text-align: center;
  1497. line-height: 40px;
  1498. margin-left: 16px;
  1499. margin-top: 16px;
  1500. cursor: pointer;
  1501. &.white {
  1502. line-height: 38px;
  1503. color: #333333;
  1504. background: #ffffff;
  1505. border: 1px solid #eeeeee;
  1506. }
  1507. &.green {
  1508. color: #fff;
  1509. background: #37c65b;
  1510. }
  1511. &.red {
  1512. color: #fff;
  1513. background: #ff3a30;
  1514. }
  1515. &.blue {
  1516. border: 1rpx solid #eeeeee;
  1517. color: #fff;
  1518. background: #3f8dfd;
  1519. }
  1520. &.yellow {
  1521. background: #ffc53d;
  1522. }
  1523. &.disabled {
  1524. cursor: not-allowed;
  1525. line-height: 38px;
  1526. color: #eeeeee;
  1527. background: #ffffff;
  1528. border: 1px solid #eeeeee;
  1529. }
  1530. }
  1531. }
  1532. }
  1533. }
  1534. }
  1535. &__footer {
  1536. border-bottom: 1px solid #eee;
  1537. height: 40px;
  1538. display: flex;
  1539. align-items: center;
  1540. justify-content: center;
  1541. .submit {
  1542. cursor: pointer;
  1543. width: 140px;
  1544. height: 32px;
  1545. background: #3f8dfd;
  1546. box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.2);
  1547. border-radius: 16px;
  1548. line-height: 32px;
  1549. text-align: center;
  1550. color: #fff;
  1551. font-size: 16px;
  1552. }
  1553. }
  1554. }
  1555. }
  1556. }
  1557. }
  1558. }
  1559. .take-photo {
  1560. /deep/ .el-dialog__header {
  1561. display: none;
  1562. }
  1563. /deep/ .el-dialog__body {
  1564. padding: 0;
  1565. overflow: unset;
  1566. }
  1567. &__close {
  1568. cursor: pointer;
  1569. position: absolute;
  1570. right: 0;
  1571. top: -28px;
  1572. width: 24px;
  1573. height: 24px;
  1574. line-height: 24px;
  1575. text-align: center;
  1576. color: #eee;
  1577. border: 1px solid #eee;
  1578. border-radius: 50%;
  1579. }
  1580. &__header {
  1581. height: 40px;
  1582. border-bottom: 1px solid #eee;
  1583. line-height: 40px;
  1584. font-size: 16px;
  1585. font-family: Microsoft YaHei;
  1586. font-weight: bold;
  1587. color: #333333;
  1588. padding-left: 24px;
  1589. }
  1590. &__body {
  1591. height: 400px;
  1592. padding: 40px 24px;
  1593. .left-box {
  1594. width: 336px;
  1595. float: left;
  1596. .title {
  1597. font-size: 16px;
  1598. font-family: Microsoft YaHei;
  1599. font-weight: bold;
  1600. color: #ff3b30;
  1601. line-height: 24px;
  1602. }
  1603. .content {
  1604. font-size: 14px;
  1605. font-family: Microsoft YaHei;
  1606. font-weight: 400;
  1607. color: #333333;
  1608. line-height: 28px;
  1609. margin-top: 32px;
  1610. }
  1611. }
  1612. .right-box {
  1613. float: right;
  1614. width: 400px;
  1615. height: 300px;
  1616. video {
  1617. width: 100%;
  1618. height: 100%;
  1619. }
  1620. }
  1621. }
  1622. &__footer {
  1623. height: 90px;
  1624. border-top: 1px solid #eee;
  1625. text-align: center;
  1626. .take {
  1627. display: inline-block;
  1628. width: 200px;
  1629. height: 40px;
  1630. padding: 0;
  1631. border-radius: 20px;
  1632. text-align: center;
  1633. line-height: 40px;
  1634. margin: 24px auto;
  1635. }
  1636. }
  1637. }
  1638. }
  1639. </style>