index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949
  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 { mapGetters, mapActions } from "vuex";
  278. import config from '@/common/config'
  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: { ...mapGetters(["userInfo", "sysTime", "hideBuyState"]) },
  302. onPullDownRefresh() {
  303. this.pageNum = 1;
  304. this.courseList = [];
  305. this.getcourList();
  306. // this.timer = setTimeout(function() {
  307. // uni.stopPullDownRefresh()
  308. // }, 500)
  309. },
  310. onReachBottom() {
  311. console.log(this.total, "total");
  312. console.log(this.courseList.length, "length");
  313. if (this.courseList.length < this.total) {
  314. this.pageNum++;
  315. this.getcourList();
  316. }
  317. },
  318. async onLoad(option) {
  319. console.log(option);
  320. this.recordId = option.id;
  321. this.examId = option.examId;
  322. this.eachExamId = option.eachExamId;
  323. this.subscribeId = option.subscribeId;
  324. await this.setSystemTime();
  325. this.mockSubscribeInfo();
  326. this.mockWrongRecordWrongNum();
  327. await this.bankExam();
  328. await this.mockReport();
  329. },
  330. onShow() {
  331. this.pageNum = 1;
  332. this.courseList = [];
  333. this.getcourList();
  334. },
  335. onUnload() {
  336. clearTimeout(this.timer);
  337. },
  338. methods: {
  339. ...mapActions(["setSystemTime"]),
  340. getCanvas() {
  341. this.$method.getCanvas(this).then(({ systemInfo }) => {
  342. var caculateX = systemInfo.screenWidth / 750;
  343. if (this.reportdata.totalScore) {
  344. var context1 = uni.createCanvasContext("Canvas1");
  345. this.context1 = context1;
  346. context1.setStrokeStyle("#EEEEEE");
  347. context1.setLineWidth(caculateX * 20);
  348. context1.arc(
  349. caculateX * 90,
  350. caculateX * 90,
  351. caculateX * 80,
  352. 0,
  353. 2 * Math.PI,
  354. true
  355. );
  356. context1.stroke();
  357. context1.beginPath();
  358. context1.setStrokeStyle("#32D74B");
  359. context1.setFillStyle("#32D74B");
  360. context1.setTextAlign("center");
  361. context1.setTextBaseline("middle");
  362. context1.setLineCap("round");
  363. context1.setFontSize(caculateX * 64);
  364. context1.fillText(
  365. this.reportdata.performance,
  366. caculateX * 90,
  367. caculateX * 90,
  368. caculateX * 180
  369. );
  370. context1.setFillStyle("#999999");
  371. context1.setFontSize(caculateX * 20);
  372. context1.fillText(
  373. `满分${this.reportdata.totalScore}`,
  374. caculateX * 90,
  375. caculateX * 130,
  376. caculateX * 180
  377. );
  378. context1.arc(
  379. caculateX * 90,
  380. caculateX * 90,
  381. caculateX * 80,
  382. -Math.PI / 2,
  383. -Math.PI / 2 +
  384. (this.reportdata.performance / this.reportdata.totalScore) *
  385. 2 *
  386. Math.PI,
  387. false
  388. );
  389. context1.stroke();
  390. context1.draw();
  391. }
  392. if (this.reportdata.examTime) {
  393. var context2 = uni.createCanvasContext("Canvas2");
  394. this.context2 = context2;
  395. context2.setStrokeStyle("#EEEEEE");
  396. context2.setLineWidth(caculateX * 20);
  397. context2.arc(
  398. caculateX * 90,
  399. caculateX * 90,
  400. caculateX * 80,
  401. 0,
  402. 2 * Math.PI,
  403. true
  404. );
  405. context2.stroke();
  406. context2.beginPath();
  407. context2.setStrokeStyle("#007AFF");
  408. context2.setFillStyle("#007AFF");
  409. context2.setTextAlign("center");
  410. context2.setTextBaseline("middle");
  411. context2.setLineCap("round");
  412. context2.setFontSize(caculateX * 64);
  413. context2.fillText(
  414. `${this.reportdata.doTime}'`,
  415. caculateX * 90,
  416. caculateX * 90,
  417. caculateX * 180
  418. );
  419. context2.setFillStyle("#999999");
  420. context2.setFontSize(caculateX * 20);
  421. context2.fillText(
  422. `限时${this.reportdata.examTime}'`,
  423. caculateX * 90,
  424. caculateX * 130,
  425. caculateX * 180
  426. );
  427. context2.arc(
  428. caculateX * 90,
  429. caculateX * 90,
  430. caculateX * 80,
  431. -Math.PI / 2,
  432. -Math.PI / 2 +
  433. (this.reportdata.doTime / this.reportdata.examTime) * 2 * Math.PI,
  434. false
  435. );
  436. context2.stroke();
  437. context2.draw();
  438. }
  439. if (this.reportdata.score != -1) {
  440. var context3 = uni.createCanvasContext("Canvas3");
  441. this.context3 = context3;
  442. context3.setStrokeStyle("#EEEEEE");
  443. context3.setLineWidth(caculateX * 20);
  444. context3.arc(
  445. caculateX * 90,
  446. caculateX * 90,
  447. caculateX * 80,
  448. 0,
  449. 2 * Math.PI,
  450. true
  451. );
  452. context3.stroke();
  453. context3.beginPath();
  454. context3.setStrokeStyle("#32D74B");
  455. context3.setFillStyle("#32D74B");
  456. context3.setTextAlign("center");
  457. context3.setTextBaseline("middle");
  458. context3.setLineCap("round");
  459. context3.setFontSize(caculateX * 64);
  460. context3.fillText(
  461. this.reportdata.performance + this.reportdata.score,
  462. caculateX * 90,
  463. caculateX * 90,
  464. caculateX * 180
  465. );
  466. context3.setFillStyle("#999999");
  467. context3.setFontSize(caculateX * 20);
  468. context3.fillText(
  469. `满分${this.reportdata.totalScore}`,
  470. caculateX * 90,
  471. caculateX * 130,
  472. caculateX * 180
  473. );
  474. context3.arc(
  475. caculateX * 90,
  476. caculateX * 90,
  477. caculateX * 80,
  478. -Math.PI / 2,
  479. -Math.PI / 2 +
  480. ((this.reportdata.performance + this.reportdata.score) /
  481. this.reportdata.totalScore) *
  482. 2 *
  483. Math.PI,
  484. false
  485. );
  486. context3.stroke();
  487. context3.draw();
  488. }
  489. });
  490. },
  491. getcourList() {
  492. this.$http({
  493. url: "/apply/recommend/goodsList",
  494. method: "post",
  495. data: {
  496. examId: this.examId,
  497. pageNum: this.pageNum,
  498. pageSize: this.pageSize,
  499. },
  500. }).then((res) => {
  501. if (res.data.code == 200) {
  502. this.courseList.push(...res.data.rows);
  503. this.total = res.data.total;
  504. }
  505. });
  506. },
  507. toBuy(item) {
  508. if (item.goodsType == 2) {
  509. uni.navigateTo({
  510. url: "/pages2/bank/detail?id=" + item.goodsId,
  511. });
  512. } else {
  513. // /pages5/liveDetail/index
  514. uni.navigateTo({
  515. url:
  516. "/pages3/course/detail?id=" +
  517. item.goodsId +
  518. "&goodsType=" +
  519. item.goodsType,
  520. });
  521. }
  522. },
  523. goLive() {
  524. let uuid = new Date().valueOf() + "";
  525. // buyCourse 是否购买课程:1是 0否
  526. let encode = encodeURIComponent(
  527. config.WEBVIEW_URL +
  528. "pages/live/index?token=" +
  529. uni.getStorageSync("token") +
  530. "&userInfo=" +
  531. JSON.stringify(this.userInfo) +
  532. "&channelId=" +
  533. this.subscribeInfo.liveUrl +
  534. "&buyCourse=1" +
  535. "&ident=" +
  536. uuid
  537. );
  538. uni.navigateTo({
  539. url: `../../pages/webview/index?url=` + encode,
  540. });
  541. },
  542. mockSubscribeInfo() {
  543. this.$api.mockSubscribeInfo(this.subscribeId).then((res) => {
  544. console.log("subscribeInfo", this.subscribeInfo);
  545. this.subscribeInfo = res.data.data;
  546. });
  547. },
  548. openRemind() {
  549. this.noticeModal = false;
  550. this.$api
  551. .mockSubscribeEdit({
  552. subscribeId: this.subscribeId,
  553. liveSubscribe: 1,
  554. })
  555. .then((res) => {
  556. if (res.data.code == 200) {
  557. this.mockSubscribeInfo();
  558. uni.showToast({
  559. icon: "none",
  560. title: "开启成功",
  561. });
  562. }
  563. });
  564. },
  565. bankExam() {
  566. return new Promise((resolve) => {
  567. this.$api.bankExam(this.examId).then((res) => {
  568. this.examData = res.data.data;
  569. resolve();
  570. });
  571. });
  572. },
  573. /**
  574. * 去做题
  575. */
  576. async doRepeat(id, goodsId, moduleId = 0, chapterId = 0) {
  577. // await this.getDetail(goodsId);
  578. let count = await this.examRecordCount(id, goodsId);
  579. let answerNum = await this.getExamDetail(id);
  580. //超过答题次数
  581. if (answerNum > 0 && count >= answerNum) {
  582. this.$u.toast("该试卷只能答题" + answerNum + "次!");
  583. return;
  584. }
  585. var pages = getCurrentPages();
  586. var prepage = pages[pages.length - 2]; //上一个页面
  587. prepage.$vm.isRepeat = true;
  588. uni.redirectTo({
  589. url:
  590. "/pages5/examReport/questionBank?orderGoodsId=" +
  591. this.orderGoodsId +
  592. "&id=" +
  593. id +
  594. "&goodsid=" +
  595. goodsId +
  596. "&moduleId=" +
  597. moduleId +
  598. "&chapterId=" +
  599. chapterId +
  600. "",
  601. });
  602. },
  603. /**
  604. * @param {Object} exam_id
  605. * 获取试卷可以做的次数
  606. */
  607. getExamDetail(exam_id) {
  608. return new Promise((resolve) => {
  609. this.$api.getExamDetail(exam_id).then((res) => {
  610. resolve(res.data.data.answerNum);
  611. });
  612. });
  613. },
  614. mockWrongRecordWrongNum() {
  615. return new Promise((resolve) => {
  616. // /mock/wwrong/record/wrongNum/${data}
  617. this.$api.mockWrongRecordWrongNum(this.recordId).then((res) => {
  618. this.wrongRecordWrongNum = res.data.data || 0;
  619. resolve();
  620. });
  621. });
  622. },
  623. /**
  624. * 查询试卷历史做题次数
  625. */
  626. examRecordCount(examId, goodsId) {
  627. return new Promise((resolve) => {
  628. this.$api
  629. .examRecordCount({
  630. examId: examId,
  631. orderGoodsId: this.orderGoodsId,
  632. })
  633. .then((res) => {
  634. resolve(res.data.data);
  635. });
  636. });
  637. },
  638. getDetail(id) {
  639. return new Promise((resolve) => {
  640. this.$api.goodsDetail(id).then((res) => {
  641. this.goodsData = res.data.data;
  642. resolve();
  643. });
  644. });
  645. },
  646. mockReport() {
  647. return new Promise((resolve) => {
  648. // /mock/record/'+data
  649. this.$api.mockReport(this.recordId).then((res) => {
  650. this.reportdata = res.data.data;
  651. this.getCanvas();
  652. resolve();
  653. });
  654. });
  655. },
  656. },
  657. };
  658. </script>
  659. <style>
  660. page {
  661. background-color: #eaeef1;
  662. }
  663. </style>
  664. <style lang="scss" scope>
  665. @import "./indexCourseList.scss";
  666. .disNone {
  667. display: none;
  668. }
  669. .dis_fst {
  670. margin-top: 40rpx;
  671. display: flex;
  672. align-items: center;
  673. justify-content: space-around;
  674. }
  675. .btnACs {
  676. height: 48rpx;
  677. width: 160rpx;
  678. text-align: center;
  679. line-height: 48rpx;
  680. border: 1rpx solid #007aff;
  681. border-radius: 16rpx;
  682. color: #007aff;
  683. font-size: 24rpx;
  684. }
  685. .top {
  686. margin: 16rpx 16rpx 0;
  687. border-radius: 16rpx;
  688. padding: 40rpx 24rpx 16rpx;
  689. background: #fff;
  690. .title {
  691. font-size: 32rpx;
  692. font-weight: bold;
  693. color: #333333;
  694. }
  695. .desc {
  696. margin-top: 20rpx;
  697. font-size: 24rpx;
  698. color: #999999;
  699. }
  700. .box {
  701. margin-top: 30rpx;
  702. display: flex;
  703. .left {
  704. width: 250rpx;
  705. height: 272rpx;
  706. background: #f5f5f5;
  707. border-radius: 16rpx;
  708. display: flex;
  709. align-items: center;
  710. justify-content: center;
  711. flex-direction: column;
  712. margin-right: 16rpx;
  713. view {
  714. text-align: center;
  715. &:nth-of-type(1) {
  716. font-size: 60rpx;
  717. font-weight: bold;
  718. color: #007aff;
  719. }
  720. &:nth-of-type(2) {
  721. font-size: 32rpx;
  722. font-weight: bold;
  723. color: #333333;
  724. }
  725. &:nth-of-type(3) {
  726. font-size: 24rpx;
  727. color: #999999;
  728. }
  729. }
  730. }
  731. .right {
  732. flex: 1;
  733. display: flex;
  734. flex-direction: column;
  735. justify-content: space-between;
  736. .flex {
  737. background: #f5f5f5;
  738. display: flex;
  739. height: 80rpx;
  740. align-items: center;
  741. padding: 0 40rpx;
  742. border-radius: 16rpx;
  743. image {
  744. margin-right: 28rpx;
  745. &.right_num {
  746. width: 26rpx;
  747. }
  748. &.out_num {
  749. width: 38rpx;
  750. }
  751. &.wrong_num {
  752. width: 30rpx;
  753. }
  754. }
  755. .text {
  756. flex: 1;
  757. font-size: 30rpx;
  758. color: #666666;
  759. }
  760. text {
  761. font-size: 48rpx;
  762. color: #e12626;
  763. &.red {
  764. color: #ff3b30;
  765. }
  766. &.green {
  767. color: #36c75a;
  768. }
  769. &.yellow {
  770. color: #ffc53d;
  771. }
  772. }
  773. }
  774. }
  775. }
  776. }
  777. .bottom {
  778. .circle-wrap {
  779. .circle-list {
  780. display: flex;
  781. .item {
  782. padding: 20rpx;
  783. border-radius: 16rpx;
  784. background: #fff;
  785. margin: 16rpx;
  786. flex: 1;
  787. .title {
  788. font-weight: bold;
  789. font-size: 30rpx;
  790. line-height: 24rpx;
  791. color: #333333;
  792. text {
  793. font-size: 20rpx;
  794. color: #999999;
  795. }
  796. }
  797. canvas {
  798. margin: 36rpx auto 0;
  799. width: 180rpx;
  800. height: 180rpx;
  801. }
  802. .text {
  803. text-align: center;
  804. margin-top: 16rpx;
  805. font-size: 24rpx;
  806. color: #333333;
  807. }
  808. }
  809. }
  810. }
  811. }
  812. .notice {
  813. background: #fff;
  814. padding: 40rpx;
  815. .img {
  816. width: 100%;
  817. }
  818. .text {
  819. text-align: center;
  820. font-size: 28rpx;
  821. color: #666666;
  822. line-height: 48rpx;
  823. .blue {
  824. color: #007aff;
  825. }
  826. }
  827. .btn {
  828. text-align: center;
  829. line-height: 80rpx;
  830. margin: 40rpx auto 0;
  831. width: 528rpx;
  832. height: 80rpx;
  833. background: #007aff;
  834. border-radius: 40rpx;
  835. color: #fff;
  836. }
  837. }
  838. .notice__modal {
  839. .notice__content {
  840. width: 640rpx;
  841. height: 779rpx;
  842. background: #ffffff;
  843. display: flex;
  844. flex-direction: column;
  845. .body {
  846. flex: 1;
  847. .content {
  848. padding: 30rpx 40rpx 28rpx;
  849. line-height: 40rpx;
  850. font-size: 28rpx;
  851. color: #666;
  852. .img {
  853. width: 100%;
  854. }
  855. .bold {
  856. color: #333;
  857. font-size: 32rpx;
  858. font-weight: bold;
  859. }
  860. .center {
  861. text-align: center;
  862. }
  863. .blue {
  864. color: #007aff;
  865. }
  866. .text {
  867. margin-top: 20rpx;
  868. }
  869. }
  870. }
  871. .footer {
  872. height: 140rpx;
  873. border-top: 1px solid #eeeeee;
  874. display: flex;
  875. align-items: center;
  876. justify-content: center;
  877. .btn {
  878. margin: 0 12rpx;
  879. width: 268rpx;
  880. height: 80rpx;
  881. color: #fff;
  882. font-size: 30rpx;
  883. text-align: center;
  884. line-height: 80rpx;
  885. background: #007aff;
  886. border-radius: 40rpx 40rpx 40rpx 40rpx;
  887. &.close {
  888. color: #007aff;
  889. background: #f5f5f5;
  890. border-radius: 40rpx 40rpx 40rpx 40rpx;
  891. }
  892. }
  893. }
  894. }
  895. }
  896. </style>