lianxi.vue 17 KB

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