question_report.vue 22 KB

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