lianxi.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725
  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 { useQuestionTools } from "@/utils/useQuestionTools.js";
  116. const {
  117. checkDanxuanReply,
  118. checkDuoxuanReply,
  119. checkPanduanReply,
  120. checkTiankongReply,
  121. getLetterByIndex,
  122. checkJiandaReply,
  123. checkYueduReply
  124. } = useQuestionTools();
  125. const stTypes = {
  126. 1: '单选题',
  127. 2: '多选题',
  128. 3: '判断题',
  129. 4: '填空题',
  130. }
  131. const popupRef = ref(null)
  132. const scoreAnswerRef = ref(null)
  133. const scoreAnswerTkRef = ref(null)
  134. const startCountDown = ref(false);
  135. const scoreAnswerJdRef = ref(null);
  136. const data = reactive({
  137. lxId: null,
  138. lxName: '',
  139. stTotal: 0,
  140. stScore: 0,
  141. biaoji: null,
  142. endSecond: 0,
  143. pageSize: 0,
  144. toggleScreenFlag: 0,
  145. toggleScreenSecond: 0,
  146. zhuapai: 0,
  147. duanluo: [],
  148. markDB: [],
  149. StListForSearch: [],
  150. })
  151. const yuduIndexQa = ref(null);
  152. const questionData = ref([]);
  153. const progress = reactive({
  154. dlIndex: 0,
  155. dtIndex: 0
  156. })
  157. const dlName = computed(() => {
  158. if (data.StListForSearch && activeSt.value) {
  159. return data.StListForSearch[activeSt.value.onlyNum - 1].paragraphName
  160. } else {
  161. return ''
  162. }
  163. })
  164. watch(() => data.duanluo, (newVal) => {
  165. // 计算已答试题数量
  166. }, {
  167. deep: true
  168. })
  169. const activeSt = computed(() => {
  170. if (questionData.value.length) {
  171. return questionData.value.length && questionData.value[progress.dlIndex].qas[progress.dtIndex];
  172. } else {
  173. return null
  174. }
  175. })
  176. const isFistStId = computed(() => {
  177. if (data.StListForSearch.length) {
  178. return data.StListForSearch[0].stId == activeSt.value.stId
  179. } else {
  180. return false
  181. }
  182. });
  183. const isLastStId = computed(() => {
  184. if (data.StListForSearch.length) {
  185. return data.StListForSearch[data.StListForSearch.length - 1].stId == activeSt.value.stId
  186. } else {
  187. return false
  188. }
  189. });
  190. onLoad((option) => {
  191. data.lxId = option.lxId;
  192. initKaoshi();
  193. })
  194. function getQaClass(qa) {
  195. if (qa.marked && qa.marked === true) {
  196. return 'paragraph-qa-block-mark';
  197. } else {
  198. if (qa.stTypeId == 1) {
  199. if (checkDanxuanReply(qa)) {
  200. return 'paragraph-qa-block-done';
  201. } else {
  202. return 'paragraph-qa-block-init';
  203. }
  204. } else if (qa.stTypeId == 2) {
  205. if (checkDuoxuanReply(qa)) {
  206. return 'paragraph-qa-block-done';
  207. } else {
  208. return 'paragraph-qa-block-init';
  209. }
  210. } else if (qa.stTypeId == 3) {
  211. if (checkPanduanReply(qa)) {
  212. return 'paragraph-qa-block-done';
  213. } else {
  214. return 'paragraph-qa-block-init';
  215. }
  216. } else if (qa.stTypeId == 4) {
  217. if (checkTiankongReply(qa)) {
  218. return 'paragraph-qa-block-done';
  219. } else {
  220. return 'paragraph-qa-block-init';
  221. }
  222. } else if (qa.stTypeId == 5) {
  223. if (checkJiandaReply(qa)) {
  224. return 'paragraph-qa-block-done';
  225. } else {
  226. return 'paragraph-qa-block-init';
  227. }
  228. } else if (qa.stTypeId == 6) {
  229. if (checkYueduReply(qa)) {
  230. return 'paragraph-qa-block-done';
  231. } else {
  232. return 'paragraph-qa-block-init';
  233. }
  234. }
  235. }
  236. }
  237. function skipQuestion(dlIndex, dtIndex) {
  238. progress.dlIndex = dlIndex;
  239. progress.dtIndex = dtIndex;
  240. handlePopupBack()
  241. // 切换试题时清空阅读提解析
  242. yuduIndexQa.value = null;
  243. }
  244. function answerCardItemClick(qa) {
  245. const actQa = data.StListForSearch.find(item => item.stId == qa.stId);
  246. skipQuestion(actQa.dlIndex, actQa.dtIndex)
  247. }
  248. function handleBack() {
  249. uni.redirectTo({
  250. url: "/pages/admin/Lianxi/list"
  251. })
  252. }
  253. function onTimeUp() {
  254. console.log('end')
  255. }
  256. function showAnswerCard() {
  257. popupRef.value.open('top')
  258. }
  259. function handlePopupBack() {
  260. popupRef.value.close()
  261. }
  262. function handlePrev() {
  263. const qa = data.StListForSearch.find(item => item.stId == activeSt.value.stId);
  264. const index = qa.num - 1;
  265. if (index > 0) {
  266. const result = data.StListForSearch[index - 1];
  267. progress.dlIndex = result.dlIndex;
  268. progress.dtIndex = result.dtIndex
  269. }
  270. // 切换试题时清空阅读提解析
  271. yuduIndexQa.value = null;
  272. }
  273. function handleNext() {
  274. const qa = data.StListForSearch.find(item => item.stId == activeSt.value.stId);
  275. const index = qa.num - 1;
  276. if (index < data.StListForSearch.length) {
  277. const result = data.StListForSearch[index + 1];
  278. progress.dlIndex = result.dlIndex;
  279. progress.dtIndex = result.dtIndex
  280. }
  281. // 切换试题时清空阅读提解析
  282. yuduIndexQa.value = null
  283. }
  284. function formatDuanluoList(dlData) {
  285. let uIndex = 0; // 试题num
  286. let iDuanluo = 0; // 段落num
  287. let result = [];
  288. for (const duanluo of data.duanluo) {
  289. let paragraph = {
  290. qas: [],
  291. };
  292. paragraph.name = duanluo.name;
  293. let iQa = 0; // 当前试题序号
  294. let order = 0; // 当前题型中第几题
  295. for (const iDanxuan of duanluo.danxuan) {
  296. iDanxuan.type = 'danxuan';
  297. iDanxuan.marked = false;
  298. iDanxuan.onlyNum = uIndex + 1;
  299. iDanxuan.order = order;
  300. iDanxuan.iQa = iQa;
  301. iDanxuan.reply = iDanxuan.result;
  302. paragraph.qas.push(iDanxuan);
  303. uIndex++;
  304. order++;
  305. iQa++;
  306. data.StListForSearch.push({
  307. stId: iDanxuan.stId,
  308. paragraphName: paragraph.name,
  309. dlIndex: iDuanluo,
  310. dtIndex: iDanxuan.iQa,
  311. num: iDanxuan.onlyNum
  312. })
  313. }
  314. order = 0;
  315. for (const iDuoxuan of duanluo.duoxuan) {
  316. iDuoxuan.type = 'duoxuan';
  317. iDuoxuan.marked = false;
  318. iDuoxuan.onlyNum = uIndex + 1;
  319. iDuoxuan.order = order;
  320. paragraph.qas.push(iDuoxuan);
  321. iDuoxuan.reply = iDuoxuan.result;
  322. iDuoxuan.iQa = iQa;
  323. uIndex++;
  324. order++;
  325. iQa++;
  326. data.StListForSearch.push({
  327. stId: iDuoxuan.stId,
  328. paragraphName: paragraph.name,
  329. dlIndex: iDuanluo,
  330. dtIndex: iDuoxuan.iQa,
  331. num: iDuoxuan.onlyNum
  332. })
  333. }
  334. order = 0;
  335. for (const iPanduan of duanluo.panduan) {
  336. iPanduan.type = 'panduan';
  337. iPanduan.marked = false;
  338. iPanduan.onlyNum = uIndex + 1;
  339. iPanduan.order = order;
  340. paragraph.qas.push(iPanduan);
  341. iPanduan.reply = iPanduan.result;
  342. iPanduan.iQa = iQa;
  343. uIndex++;
  344. order++;
  345. iQa++;
  346. data.StListForSearch.push({
  347. stId: iPanduan.stId,
  348. paragraphName: paragraph.name,
  349. dlIndex: iDuanluo,
  350. dtIndex: iPanduan.iQa,
  351. num: iPanduan.onlyNum
  352. })
  353. }
  354. order = 0;
  355. for (const iTiankong of duanluo.tiankong) {
  356. iTiankong.type = 'tiankong';
  357. iTiankong.marked = false;
  358. iTiankong.onlyNum = uIndex + 1;
  359. iTiankong.order = order;
  360. paragraph.qas.push(iTiankong);
  361. iTiankong.reply = iTiankong.result.map(item => item[0]);
  362. iTiankong.iQa = iQa;
  363. uIndex++;
  364. order++;
  365. iQa++;
  366. data.StListForSearch.push({
  367. stId: iTiankong.stId,
  368. paragraphName: paragraph.name,
  369. dlIndex: iDuanluo,
  370. dtIndex: iTiankong.iQa,
  371. num: iTiankong.onlyNum
  372. })
  373. }
  374. order = 0;
  375. for (const iJianda of duanluo.jianda) {
  376. iJianda.marked = false;
  377. iJianda.type = 'jianda';
  378. iJianda.onlyNum = uIndex + 1;
  379. iJianda.order = order;
  380. iJianda.iQa = iQa;
  381. paragraph.qas.push(iJianda);
  382. iJianda.reply = '';
  383. uIndex++;
  384. order++;
  385. iQa++;
  386. data.StListForSearch.push({
  387. stId: iJianda.stId,
  388. paragraphName: paragraph.name,
  389. dlIndex: iDuanluo,
  390. dtIndex: iJianda.iQa,
  391. num: iJianda.onlyNum
  392. })
  393. }
  394. order = 0;
  395. for (const iYuedu of duanluo.yuedu) {
  396. iYuedu.marked = false;
  397. iYuedu.type = 'yuedu';
  398. iYuedu.onlyNum = uIndex + 1;
  399. iYuedu.order = order;
  400. iYuedu.iQa = iQa;
  401. if (iYuedu.duoxuan && iYuedu.duoxuan.length) {
  402. iYuedu.duoxuan.map((qIt) => {
  403. qIt.reply = qIt.reply || [];
  404. return qIt
  405. })
  406. }
  407. if (iYuedu.tiankong && iYuedu.tiankong.length) {
  408. iYuedu.tiankong.map((qIt) => {
  409. qIt.reply = new Array(qIt.count).fill('');
  410. return qIt;
  411. });
  412. }
  413. paragraph.qas.push(iYuedu);
  414. iYuedu.reply = [];
  415. uIndex++;
  416. order++;
  417. iQa++;
  418. data.StListForSearch.push({
  419. stId: iYuedu.stId,
  420. paragraphName: paragraph.name,
  421. dlIndex: iDuanluo,
  422. dtIndex: iYuedu.iQa,
  423. num: iYuedu.onlyNum
  424. })
  425. }
  426. iDuanluo++;
  427. questionData.value.push(paragraph)
  428. console.log(questionData.value)
  429. }
  430. }
  431. function handleBiaoji() {
  432. activeSt.value.marked = !activeSt.value.marked;
  433. }
  434. // 切换阅读小题时更新当前试题解析
  435. function onYueduChange(qa) {
  436. yuduIndexQa.value = qa;
  437. }
  438. // 校验阅读解析
  439. function checkYueduJiexi() {
  440. let qa = yuduIndexQa.value;
  441. let score = qa.userScore;
  442. let reply = '';
  443. let result = '';
  444. let answer = qa.answer;
  445. if (qa.stTypeId == 1) {
  446. // 单选题
  447. if (qa.reply && qa.reply.trim() !== '') {
  448. reply = getLetterByIndex(qa.reply)
  449. } else {
  450. reply = '未答'
  451. }
  452. if (qa.result) {
  453. result = getLetterByIndex(qa.result)
  454. } else {
  455. result = '无答案'
  456. }
  457. scoreAnswerRef.value.showPopup({
  458. score,
  459. reply,
  460. result,
  461. answer
  462. })
  463. }
  464. if (qa.stTypeId == 2) {
  465. // 多选题
  466. if (qa.reply && qa.reply.length) {
  467. reply = qa.reply.map(item => {
  468. if (item.trim()) {
  469. return getLetterByIndex(item.trim())
  470. }
  471. }).join(',')
  472. } else {
  473. reply = '未答'
  474. }
  475. if (qa.result) {
  476. result = qa.result.map(item => {
  477. if (item.trim()) {
  478. return getLetterByIndex(item.trim())
  479. }
  480. }).join(',')
  481. } else {
  482. result = '无答案'
  483. }
  484. scoreAnswerRef.value.showPopup({
  485. score,
  486. reply,
  487. result,
  488. answer
  489. })
  490. }
  491. if (qa.stTypeId == 3) {
  492. // 判断题
  493. if (qa.reply === '') {
  494. reply = '未答'
  495. } else if (qa.reply == 0) {
  496. reply = '错误'
  497. } else if (qa.reply == 1) {
  498. reply = '正确'
  499. }
  500. if (qa.result == 0) {
  501. result = '错误'
  502. } else if (qa.result == 1) {
  503. result = '正确'
  504. }
  505. scoreAnswerRef.value.showPopup({
  506. score,
  507. reply,
  508. result,
  509. answer
  510. })
  511. }
  512. if (qa.stTypeId == 4) {
  513. let reply = qa.reply || [];
  514. let result = qa.result || [];
  515. // 填空题
  516. scoreAnswerTkRef.value.showPopup({
  517. score,
  518. reply,
  519. result,
  520. answer
  521. })
  522. }
  523. if (qa.stTypeId == 5) {
  524. // 简单题
  525. let reply = qa.reply ? '未答' : qa.reply;
  526. let result = qa.result;
  527. scoreAnswerJdRef.value.showPopup({
  528. score,
  529. reply,
  530. result,
  531. answer
  532. })
  533. }
  534. }
  535. // 获取解析
  536. function handleCheckJiexi() {
  537. const qa = activeSt.value;
  538. let score = qa.userScore;
  539. let reply = '';
  540. let result = '';
  541. let answer = qa.answer;
  542. if (qa.stTypeId == 1) {
  543. // 单选题
  544. if (qa.reply && qa.reply.trim() !== '') {
  545. reply = getLetterByIndex(qa.reply)
  546. } else {
  547. reply = '未答'
  548. }
  549. if (qa.result) {
  550. result = getLetterByIndex(qa.result)
  551. } else {
  552. result = '无答案'
  553. }
  554. scoreAnswerRef.value.showPopup({
  555. score,
  556. reply,
  557. result,
  558. answer
  559. })
  560. }
  561. if (qa.stTypeId == 2) {
  562. // 多选题
  563. if (qa.reply && qa.reply.length) {
  564. reply = qa.reply.map(item => {
  565. if (item.trim()) {
  566. return getLetterByIndex(item.trim())
  567. }
  568. }).join(',')
  569. } else {
  570. reply = '未答'
  571. }
  572. if (qa.result) {
  573. result = qa.result.map(item => {
  574. if (item.trim()) {
  575. return getLetterByIndex(item.trim())
  576. }
  577. }).join(',')
  578. } else {
  579. result = '无答案'
  580. }
  581. scoreAnswerRef.value.showPopup({
  582. score,
  583. reply,
  584. result,
  585. answer
  586. })
  587. }
  588. if (qa.stTypeId == 3) {
  589. // 判断题
  590. if (qa.reply === '') {
  591. reply = '未答'
  592. } else if (qa.reply == 0) {
  593. reply = '错误'
  594. } else if (qa.reply == 1) {
  595. reply = '正确'
  596. }
  597. if (qa.result == 0) {
  598. result = '错误'
  599. } else if (qa.result == 1) {
  600. result = '正确'
  601. }
  602. scoreAnswerRef.value.showPopup({
  603. score,
  604. reply,
  605. result,
  606. answer
  607. })
  608. }
  609. if (qa.stTypeId == 4) {
  610. let reply = qa.reply || [];
  611. let result = qa.result || [];
  612. // 填空题
  613. scoreAnswerTkRef.value.showPopup({
  614. score,
  615. reply,
  616. result,
  617. answer
  618. })
  619. }
  620. if (qa.stTypeId == 5) {
  621. // 简单题
  622. let reply = qa.reply;
  623. let result = qa.result;
  624. scoreAnswerJdRef.value.showPopup({
  625. score,
  626. reply,
  627. result,
  628. answer
  629. })
  630. }
  631. if (qa.stTypeId == 6) {
  632. // 简单题
  633. checkYueduJiexi()
  634. }
  635. }
  636. function initKaoshi() {
  637. lxApi.getLianxiInfo({
  638. lxId: data.lxId
  639. }).then(res => {
  640. const {
  641. lxId,
  642. lxName,
  643. stTotal,
  644. stScore,
  645. biaoji,
  646. endSecond,
  647. pageSize,
  648. toggleScreenFlag,
  649. toggleScreenSecond,
  650. zhuapai,
  651. duanluoList
  652. } = res.data;
  653. data.lxId = lxId;
  654. data.lxName = lxName;
  655. data.stTotal = stTotal;
  656. data.stScore = stScore;
  657. data.biaoji = biaoji;
  658. data.endSecond = endSecond;
  659. data.pageSize = pageSize;
  660. data.toggleScreenFlag = toggleScreenFlag;
  661. data.toggleScreenSecond = toggleScreenSecond;
  662. data.zhuapai = zhuapai;
  663. data.duanluo = duanluoList;
  664. formatDuanluoList(data.duanluo);
  665. startCountDown.value = true;
  666. uni.setNavigationBarTitle({
  667. title: data.lxName
  668. });
  669. })
  670. }
  671. </script>