index.vue 24 KB

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