question_report.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836
  1. <template>
  2. <view>
  3. <nav-bar title="试卷报告"></nav-bar>
  4. <view
  5. :class="
  6. reportdata.reportStatus === 0
  7. ? 'redBtn'
  8. : reportdata.reportStatus === 1
  9. ? 'greenBtn'
  10. : 'disNone'
  11. "
  12. v-if="examData.doType == 2 && reportdata.reportStatus !== null"
  13. >
  14. {{
  15. reportdata.reportStatus === 0
  16. ? "测试未通过"
  17. : reportdata.reportStatus === 1
  18. ? "测试通过"
  19. : ""
  20. }}
  21. </view>
  22. <view class="top">
  23. <view class="title">{{ examName }}</view>
  24. <view class="desc"
  25. >交卷时间:{{
  26. $method.timestampToTime(reportdata.updateTime, false)
  27. }}</view
  28. >
  29. <view class="box">
  30. <view class="left">
  31. <view>
  32. <!-- 练习 -->
  33. <template
  34. v-if="
  35. entryType == 'random' ||
  36. (examData.doType && examData.doType == 1)
  37. "
  38. >
  39. <!-- ((reportdata.rightQuestionNum /
  40. reportdata.doQuestionNum || 0).toFixed(0) *
  41. 100) -->
  42. {{
  43. (
  44. (reportdata.rightQuestionNum / reportdata.doQuestionNum ||
  45. 0) * 100
  46. ).toFixed(0)
  47. }}%
  48. </template>
  49. <!-- 考试 -->
  50. <template v-if="examData.doType == 2">
  51. <!-- ((reportdata.rightQuestionNum /
  52. reportdata.totalQuestionNum || 0).toFixed(0) *
  53. 100) -->
  54. {{
  55. (
  56. (reportdata.rightQuestionNum / reportdata.totalQuestionNum ||
  57. 0) * 100
  58. ).toFixed(0)
  59. }}%
  60. </template>
  61. <!-- {{ (((reportdata.rightQuestionNum / (reportdata.rightQuestionNum + wrongRecordWrongNum)) || 0) * 100).toFixed(0)}}% -->
  62. </view>
  63. <view>正确率</view>
  64. <view>不含简答/案例题</view>
  65. </view>
  66. <view class="right">
  67. <view class="flex up">
  68. <!-- <u-icon name="checkmark" color="#16D48B" size="48" style="margin-right: 14rpx;"></u-icon> -->
  69. <image
  70. class="right_num"
  71. src="/static/right_num.png"
  72. mode="widthFix"
  73. ></image>
  74. <view class="text">正确题数</view>
  75. <text class="green">{{ reportdata.rightQuestionNum }}</text>
  76. </view>
  77. <view class="flex up">
  78. <!-- <u-icon name="checkmark" color="#16D48B" size="48" style="margin-right: 14rpx;"></u-icon> -->
  79. <image
  80. class="out_num"
  81. src="/static/out_num.png"
  82. mode="widthFix"
  83. ></image>
  84. <view class="text">少选题数</view>
  85. <text class="yellow">{{ reportdata.lessQuestionNum }}</text>
  86. </view>
  87. <view class="flex down">
  88. <!-- <u-icon name="close" color="#FF3B30" size="38" style="margin-right: 26rpx;"></u-icon> -->
  89. <image
  90. class="wrong_num"
  91. src="/static/wrong_num.png"
  92. mode="widthFix"
  93. ></image>
  94. <view class="text">错误题数</view>
  95. <text class="red">{{ wrongRecordWrongNum }}</text>
  96. </view>
  97. </view>
  98. </view>
  99. <view class="dis_fst" v-if="!hideBtns">
  100. <navigator
  101. v-if="wrongRecordWrongNum != 0"
  102. :url="
  103. '/pages2/bank/questionBankWrongExplain?recordId=' +
  104. reportdata.recordId +
  105. '&id=' +
  106. examData.examId
  107. "
  108. >
  109. <view class="btnACs">错题解析</view>
  110. </navigator>
  111. <navigator
  112. :url="
  113. '/pages2/bank/questionBankAllExplain?id=' +
  114. reportdata.examId +
  115. '&goodsid=' +
  116. reportdata.goodsId +
  117. '&moduleId=' +
  118. reportdata.moduleExamId +
  119. '&chapterId=' +
  120. reportdata.chapterExamId +
  121. '&recordId=' +
  122. reportdata.recordId
  123. "
  124. >
  125. <view class="btnACs">全部解析</view>
  126. </navigator>
  127. <view
  128. class="btnACs"
  129. v-if="entryType != 'daily'"
  130. @click="
  131. doRepeat(
  132. reportdata.examId,
  133. reportdata.goodsId,
  134. reportdata.moduleExamId,
  135. reportdata.chapterExamId
  136. )
  137. "
  138. >重新做题</view
  139. >
  140. <view
  141. class="btnACs"
  142. v-if="entryType != 'random' || nextExamId"
  143. @click="backBank"
  144. >继续做题</view
  145. >
  146. </view>
  147. </view>
  148. <view v-show="entryType != 'random'" class="bottom">
  149. <view class="circle-wrap">
  150. <view class="circle-list">
  151. <view class="item" v-show="reportdata.totalScore">
  152. <view class="title">
  153. 试卷得分
  154. <text>(不含简答和案例题)</text>
  155. </view>
  156. <canvas class="canvas" canvas-id="Canvas1"></canvas>
  157. </view>
  158. <view class="item" v-show="reportdata.examTime">
  159. <view class="title">答题时长</view>
  160. <canvas canvas-id="Canvas2"></canvas>
  161. </view>
  162. <view class="item" v-show="reportdata.score != -1">
  163. <view class="title"
  164. >试卷得分
  165. <text>(含简答和案例题)</text>
  166. </view>
  167. <canvas canvas-id="Canvas3"></canvas>
  168. </view>
  169. </view>
  170. </view>
  171. </view>
  172. <view v-if="courseList.length" class="course_list">
  173. <view class="titles">
  174. <image class="code" src="@/static/learn/act_icon.png"></image>
  175. <text class="title">推荐课程</text>
  176. </view>
  177. <view
  178. class="list_item"
  179. v-for="(item, index) in courseList"
  180. :key="index"
  181. @click="toBuy(item)"
  182. >
  183. <view class="course_content">
  184. <view class="c_title">{{ item.goodsName }}</view>
  185. <view class="c_downs">
  186. <view class="img">
  187. <image :src="$method.splitImgHost(item.coverUrl, true)"></image>
  188. <view class="time" v-if="item.year">{{
  189. item.year ? item.year : ""
  190. }}</view>
  191. </view>
  192. <view class="text">
  193. <view class="desc">
  194. <view class="left">
  195. <text class="mon_t">¥ {{ item.standPrice }}</text>
  196. <!-- <text class="sale">/限时优惠</text> -->
  197. <text v-if="item.linePrice" class="sale"> ¥ </text>
  198. <text v-if="item.linePrice" class="price_line"
  199. >&nbsp;{{ item.linePrice }}</text
  200. >
  201. </view>
  202. <view class="right">
  203. <view class="regiser_row" v-if="!hideBuyState">立即购买</view>
  204. </view>
  205. </view>
  206. <view v-if="item.buyUserNum" class="joins">
  207. <!-- <image class="people" src="/static/index/people.png"></image> -->
  208. <!-- 为0时,不显示 -->
  209. <view class="people">{{ item.buyUserNum }}人参与</view>
  210. </view>
  211. </view>
  212. </view>
  213. </view>
  214. </view>
  215. </view>
  216. </view>
  217. </template>
  218. <script>
  219. import { mapGetters } from "vuex";
  220. export default {
  221. data() {
  222. return {
  223. id: "",
  224. hideBtns: false,
  225. recordId: "",
  226. reportdata: {},
  227. examData: {},
  228. examId: "",
  229. moduleId: "",
  230. goodsId: "",
  231. chapterId: "",
  232. context1: null,
  233. context2: null,
  234. nextExamId: "",
  235. wrongRecordWrongNum: "",
  236. orderGoodsId: "",
  237. courseList: [],
  238. pageNum: 1,
  239. pageSize: 10,
  240. total: 0,
  241. entryType: "", // 进入做题页面的入口类型,daily-每日一练进来,其他的-题库做题进入
  242. bankNum: 5, // 随机练习的题目数量
  243. examName: "", // 试卷名称
  244. };
  245. },
  246. onUnload() {},
  247. computed: { ...mapGetters(["userInfo", "hideBuyState"]) },
  248. onShow() {
  249. this.pageNum = 1;
  250. this.courseList = [];
  251. this.getcourList();
  252. },
  253. async onLoad(option) {
  254. console.log(option);
  255. this.entryType = option.entryType;
  256. this.bankNum = option.bankNum;
  257. this.orderGoodsId = option.orderGoodsId;
  258. this.recordId = option.id;
  259. this.examId = option.examId;
  260. this.moduleId = option.moduleId || 0;
  261. this.chapterId = option.chapterId || 0;
  262. this.goodsId = option.goodsId || "";
  263. this.examWrongRecordWrongNum();
  264. this.bankExamNextExam();
  265. // await this.bankExam();
  266. await this.examReport();
  267. if (this.entryType == "random") {
  268. this.bankExamTemp();
  269. } else {
  270. await this.bankExam();
  271. }
  272. },
  273. onPullDownRefresh() {
  274. this.pageNum = 1;
  275. this.courseList = [];
  276. this.getcourList();
  277. // this.timer = setTimeout(function() {
  278. // uni.stopPullDownRefresh()
  279. // }, 500)
  280. },
  281. onReachBottom() {
  282. if (this.courseList.length < this.total) {
  283. this.pageNum++;
  284. this.getcourList();
  285. }
  286. },
  287. methods: {
  288. getCanvas() {
  289. this.$method.getCanvas(this).then(({ systemInfo }) => {
  290. var caculateX = systemInfo.screenWidth / 750;
  291. if (this.reportdata.totalScore) {
  292. var context1 = uni.createCanvasContext("Canvas1");
  293. this.context1 = context1;
  294. context1.setStrokeStyle("#EEEEEE");
  295. context1.setLineWidth(caculateX * 20);
  296. context1.arc(
  297. caculateX * 90,
  298. caculateX * 90,
  299. caculateX * 80,
  300. 0,
  301. 2 * Math.PI,
  302. true
  303. );
  304. context1.stroke();
  305. context1.beginPath();
  306. context1.setStrokeStyle("#32D74B");
  307. context1.setFillStyle("#32D74B");
  308. context1.setTextAlign("center");
  309. context1.setTextBaseline("middle");
  310. context1.setLineCap("round");
  311. context1.setFontSize(caculateX * 64);
  312. context1.fillText(
  313. this.reportdata.performance,
  314. caculateX * 90,
  315. caculateX * 90,
  316. caculateX * 180
  317. );
  318. context1.setFillStyle("#999999");
  319. context1.setFontSize(caculateX * 20);
  320. context1.fillText(
  321. `满分${this.reportdata.totalScore || 0}`,
  322. caculateX * 90,
  323. caculateX * 130,
  324. caculateX * 180
  325. );
  326. context1.arc(
  327. caculateX * 90,
  328. caculateX * 90,
  329. caculateX * 80,
  330. -Math.PI / 2,
  331. -Math.PI / 2 +
  332. (this.reportdata.performance / this.reportdata.totalScore) *
  333. 2 *
  334. Math.PI,
  335. false
  336. );
  337. context1.stroke();
  338. context1.draw();
  339. }
  340. if (this.reportdata.examTime) {
  341. var context2 = uni.createCanvasContext("Canvas2");
  342. this.context2 = context2;
  343. context2.setStrokeStyle("#EEEEEE");
  344. context2.setLineWidth(caculateX * 20);
  345. context2.arc(
  346. caculateX * 90,
  347. caculateX * 90,
  348. caculateX * 80,
  349. 0,
  350. 2 * Math.PI,
  351. true
  352. );
  353. context2.stroke();
  354. context2.beginPath();
  355. context2.setStrokeStyle("#007AFF");
  356. context2.setFillStyle("#007AFF");
  357. context2.setTextAlign("center");
  358. context2.setTextBaseline("middle");
  359. context2.setLineCap("round");
  360. context2.setFontSize(caculateX * 64);
  361. context2.fillText(
  362. `${this.reportdata.doTime}'`,
  363. caculateX * 90,
  364. caculateX * 90,
  365. caculateX * 180
  366. );
  367. context2.setFillStyle("#999999");
  368. context2.setFontSize(caculateX * 20);
  369. context2.fillText(
  370. `限时${this.reportdata.examTime}'`,
  371. caculateX * 90,
  372. caculateX * 130,
  373. caculateX * 180
  374. );
  375. context2.arc(
  376. caculateX * 90,
  377. caculateX * 90,
  378. caculateX * 80,
  379. -Math.PI / 2,
  380. -Math.PI / 2 +
  381. (this.reportdata.doTime / this.reportdata.examTime) * 2 * Math.PI,
  382. false
  383. );
  384. context2.stroke();
  385. context2.draw();
  386. }
  387. if (this.reportdata.score != -1) {
  388. var context3 = uni.createCanvasContext("Canvas3");
  389. this.context3 = context3;
  390. context3.setStrokeStyle("#EEEEEE");
  391. context3.setLineWidth(caculateX * 20);
  392. context3.arc(
  393. caculateX * 90,
  394. caculateX * 90,
  395. caculateX * 80,
  396. 0,
  397. 2 * Math.PI,
  398. true
  399. );
  400. context3.stroke();
  401. context3.beginPath();
  402. context3.setStrokeStyle("#32D74B");
  403. context3.setFillStyle("#32D74B");
  404. context3.setTextAlign("center");
  405. context3.setTextBaseline("middle");
  406. context3.setLineCap("round");
  407. context3.setFontSize(caculateX * 64);
  408. context3.fillText(
  409. this.reportdata.performance + this.reportdata.score,
  410. caculateX * 90,
  411. caculateX * 90,
  412. caculateX * 180
  413. );
  414. context3.setFillStyle("#999999");
  415. context3.setFontSize(caculateX * 20);
  416. context3.fillText(
  417. `满分${this.reportdata.totalScore || 0}`,
  418. caculateX * 90,
  419. caculateX * 130,
  420. caculateX * 180
  421. );
  422. context3.arc(
  423. caculateX * 90,
  424. caculateX * 90,
  425. caculateX * 80,
  426. -Math.PI / 2,
  427. -Math.PI / 2 +
  428. ((this.reportdata.performance + this.reportdata.score) /
  429. this.reportdata.totalScore) *
  430. 2 *
  431. Math.PI,
  432. false
  433. );
  434. context3.stroke();
  435. context3.draw();
  436. }
  437. });
  438. },
  439. getcourList() {
  440. this.$http({
  441. url: "/apply/recommend/goodsList",
  442. method: "post",
  443. data: {
  444. examId: this.examId,
  445. pageNum: this.pageNum,
  446. pageSize: this.pageSize,
  447. },
  448. }).then((res) => {
  449. if (res.data.code == 200) {
  450. this.courseList.push(...(res.data.rows || []));
  451. console.log("this.courseList", this.courseList);
  452. this.total = res.data.total;
  453. }
  454. });
  455. },
  456. toBuy(item) {
  457. if (item.goodsType == 2) {
  458. uni.navigateTo({
  459. url: "/pages2/bank/detail?id=" + item.goodsId,
  460. });
  461. } else {
  462. // /pages5/liveDetail/index
  463. uni.navigateTo({
  464. url:
  465. "/pages3/course/detail?id=" +
  466. item.goodsId +
  467. "&goodsType=" +
  468. item.goodsType,
  469. });
  470. }
  471. },
  472. bankExamNextExam() {
  473. this.$api
  474. .bankExamNextExam({
  475. chapterExamId: this.chapterId,
  476. examId: this.examId,
  477. goodsId: this.goodsId,
  478. orderGoodsId: this.orderGoodsId,
  479. moduleExamId: this.moduleId,
  480. })
  481. .then((res) => {
  482. if (res.data.code == 500) {
  483. this.nextExamId = "";
  484. } else if (res.data.code == 200) {
  485. this.nextExamId = res.data.data.examId;
  486. }
  487. });
  488. },
  489. backBank() {
  490. if (this.entryType == "daily") {
  491. uni.navigateBack();
  492. return;
  493. }
  494. uni.navigateTo({
  495. url:
  496. "/pages2/bank/questionBank?orderGoodsId=" +
  497. this.orderGoodsId +
  498. "&id=" +
  499. this.nextExamId +
  500. "&goodsid=" +
  501. this.goodsId +
  502. "&moduleId=" +
  503. this.moduleId +
  504. "&chapterId=" +
  505. this.chapterId +
  506. "",
  507. });
  508. // uni.navigateBack({
  509. // delta:1
  510. // })
  511. // uni.redirectTo({
  512. // url: '/pages2/bank/my_question'
  513. // });
  514. },
  515. bankExam() {
  516. // '/bank/exam/'+data
  517. return new Promise((resolve) => {
  518. this.$api.bankExam(this.examId).then((res) => {
  519. this.examData = res.data.data;
  520. resolve();
  521. });
  522. });
  523. },
  524. /**
  525. * 去做题
  526. */
  527. async doRepeat(id, goodsId, moduleId = 0, chapterId = 0) {
  528. if (this.entryType == "random") {
  529. uni.navigateBack();
  530. return;
  531. }
  532. // await this.getDetail(goodsId);
  533. let count = await this.examRecordCount(id, goodsId);
  534. let answerNum = await this.getExamDetail(id);
  535. //超过答题次数
  536. if (answerNum > 0 && count >= answerNum) {
  537. this.$u.toast("该试卷只能答题" + answerNum + "次!");
  538. return;
  539. }
  540. var pages = getCurrentPages();
  541. var prepage = pages[pages.length - 2]; //上一个页面
  542. prepage.$vm.isRepeat = true;
  543. uni.redirectTo({
  544. url:
  545. "/pages2/bank/questionBank?orderGoodsId=" +
  546. this.orderGoodsId +
  547. "&id=" +
  548. id +
  549. "&goodsid=" +
  550. goodsId +
  551. "&moduleId=" +
  552. moduleId +
  553. "&chapterId=" +
  554. chapterId +
  555. "&entryType=" +
  556. this.entryType +
  557. "&bankNum=" +
  558. this.bankNum,
  559. });
  560. },
  561. /**
  562. * @param {Object} exam_id
  563. * 获取试卷可以做的次数
  564. */
  565. getExamDetail(exam_id) {
  566. return new Promise((resolve) => {
  567. this.$api.getExamDetail(exam_id).then((res) => {
  568. resolve(res.data.data.answerNum);
  569. });
  570. });
  571. },
  572. examWrongRecordWrongNum() {
  573. return new Promise((resolve) => {
  574. this.$api.examWrongRecordWrongNum(this.recordId).then((res) => {
  575. this.wrongRecordWrongNum = res.data.data || 0;
  576. resolve();
  577. });
  578. });
  579. },
  580. /**
  581. * 查询试卷历史做题次数
  582. */
  583. examRecordCount(examId, goodsId) {
  584. return new Promise((resolve) => {
  585. this.$api
  586. .examRecordCount({
  587. examId: examId,
  588. orderGoodsId: this.orderGoodsId,
  589. })
  590. .then((res) => {
  591. resolve(res.data.data);
  592. });
  593. });
  594. },
  595. getDetail(id) {
  596. return new Promise((resolve) => {
  597. this.$api.goodsDetail(id).then((res) => {
  598. this.goodsData = res.data.data;
  599. resolve();
  600. });
  601. });
  602. },
  603. examReport() {
  604. return new Promise((resolve) => {
  605. this.$api.examReport(this.recordId).then((res) => {
  606. this.reportdata = res.data.data;
  607. if (this.entryType != "random") {
  608. this.examName = this.reportdata.examName;
  609. }
  610. this.getCanvas();
  611. resolve();
  612. });
  613. });
  614. },
  615. bankExamTemp() {
  616. // '/bank/exam/temp/'+data
  617. this.$api.bankTempReport(this.examId).then((res) => {
  618. if (res.data.code == 200) {
  619. this.examName = res.data.data.examName;
  620. }
  621. });
  622. },
  623. },
  624. };
  625. </script>
  626. <style>
  627. page {
  628. background-color: #eaeef1;
  629. }
  630. </style>
  631. <style lang="scss" scope>
  632. @import "../../pages5/examReport/indexCourseList.scss";
  633. .disNone {
  634. display: none;
  635. }
  636. .greenBtn {
  637. margin: 16rpx 16rpx 0;
  638. height: 80rpx;
  639. line-height: 80rpx;
  640. text-align: center;
  641. background-color: #f7fff8;
  642. border-radius: 16rpx;
  643. color: #34c759;
  644. font-weight: bold;
  645. font-size: 30rpx;
  646. }
  647. .redBtn {
  648. margin: 16rpx 16rpx 0;
  649. height: 80rpx;
  650. line-height: 80rpx;
  651. text-align: center;
  652. background-color: #fff3f2;
  653. border-radius: 16rpx;
  654. color: #ff3b30;
  655. font-weight: bold;
  656. font-size: 30rpx;
  657. }
  658. .dis_fst {
  659. margin-top: 40rpx;
  660. display: flex;
  661. align-items: center;
  662. justify-content: space-around;
  663. }
  664. .btnACs {
  665. height: 48rpx;
  666. width: 160rpx;
  667. text-align: center;
  668. line-height: 48rpx;
  669. border: 1rpx solid #007aff;
  670. border-radius: 16rpx;
  671. color: #007aff;
  672. font-size: 24rpx;
  673. }
  674. .top {
  675. margin: 16rpx 16rpx 0;
  676. border-radius: 16rpx;
  677. padding: 40rpx 24rpx 16rpx;
  678. background: #fff;
  679. .title {
  680. font-size: 32rpx;
  681. font-weight: bold;
  682. color: #333333;
  683. white-space: nowrap;
  684. overflow: hidden;
  685. text-overflow: ellipsis;
  686. }
  687. .desc {
  688. margin-top: 20rpx;
  689. font-size: 24rpx;
  690. color: #999999;
  691. }
  692. .box {
  693. margin-top: 30rpx;
  694. display: flex;
  695. .left {
  696. width: 250rpx;
  697. height: 272rpx;
  698. background: #f5f5f5;
  699. border-radius: 16rpx;
  700. display: flex;
  701. align-items: center;
  702. justify-content: center;
  703. flex-direction: column;
  704. margin-right: 16rpx;
  705. view {
  706. text-align: center;
  707. &:nth-of-type(1) {
  708. font-size: 60rpx;
  709. font-weight: bold;
  710. color: #007aff;
  711. }
  712. &:nth-of-type(2) {
  713. font-size: 32rpx;
  714. font-weight: bold;
  715. color: #333333;
  716. }
  717. &:nth-of-type(3) {
  718. font-size: 24rpx;
  719. color: #999999;
  720. }
  721. }
  722. }
  723. .right {
  724. flex: 1;
  725. display: flex;
  726. flex-direction: column;
  727. justify-content: space-between;
  728. .flex {
  729. background: #f5f5f5;
  730. display: flex;
  731. height: 80rpx;
  732. align-items: center;
  733. padding: 0 40rpx;
  734. border-radius: 16rpx;
  735. image {
  736. margin-right: 28rpx;
  737. &.right_num {
  738. width: 26rpx;
  739. }
  740. &.out_num {
  741. width: 38rpx;
  742. }
  743. &.wrong_num {
  744. width: 30rpx;
  745. }
  746. }
  747. .text {
  748. flex: 1;
  749. font-size: 30rpx;
  750. color: #666666;
  751. }
  752. text {
  753. font-size: 48rpx;
  754. color: #e12626;
  755. &.red {
  756. color: #ff3b30;
  757. }
  758. &.green {
  759. color: #36c75a;
  760. }
  761. &.yellow {
  762. color: #ffc53d;
  763. }
  764. }
  765. }
  766. }
  767. }
  768. }
  769. .bottom {
  770. .circle-wrap {
  771. .circle-list {
  772. display: flex;
  773. .item {
  774. padding: 20rpx;
  775. border-radius: 16rpx;
  776. background: #fff;
  777. margin: 16rpx;
  778. flex: 1;
  779. .title {
  780. font-weight: bold;
  781. font-size: 30rpx;
  782. line-height: 24rpx;
  783. color: #333333;
  784. text {
  785. font-size: 20rpx;
  786. color: #999999;
  787. }
  788. }
  789. canvas {
  790. margin: 36rpx auto 0;
  791. width: 180rpx;
  792. height: 180rpx;
  793. }
  794. .text {
  795. text-align: center;
  796. margin-top: 16rpx;
  797. font-size: 24rpx;
  798. color: #333333;
  799. }
  800. }
  801. }
  802. }
  803. }
  804. </style>