question_report.vue 22 KB

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