question_report.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844
  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="doMode != 3 && (entryType == 'daily' || 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. doMode: "",
  245. courseType: "",
  246. };
  247. },
  248. onUnload() {},
  249. computed: { ...mapGetters(["userInfo", "hideBuyState"]) },
  250. onShow() {
  251. this.pageNum = 1;
  252. this.courseList = [];
  253. this.getcourList();
  254. },
  255. async onLoad(option) {
  256. console.log(option);
  257. this.entryType = option.entryType;
  258. this.bankNum = option.bankNum;
  259. this.orderGoodsId = option.orderGoodsId;
  260. this.recordId = option.id;
  261. this.examId = option.examId;
  262. this.moduleId = option.moduleId || 0;
  263. this.chapterId = option.chapterId || 0;
  264. this.goodsId = option.goodsId || "";
  265. this.doMode = option.doMode;
  266. this.courseType = option.courseType;
  267. this.examWrongRecordWrongNum();
  268. this.bankExamNextExam();
  269. // await this.bankExam();
  270. await this.examReport();
  271. if (this.entryType == "random") {
  272. this.bankExamTemp();
  273. } else {
  274. await this.bankExam();
  275. }
  276. },
  277. onPullDownRefresh() {
  278. this.pageNum = 1;
  279. this.courseList = [];
  280. this.getcourList();
  281. // this.timer = setTimeout(function() {
  282. // uni.stopPullDownRefresh()
  283. // }, 500)
  284. },
  285. onReachBottom() {
  286. if (this.courseList.length < this.total) {
  287. this.pageNum++;
  288. this.getcourList();
  289. }
  290. },
  291. methods: {
  292. getCanvas() {
  293. this.$method.getCanvas(this).then(({ systemInfo }) => {
  294. var caculateX = systemInfo.screenWidth / 750;
  295. if (this.reportdata.totalScore) {
  296. var context1 = uni.createCanvasContext("Canvas1");
  297. this.context1 = context1;
  298. context1.setStrokeStyle("#EEEEEE");
  299. context1.setLineWidth(caculateX * 20);
  300. context1.arc(
  301. caculateX * 90,
  302. caculateX * 90,
  303. caculateX * 80,
  304. 0,
  305. 2 * Math.PI,
  306. true
  307. );
  308. context1.stroke();
  309. context1.beginPath();
  310. context1.setStrokeStyle("#32D74B");
  311. context1.setFillStyle("#32D74B");
  312. context1.setTextAlign("center");
  313. context1.setTextBaseline("middle");
  314. context1.setLineCap("round");
  315. context1.setFontSize(caculateX * 64);
  316. context1.fillText(
  317. this.reportdata.performance,
  318. caculateX * 90,
  319. caculateX * 90,
  320. caculateX * 180
  321. );
  322. context1.setFillStyle("#999999");
  323. context1.setFontSize(caculateX * 20);
  324. context1.fillText(
  325. `满分${this.reportdata.totalScore || 0}`,
  326. caculateX * 90,
  327. caculateX * 130,
  328. caculateX * 180
  329. );
  330. context1.arc(
  331. caculateX * 90,
  332. caculateX * 90,
  333. caculateX * 80,
  334. -Math.PI / 2,
  335. -Math.PI / 2 +
  336. (this.reportdata.performance / this.reportdata.totalScore) *
  337. 2 *
  338. Math.PI,
  339. false
  340. );
  341. context1.stroke();
  342. context1.draw();
  343. }
  344. if (this.reportdata.examTime) {
  345. var context2 = uni.createCanvasContext("Canvas2");
  346. this.context2 = context2;
  347. context2.setStrokeStyle("#EEEEEE");
  348. context2.setLineWidth(caculateX * 20);
  349. context2.arc(
  350. caculateX * 90,
  351. caculateX * 90,
  352. caculateX * 80,
  353. 0,
  354. 2 * Math.PI,
  355. true
  356. );
  357. context2.stroke();
  358. context2.beginPath();
  359. context2.setStrokeStyle("#007AFF");
  360. context2.setFillStyle("#007AFF");
  361. context2.setTextAlign("center");
  362. context2.setTextBaseline("middle");
  363. context2.setLineCap("round");
  364. context2.setFontSize(caculateX * 64);
  365. context2.fillText(
  366. `${this.reportdata.doTime}'`,
  367. caculateX * 90,
  368. caculateX * 90,
  369. caculateX * 180
  370. );
  371. context2.setFillStyle("#999999");
  372. context2.setFontSize(caculateX * 20);
  373. context2.fillText(
  374. `限时${this.reportdata.examTime}'`,
  375. caculateX * 90,
  376. caculateX * 130,
  377. caculateX * 180
  378. );
  379. context2.arc(
  380. caculateX * 90,
  381. caculateX * 90,
  382. caculateX * 80,
  383. -Math.PI / 2,
  384. -Math.PI / 2 +
  385. (this.reportdata.doTime / this.reportdata.examTime) * 2 * Math.PI,
  386. false
  387. );
  388. context2.stroke();
  389. context2.draw();
  390. }
  391. if (this.reportdata.score != -1) {
  392. var context3 = uni.createCanvasContext("Canvas3");
  393. this.context3 = context3;
  394. context3.setStrokeStyle("#EEEEEE");
  395. context3.setLineWidth(caculateX * 20);
  396. context3.arc(
  397. caculateX * 90,
  398. caculateX * 90,
  399. caculateX * 80,
  400. 0,
  401. 2 * Math.PI,
  402. true
  403. );
  404. context3.stroke();
  405. context3.beginPath();
  406. context3.setStrokeStyle("#32D74B");
  407. context3.setFillStyle("#32D74B");
  408. context3.setTextAlign("center");
  409. context3.setTextBaseline("middle");
  410. context3.setLineCap("round");
  411. context3.setFontSize(caculateX * 64);
  412. context3.fillText(
  413. this.reportdata.performance + this.reportdata.score,
  414. caculateX * 90,
  415. caculateX * 90,
  416. caculateX * 180
  417. );
  418. context3.setFillStyle("#999999");
  419. context3.setFontSize(caculateX * 20);
  420. context3.fillText(
  421. `满分${this.reportdata.totalScore || 0}`,
  422. caculateX * 90,
  423. caculateX * 130,
  424. caculateX * 180
  425. );
  426. context3.arc(
  427. caculateX * 90,
  428. caculateX * 90,
  429. caculateX * 80,
  430. -Math.PI / 2,
  431. -Math.PI / 2 +
  432. ((this.reportdata.performance + this.reportdata.score) /
  433. this.reportdata.totalScore) *
  434. 2 *
  435. Math.PI,
  436. false
  437. );
  438. context3.stroke();
  439. context3.draw();
  440. }
  441. });
  442. },
  443. getcourList() {
  444. this.$http({
  445. url: "/apply/recommend/goodsList",
  446. method: "post",
  447. data: {
  448. examId: this.examId,
  449. pageNum: this.pageNum,
  450. pageSize: this.pageSize,
  451. },
  452. }).then((res) => {
  453. if (res.data.code == 200) {
  454. this.courseList.push(...(res.data.rows || []));
  455. console.log("this.courseList", this.courseList);
  456. this.total = res.data.total;
  457. }
  458. });
  459. },
  460. toBuy(item) {
  461. if (item.goodsType == 2) {
  462. uni.navigateTo({
  463. url: "/pages2/bank/detail?id=" + item.goodsId,
  464. });
  465. } else {
  466. // /pages5/liveDetail/index
  467. uni.navigateTo({
  468. url:
  469. "/pages3/course/detail?id=" +
  470. item.goodsId +
  471. "&goodsType=" +
  472. item.goodsType,
  473. });
  474. }
  475. },
  476. bankExamNextExam() {
  477. this.$api
  478. .bankExamNextExam({
  479. chapterExamId: this.chapterId,
  480. examId: this.examId,
  481. goodsId: this.goodsId,
  482. orderGoodsId: this.orderGoodsId,
  483. moduleExamId: this.moduleId,
  484. })
  485. .then((res) => {
  486. if (res.data.code == 500) {
  487. this.nextExamId = "";
  488. } else if (res.data.code == 200) {
  489. this.nextExamId = res.data.data.examId;
  490. }
  491. });
  492. },
  493. backBank() {
  494. if (this.entryType == "daily") {
  495. uni.navigateBack();
  496. return;
  497. }
  498. uni.navigateTo({
  499. url:
  500. "/pages2/bank/questionBank?orderGoodsId=" +
  501. this.orderGoodsId +
  502. "&id=" +
  503. this.nextExamId +
  504. "&goodsid=" +
  505. this.goodsId +
  506. "&moduleId=" +
  507. this.moduleId +
  508. "&chapterId=" +
  509. this.chapterId +
  510. "",
  511. });
  512. // uni.navigateBack({
  513. // delta:1
  514. // })
  515. // uni.redirectTo({
  516. // url: '/pages2/bank/my_question'
  517. // });
  518. },
  519. bankExam() {
  520. // '/bank/exam/'+data
  521. return new Promise((resolve) => {
  522. this.$api.bankExam(this.examId).then((res) => {
  523. this.examData = res.data.data;
  524. resolve();
  525. });
  526. });
  527. },
  528. /**
  529. * 去做题
  530. */
  531. async doRepeat(id, goodsId, moduleId = 0, chapterId = 0) {
  532. if (this.entryType == "random") {
  533. uni.navigateBack();
  534. return;
  535. }
  536. // await this.getDetail(goodsId);
  537. let count = await this.examRecordCount(id, goodsId);
  538. let answerNum = await this.getExamDetail(id);
  539. //超过答题次数
  540. if (answerNum > 0 && count >= answerNum) {
  541. this.$u.toast("该试卷只能答题" + answerNum + "次!");
  542. return;
  543. }
  544. var pages = getCurrentPages();
  545. var prepage = pages[pages.length - 2]; //上一个页面
  546. prepage.$vm.isRepeat = true;
  547. uni.redirectTo({
  548. url:
  549. "/pages2/bank/questionBank?orderGoodsId=" +
  550. this.orderGoodsId +
  551. "&id=" +
  552. id +
  553. "&goodsid=" +
  554. goodsId +
  555. "&moduleId=" +
  556. moduleId +
  557. "&chapterId=" +
  558. chapterId +
  559. "&entryType=" +
  560. this.entryType +
  561. "&bankNum=" +
  562. this.bankNum,
  563. });
  564. },
  565. /**
  566. * @param {Object} exam_id
  567. * 获取试卷可以做的次数
  568. */
  569. getExamDetail(exam_id) {
  570. return new Promise((resolve) => {
  571. this.$api.getExamDetail(exam_id).then((res) => {
  572. resolve(res.data.data.answerNum);
  573. });
  574. });
  575. },
  576. examWrongRecordWrongNum() {
  577. return new Promise((resolve) => {
  578. this.$api
  579. .examWrongRecordWrongNum({
  580. recordId: this.recordId,
  581. courseType: this.courseType,
  582. })
  583. .then((res) => {
  584. this.wrongRecordWrongNum = res.data.data || 0;
  585. resolve();
  586. });
  587. });
  588. },
  589. /**
  590. * 查询试卷历史做题次数
  591. */
  592. examRecordCount(examId, goodsId) {
  593. return new Promise((resolve) => {
  594. this.$api
  595. .examRecordCount({
  596. examId: examId,
  597. orderGoodsId: this.orderGoodsId,
  598. })
  599. .then((res) => {
  600. resolve(res.data.data);
  601. });
  602. });
  603. },
  604. getDetail(id) {
  605. return new Promise((resolve) => {
  606. this.$api.goodsDetail(id).then((res) => {
  607. this.goodsData = res.data.data;
  608. resolve();
  609. });
  610. });
  611. },
  612. examReport() {
  613. return new Promise((resolve) => {
  614. this.$api.examReport(this.recordId).then((res) => {
  615. this.reportdata = res.data.data;
  616. if (this.entryType != "random") {
  617. this.examName = this.reportdata.examName;
  618. }
  619. this.getCanvas();
  620. resolve();
  621. });
  622. });
  623. },
  624. bankExamTemp() {
  625. // '/bank/exam/temp/'+data
  626. this.$api.bankTempReport(this.examId).then((res) => {
  627. if (res.data.code == 200) {
  628. this.examName = res.data.data.examName;
  629. }
  630. });
  631. },
  632. },
  633. };
  634. </script>
  635. <style>
  636. page {
  637. background-color: #eaeef1;
  638. }
  639. </style>
  640. <style lang="scss" scope>
  641. @import "../../pages5/examReport/indexCourseList.scss";
  642. .disNone {
  643. display: none;
  644. }
  645. .greenBtn {
  646. margin: 16rpx 16rpx 0;
  647. height: 80rpx;
  648. line-height: 80rpx;
  649. text-align: center;
  650. background-color: #f7fff8;
  651. border-radius: 16rpx;
  652. color: #34c759;
  653. font-weight: bold;
  654. font-size: 30rpx;
  655. }
  656. .redBtn {
  657. margin: 16rpx 16rpx 0;
  658. height: 80rpx;
  659. line-height: 80rpx;
  660. text-align: center;
  661. background-color: #fff3f2;
  662. border-radius: 16rpx;
  663. color: #ff3b30;
  664. font-weight: bold;
  665. font-size: 30rpx;
  666. }
  667. .dis_fst {
  668. margin-top: 40rpx;
  669. display: flex;
  670. align-items: center;
  671. justify-content: space-around;
  672. }
  673. .btnACs {
  674. height: 48rpx;
  675. width: 160rpx;
  676. text-align: center;
  677. line-height: 48rpx;
  678. border: 1rpx solid #007aff;
  679. border-radius: 16rpx;
  680. color: #007aff;
  681. font-size: 24rpx;
  682. }
  683. .top {
  684. margin: 16rpx 16rpx 0;
  685. border-radius: 16rpx;
  686. padding: 40rpx 24rpx 16rpx;
  687. background: #fff;
  688. .title {
  689. font-size: 32rpx;
  690. font-weight: bold;
  691. color: #333333;
  692. white-space: nowrap;
  693. overflow: hidden;
  694. text-overflow: ellipsis;
  695. }
  696. .desc {
  697. margin-top: 20rpx;
  698. font-size: 24rpx;
  699. color: #999999;
  700. }
  701. .box {
  702. margin-top: 30rpx;
  703. display: flex;
  704. .left {
  705. width: 250rpx;
  706. height: 272rpx;
  707. background: #f5f5f5;
  708. border-radius: 16rpx;
  709. display: flex;
  710. align-items: center;
  711. justify-content: center;
  712. flex-direction: column;
  713. margin-right: 16rpx;
  714. view {
  715. text-align: center;
  716. &:nth-of-type(1) {
  717. font-size: 60rpx;
  718. font-weight: bold;
  719. color: #007aff;
  720. }
  721. &:nth-of-type(2) {
  722. font-size: 32rpx;
  723. font-weight: bold;
  724. color: #333333;
  725. }
  726. &:nth-of-type(3) {
  727. font-size: 24rpx;
  728. color: #999999;
  729. }
  730. }
  731. }
  732. .right {
  733. flex: 1;
  734. display: flex;
  735. flex-direction: column;
  736. justify-content: space-between;
  737. .flex {
  738. background: #f5f5f5;
  739. display: flex;
  740. height: 80rpx;
  741. align-items: center;
  742. padding: 0 40rpx;
  743. border-radius: 16rpx;
  744. image {
  745. margin-right: 28rpx;
  746. &.right_num {
  747. width: 26rpx;
  748. }
  749. &.out_num {
  750. width: 38rpx;
  751. }
  752. &.wrong_num {
  753. width: 30rpx;
  754. }
  755. }
  756. .text {
  757. flex: 1;
  758. font-size: 30rpx;
  759. color: #666666;
  760. }
  761. text {
  762. font-size: 48rpx;
  763. color: #e12626;
  764. &.red {
  765. color: #ff3b30;
  766. }
  767. &.green {
  768. color: #36c75a;
  769. }
  770. &.yellow {
  771. color: #ffc53d;
  772. }
  773. }
  774. }
  775. }
  776. }
  777. }
  778. .bottom {
  779. .circle-wrap {
  780. .circle-list {
  781. display: flex;
  782. .item {
  783. padding: 20rpx;
  784. border-radius: 16rpx;
  785. background: #fff;
  786. margin: 16rpx;
  787. flex: 1;
  788. .title {
  789. font-weight: bold;
  790. font-size: 30rpx;
  791. line-height: 24rpx;
  792. color: #333333;
  793. text {
  794. font-size: 20rpx;
  795. color: #999999;
  796. }
  797. }
  798. canvas {
  799. margin: 36rpx auto 0;
  800. width: 180rpx;
  801. height: 180rpx;
  802. }
  803. .text {
  804. text-align: center;
  805. margin-top: 16rpx;
  806. font-size: 24rpx;
  807. color: #333333;
  808. }
  809. }
  810. }
  811. }
  812. }
  813. </style>