cuoti.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708
  1. <template>
  2. <view class="phone-score-page">
  3. <!-- 段落 -->
  4. <view class="score-shiti-content">
  5. <!-- 试题区域 -->
  6. <view v-if="activeSt">
  7. <template v-if="activeSt.stTypeId == 1">
  8. <!-- 单选 -->
  9. <danxuan :question="activeSt" :key="activeSt.stId"></danxuan>
  10. </template>
  11. <template v-if="activeSt.stTypeId == 2">
  12. <!-- 多选 -->
  13. <duoxuan :question="activeSt" :key="activeSt.stId"></duoxuan>
  14. </template>
  15. <template v-if="activeSt.stTypeId == 3">
  16. <!-- 判断 -->
  17. <panduan :question="activeSt" :key="activeSt.stId"></panduan>
  18. </template>
  19. <template v-if="activeSt.stTypeId == 4">
  20. <!-- 填空 -->
  21. <tiankong :question="activeSt" :key="activeSt.stId"></tiankong>
  22. </template>
  23. <template v-if="activeSt.stTypeId == 5">
  24. <!-- 简答 -->
  25. <jianda :question="activeSt" :key="activeSt.stId"></jianda>
  26. </template>
  27. <template v-if="activeSt.stTypeId == 6">
  28. <!-- 阅读 -->
  29. <yuedu :question="activeSt" :key="activeSt.stId" @yudu-change="onYueduChange"></yuedu>
  30. </template>
  31. </view>
  32. <!-- 底部 -->
  33. <view class="kaoshi-bottom-box">
  34. <view class="shiti-num-box" @click="showAnswerCard">
  35. <icon class="shiti-num-icon"></icon>答题卡
  36. <text
  37. class="active-num">{{activeSt ? activeSt.onlyNum: 0}}</text>/<text>{{data.StListForSearch.length}}</text>
  38. </view>
  39. </view>
  40. <!-- 解析 -->
  41. <view v-if="activeSt" class="score-answer-box">
  42. <view class="phone-question-answer-box" v-if="activeSt.stTypeId == 6">
  43. <template v-if="yuduItemAnswer.stTypeId == 5">
  44. <!-- 阅读题中简答题 -->
  45. <view class="phone-line-title">答案解析</view>
  46. <view class="btdf-row">本题得分:<text>{{yuduItemAnswer.score}}</text>分</view>
  47. <view class="zqda-row">正确答案:
  48. <view>{{yuduItemAnswer.result}}</view>
  49. </view>
  50. <view class="ndda-row">您的答案:
  51. <view>{{yuduItemAnswer.reply}}</view>
  52. </view>
  53. <view class="dajx-row">答案解析:
  54. <rich-text :nodes="yuduItemAnswer.answer"></rich-text>
  55. </view>
  56. </template>
  57. <template v-else-if="yuduItemAnswer.stTypeId == 4">
  58. <view class="phone-line-title">答案解析</view>
  59. <view class="btdf-row">本题得分:<text>{{yuduItemAnswer.score}}</text>分</view>
  60. <view class="zqda-row">正确答案:
  61. <view v-for="(item,index) in yuduItemAnswer.result">{{`填空${index+1}`}} : {{item}}</view>
  62. </view>
  63. <view class="ndda-row">您的答案:
  64. <view v-for="(item,index) in yuduItemAnswer.reply"> {{`填空${index+1}`}}: {{item}}</view>
  65. </view>
  66. <view class="dajx-row">答案解析:
  67. <rich-text :nodes="yuduItemAnswer.answer"></rich-text>
  68. </view>
  69. </template>
  70. <template v-else>
  71. <view class="phone-line-title">答案解析</view>
  72. <view class="btdf-row">本题得分:<text>{{yuduItemAnswer.score}}</text>分</view>
  73. <view class="zqda-row">正确答案:<text>{{yuduItemAnswer.result}}</text></view>
  74. <view class="ndda-row">您的答案:<text>{{yuduItemAnswer.reply}}</text></view>
  75. <view class="dajx-row">答案解析:
  76. <rich-text :nodes="yuduItemAnswer.answer"></rich-text>
  77. </view>
  78. </template>
  79. </view>
  80. <view class="phone-question-answer-box" v-else-if="activeSt.stTypeId == 5">
  81. <view class="phone-line-title">答案解析</view>
  82. <view class="btdf-row">本题得分:<text>{{data.score}}</text>分</view>
  83. <view class="zqda-row">正确答案:
  84. <view>{{data.result}}</view>
  85. </view>
  86. <view class="ndda-row">您的答案:
  87. <view>{{data.reply}}</view>
  88. </view>
  89. <view class="dajx-row">答案解析:
  90. <rich-text :nodes="data.answer"></rich-text>
  91. </view>
  92. </view>
  93. <view class="phone-question-answer-box" v-else-if="activeSt.stTypeId == 4">
  94. <view class="phone-line-title">答案解析</view>
  95. <view class="btdf-row">本题得分:<text>{{answerRes.score}}</text>分</view>
  96. <view class="zqda-row">正确答案:
  97. <view v-for="(item,index) in answerRes.result">{{`填空${index+1}`}} : {{item}}</view>
  98. </view>
  99. <view class="ndda-row">您的答案:
  100. <view v-for="(item,index) in answerRes.reply"> {{`填空${index+1}`}}: {{item}}</view>
  101. </view>
  102. <view class="dajx-row">答案解析:
  103. <rich-text :nodes="answerRes.answer"></rich-text>
  104. </view>
  105. </view>
  106. <view class="phone-question-answer-box" v-else>
  107. <view class="phone-line-title">答案解析</view>
  108. <view class="btdf-row">本题得分:<text>{{answerRes.score}}</text>分</view>
  109. <view class="zqda-row">正确答案:<text>{{answerRes.result}}</text></view>
  110. <view class="ndda-row">您的答案:<text>{{answerRes.reply}}</text></view>
  111. <view class="dajx-row">答案解析:
  112. <rich-text :nodes="answerRes.answer"></rich-text>
  113. </view>
  114. </view>
  115. </view>
  116. </view>
  117. <!-- 上下按钮 -->
  118. <view v-if="activeSt" class="score-bottom-box">
  119. <view @click="handleOpenCard" class="score-num-box">
  120. <icon class="score-num-icon"></icon>
  121. <text
  122. class="active-num">{{activeSt && activeSt.onlyNum||0}}</text>/<text>{{data.StListForSearch.length}}</text>
  123. </view>
  124. <view>
  125. <button type="default" size="mini" hover-class="none" class="phone-green-btn score-answer-btn"
  126. @click="handlePrev" v-if="!isFistStId">上一题</button>
  127. <button type="default" size="mini" hover-class="none" class="phone-green-btn score-answer-btn"
  128. @click="handleNext" v-if="!isLastStId">下一题</button>
  129. <!-- <button type="default" size="mini" hover-class="none" class="phone-green-btn score-answer-btn"
  130. @click="handleBack" v-if="isLastStId">完成</button> -->
  131. </view>
  132. </view>
  133. <!-- 答题卡 -->
  134. <uni-popup ref="popupRef" background-color="#fff" :animation="false" :is-mask-click="false" :mask-click="false">
  135. <view class="answer-card-popup">
  136. <view class="icon-title-navBar-box">
  137. <view @click="handlePopupBack" class="nav-bar-icon"> </view>
  138. <text class="nav-bar-title">答题卡</text>
  139. </view>
  140. <view class="card-content-box">
  141. <view class="answer-card-content" v-for="(paragraph,paragraphIndex) in questionData"
  142. :key="paragraphIndex">
  143. <view class="paragraph-title">
  144. {{paragraph.name}}
  145. </view>
  146. <view class="paragraph-qa" v-for="(qa,qaIndex) in paragraph.qas" :key="qaIndex"
  147. :class="getQaClass(qa)" @click="answerCardItemClick(qa)">{{qa.onlyNum}}
  148. </view>
  149. </view>
  150. </view>
  151. </view>
  152. </uni-popup>
  153. </view>
  154. </template>
  155. <script setup>
  156. import danxuan from "@/components/questions/danxuan.vue";
  157. import duoxuan from "@/components/questions/duoxuan.vue";
  158. import tiankong from "@/components/questions/tiankong.vue";
  159. import panduan from "@/components/questions/panduan.vue";
  160. import jianda from "@/components/questions/jianda.vue";
  161. import yuedu from "@/components/questions/yuedu.vue";
  162. import {
  163. useQuestionTools
  164. } from "@/components/questions/useQuestionTools.js";
  165. import {
  166. onLoad
  167. } from "@dcloudio/uni-app";
  168. import {
  169. ref,
  170. reactive,
  171. computed
  172. } from "vue"
  173. import * as ctApi from "@/api/cuoti.js"
  174. const {
  175. checkDanxuanReply,
  176. checkDuoxuanReply,
  177. checkPanduanReply,
  178. checkTiankongReply,
  179. getLetterByIndex,
  180. checkJiandaReply,
  181. checkYueduReply
  182. } = useQuestionTools();
  183. const hisId = ref(null)
  184. const popupRef = ref(null)
  185. const yuduItemAnswer = ref(null); // 阅读小题显示答案
  186. const yuduIndexQa = ref(null); // 阅读小题答案
  187. const data = reactive({
  188. ksId: null,
  189. ksName: '',
  190. stTotal: 0,
  191. zyLevelName: '',
  192. userScore: '',
  193. ksScore: 0,
  194. StListForSearch: [],
  195. duanluo: []
  196. })
  197. const questionData = ref([]);
  198. const progress = reactive({
  199. dlIndex: 0,
  200. dtIndex: 0
  201. })
  202. const dlName = computed(() => {
  203. if (data.StListForSearch && activeSt.value) {
  204. return data.StListForSearch[activeSt.value.onlyNum].paragraphName
  205. } else {
  206. return ''
  207. }
  208. })
  209. const activeSt = computed(() => {
  210. if (questionData.value.length) {
  211. return questionData.value.length && questionData.value[progress.dlIndex].qas[progress.dtIndex];
  212. } else {
  213. return null
  214. }
  215. })
  216. const answerRes = computed(() => {
  217. const qa = activeSt.value;
  218. let score = qa.score;
  219. let reply = '';
  220. let result = '';
  221. let answer = qa.answer;
  222. if (qa.stTypeId == 1) {
  223. // 单选题
  224. if (qa.reply && qa.reply.trim() !== '') {
  225. reply = getLetterByIndex(qa.reply)
  226. } else {
  227. reply = '未答'
  228. }
  229. if (qa.result) {
  230. result = getLetterByIndex(qa.result)
  231. } else {
  232. result = '无答案'
  233. }
  234. }
  235. if (qa.stTypeId == 2) {
  236. // 多选题
  237. if (qa.reply && qa.reply.length) {
  238. reply = qa.reply.map(item => {
  239. if (item.trim()) {
  240. return getLetterByIndex(item.trim())
  241. }
  242. }).join(',')
  243. } else {
  244. reply = '未答'
  245. }
  246. if (qa.result) {
  247. result = qa.result.map(item => {
  248. if (item.trim()) {
  249. return getLetterByIndex(item.trim())
  250. }
  251. }).join(',')
  252. } else {
  253. result = '无答案'
  254. }
  255. }
  256. if (qa.stTypeId == 3) {
  257. // 判断题
  258. if (qa.reply === '') {
  259. reply = '未答'
  260. } else if (qa.reply == 0) {
  261. reply = '错误'
  262. } else if (qa.reply == 1) {
  263. reply = '正确'
  264. }
  265. if (qa.result == 0) {
  266. result = '错误'
  267. } else if (qa.result == 1) {
  268. result = '正确'
  269. }
  270. }
  271. if (qa.stTypeId == 4) {
  272. let reply = qa.reply || [];
  273. let result = qa.result || [];
  274. // 填空题
  275. return {
  276. score,
  277. reply,
  278. result,
  279. answer
  280. }
  281. } else if (qa.stTypeId == 5) {
  282. let reply = qa.reply;
  283. let result = qa.result;
  284. // 简答题
  285. return {
  286. score,
  287. reply,
  288. result,
  289. answer
  290. }
  291. } else {
  292. return {
  293. score,
  294. reply,
  295. result,
  296. answer
  297. }
  298. }
  299. })
  300. function showAnswerCard() {
  301. popupRef.value.open('top')
  302. }
  303. function onYueduChange(data) {
  304. yuduIndexQa.value = data;
  305. checkYueduJiexi()
  306. }
  307. // 校验阅读解析
  308. function checkYueduJiexi() {
  309. console.log('格式化阅读题', yuduIndexQa.value)
  310. let qa = yuduIndexQa.value;
  311. let score = qa.userScore;
  312. let reply = '';
  313. let result = '';
  314. let answer = qa.answer;
  315. if (qa.stTypeId == 1) {
  316. // 单选题
  317. if (qa.reply && qa.reply.trim() !== '') {
  318. reply = getLetterByIndex(qa.reply)
  319. } else {
  320. reply = '未答'
  321. }
  322. if (qa.result) {
  323. result = getLetterByIndex(qa.result)
  324. } else {
  325. result = '无答案'
  326. }
  327. yuduItemAnswer.value = {
  328. score,
  329. reply,
  330. result,
  331. answer
  332. }
  333. }
  334. if (qa.stTypeId == 2) {
  335. // 多选题
  336. if (qa.reply && qa.reply.length) {
  337. reply = qa.reply.map(item => {
  338. if (item.trim()) {
  339. return getLetterByIndex(item.trim())
  340. }
  341. }).join(',')
  342. } else {
  343. reply = '未答'
  344. }
  345. if (qa.result) {
  346. result = qa.result.map(item => {
  347. if (item.trim()) {
  348. return getLetterByIndex(item.trim())
  349. }
  350. }).join(',')
  351. } else {
  352. result = '无答案'
  353. }
  354. yuduItemAnswer.value = {
  355. score,
  356. reply,
  357. result,
  358. answer
  359. }
  360. }
  361. if (qa.stTypeId == 3) {
  362. // 判断题
  363. if (qa.reply === '') {
  364. reply = '未答'
  365. } else if (qa.reply == 0) {
  366. reply = '错误'
  367. } else if (qa.reply == 1) {
  368. reply = '正确'
  369. }
  370. if (qa.result == 0) {
  371. result = '错误'
  372. } else if (qa.result == 1) {
  373. result = '正确'
  374. }
  375. yuduItemAnswer.value = {
  376. score,
  377. reply,
  378. result,
  379. answer
  380. }
  381. }
  382. if (qa.stTypeId == 4) {
  383. let reply = qa.reply || [];
  384. let result = qa.result || [];
  385. // 填空题
  386. yuduItemAnswer.value = {
  387. score,
  388. reply,
  389. result,
  390. answer
  391. }
  392. }
  393. if (qa.stTypeId == 5) {
  394. // 简单题
  395. let reply = qa.reply ? '未答' : qa.reply;
  396. let result = qa.result;
  397. yuduItemAnswer.value = {
  398. score,
  399. reply,
  400. result,
  401. answer
  402. }
  403. }
  404. }
  405. const isFistStId = computed(() => {
  406. if (data.StListForSearch.length) {
  407. return data.StListForSearch[0].stId == activeSt.value.stId
  408. } else {
  409. return false
  410. }
  411. });
  412. const isLastStId = computed(() => {
  413. if (data.StListForSearch.length) {
  414. return data.StListForSearch[data.StListForSearch.length - 1].stId == activeSt.value.stId
  415. } else {
  416. return false
  417. }
  418. });
  419. onLoad((options) => {
  420. hisId.value = options.hisId;
  421. initPage()
  422. })
  423. function getQaClass(qa) {
  424. if (qa.marked && qa.marked === true) {
  425. return 'paragraph-qa-block-mark';
  426. } else {
  427. if (qa.stTypeId == 1) {
  428. if (checkDanxuanReply(qa)) {
  429. return 'paragraph-qa-block-done';
  430. } else {
  431. return 'paragraph-qa-block-init';
  432. }
  433. } else if (qa.stTypeId == 2) {
  434. if (checkDuoxuanReply(qa)) {
  435. return 'paragraph-qa-block-done';
  436. } else {
  437. return 'paragraph-qa-block-init';
  438. }
  439. } else if (qa.stTypeId == 3) {
  440. if (checkPanduanReply(qa)) {
  441. return 'paragraph-qa-block-done';
  442. } else {
  443. return 'paragraph-qa-block-init';
  444. }
  445. } else if (qa.stTypeId == 4) {
  446. if (checkTiankongReply(qa)) {
  447. return 'paragraph-qa-block-done';
  448. } else {
  449. return 'paragraph-qa-block-init';
  450. }
  451. } else if (qa.stTypeId == 5) {
  452. if (checkJiandaReply(qa)) {
  453. return 'paragraph-qa-block-done';
  454. } else {
  455. return 'paragraph-qa-block-init';
  456. }
  457. } else if (qa.stTypeId == 6) {
  458. if (checkYueduReply(qa)) {
  459. return 'paragraph-qa-block-done';
  460. } else {
  461. return 'paragraph-qa-block-init';
  462. }
  463. }
  464. }
  465. }
  466. function skipQuestion(dlIndex, dtIndex) {
  467. progress.dlIndex = dlIndex;
  468. progress.dtIndex = dtIndex;
  469. handlePopupBack()
  470. }
  471. function answerCardItemClick(qa) {
  472. const actQa = data.StListForSearch.find(item => item.stId == qa.stId);
  473. skipQuestion(actQa.dlIndex, actQa.dtIndex)
  474. }
  475. function handleBack() {
  476. uni.redirectTo({
  477. url: "/pages/admin/Chengji/list"
  478. })
  479. }
  480. function formatDuanluoList() {
  481. let uIndex = 0; // 试题num
  482. let iDuanluo = 0; // 段落num
  483. let result = [];
  484. for (const duanluo of data.duanluo) {
  485. let paragraph = {
  486. qas: [],
  487. };
  488. paragraph.name = duanluo.name;
  489. let iQa = 0; // 当前试题序号
  490. let order = 0; // 当前题型中第几题
  491. for (const iDanxuan of duanluo.danxuan) {
  492. iDanxuan.type = 'danxuan';
  493. iDanxuan.marked = false;
  494. iDanxuan.onlyNum = uIndex + 1;
  495. iDanxuan.order = order;
  496. iDanxuan.iQa = iQa;
  497. paragraph.qas.push(iDanxuan);
  498. uIndex++;
  499. order++;
  500. iQa++;
  501. data.StListForSearch.push({
  502. stId: iDanxuan.stId,
  503. paragraphName: paragraph.name,
  504. dlIndex: iDuanluo,
  505. dtIndex: iDanxuan.iQa,
  506. num: iDanxuan.onlyNum
  507. })
  508. }
  509. order = 0;
  510. for (const iDuoxuan of duanluo.duoxuan) {
  511. iDuoxuan.type = 'duoxuan';
  512. iDuoxuan.marked = false;
  513. iDuoxuan.onlyNum = uIndex + 1;
  514. iDuoxuan.order = order;
  515. paragraph.qas.push(iDuoxuan);
  516. iDuoxuan.iQa = iQa;
  517. uIndex++;
  518. order++;
  519. iQa++;
  520. data.StListForSearch.push({
  521. stId: iDuoxuan.stId,
  522. paragraphName: paragraph.name,
  523. dlIndex: iDuanluo,
  524. dtIndex: iDuoxuan.iQa,
  525. num: iDuoxuan.onlyNum
  526. })
  527. }
  528. order = 0;
  529. for (const iPanduan of duanluo.panduan) {
  530. iPanduan.type = 'panduan';
  531. iPanduan.marked = false;
  532. iPanduan.onlyNum = uIndex + 1;
  533. iPanduan.order = order;
  534. paragraph.qas.push(iPanduan);
  535. iPanduan.iQa = iQa;
  536. uIndex++;
  537. order++;
  538. iQa++;
  539. data.StListForSearch.push({
  540. stId: iPanduan.stId,
  541. paragraphName: paragraph.name,
  542. dlIndex: iDuanluo,
  543. dtIndex: iPanduan.iQa,
  544. num: iPanduan.onlyNum
  545. })
  546. }
  547. order = 0;
  548. for (const iTiankong of duanluo.tiankong) {
  549. iTiankong.type = 'tiankong';
  550. iTiankong.marked = false;
  551. iTiankong.onlyNum = uIndex + 1;
  552. iTiankong.order = order;
  553. paragraph.qas.push(iTiankong);
  554. iTiankong.iQa = iQa;
  555. uIndex++;
  556. order++;
  557. iQa++;
  558. data.StListForSearch.push({
  559. stId: iTiankong.stId,
  560. paragraphName: paragraph.name,
  561. dlIndex: iDuanluo,
  562. dtIndex: iTiankong.iQa,
  563. num: iTiankong.onlyNum
  564. })
  565. }
  566. order = 0;
  567. for (const iJianda of duanluo.jianda) {
  568. iJianda.type = 'jianda';
  569. iJianda.onlyNum = uIndex + 1;
  570. iJianda.order = order;
  571. iJianda.iQa = iQa;
  572. paragraph.qas.push(iJianda);
  573. iJianda.reply = '';
  574. uIndex++;
  575. order++;
  576. iQa++;
  577. data.StListForSearch.push({
  578. stId: iJianda.stId,
  579. paragraphName: paragraph.name,
  580. dlIndex: iDuanluo,
  581. dtIndex: iJianda.iQa,
  582. num: iJianda.onlyNum
  583. })
  584. }
  585. order = 0;
  586. for (const iYuedu of duanluo.yuedu) {
  587. iYuedu.type = 'yuedu';
  588. iYuedu.onlyNum = uIndex + 1;
  589. iYuedu.order = order;
  590. iYuedu.iQa = iQa;
  591. if (iYuedu.duoxuan && iYuedu.duoxuan.length) {
  592. iYuedu.duoxuan.map((qIt) => {
  593. qIt.reply = qIt.reply || [];
  594. return qIt
  595. })
  596. }
  597. if (iYuedu.tiankong && iYuedu.tiankong.length) {
  598. iYuedu.tiankong.map((qIt) => {
  599. qIt.reply = new Array(qIt.count).fill('');
  600. return qIt;
  601. });
  602. }
  603. paragraph.qas.push(iYuedu);
  604. iYuedu.reply = [];
  605. uIndex++;
  606. order++;
  607. iQa++;
  608. data.StListForSearch.push({
  609. stId: iYuedu.stId,
  610. paragraphName: paragraph.name,
  611. dlIndex: iDuanluo,
  612. dtIndex: iYuedu.iQa,
  613. num: iYuedu.onlyNum
  614. })
  615. }
  616. iDuanluo++;
  617. questionData.value.push(paragraph)
  618. }
  619. }
  620. function handlePrev() {
  621. const qa = data.StListForSearch.find(item => item.stId == activeSt.value.stId);
  622. const index = qa.num - 1;
  623. if (index > 0) {
  624. const result = data.StListForSearch[index - 1];
  625. progress.dlIndex = result.dlIndex;
  626. progress.dtIndex = result.dtIndex
  627. }
  628. }
  629. function handleNext() {
  630. const qa = data.StListForSearch.find(item => item.stId == activeSt.value.stId);
  631. const index = qa.num - 1;
  632. if (index < data.StListForSearch.length) {
  633. const result = data.StListForSearch[index + 1];
  634. progress.dlIndex = result.dlIndex;
  635. progress.dtIndex = result.dtIndex
  636. }
  637. }
  638. function initPage() {
  639. uni.setNavigationBarTitle({
  640. title: '错题'
  641. });
  642. ctApi.getCuotiInfo({
  643. hisId: hisId.value
  644. }).then(res => {
  645. data.duanluo = [res.data];
  646. formatDuanluoList();
  647. })
  648. }
  649. function handlePopupBack() {
  650. popupRef.value.close()
  651. }
  652. function handleOpenCard() {
  653. popupRef.value.open('top')
  654. }
  655. </script>
  656. <style>
  657. </style>