exam.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708
  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.ksName}}</text>
  7. </view>
  8. <!-- 第一行 -->
  9. <view class="kaoshi-page-title">
  10. <!-- 倒计时 -->
  11. <view v-if="!!data.endSecond">
  12. <text>考试倒计时:</text>
  13. <uni-countdown :show-day="true" :second="1000" @timeup="onTimeUp"
  14. :start="startCountDown"></uni-countdown>
  15. </view>
  16. <view v-if="activeSt" class="title-types">{{dlName}}</view>
  17. </view>
  18. <view class="kaoshi-shiti-content">
  19. <!-- 内容区域 -->
  20. <!-- 试题区域 -->
  21. <view v-if="activeSt">
  22. <template v-if="activeSt.stTypeId == 1">
  23. <!-- 单选 -->
  24. <danxuan :question="activeSt" :key="activeSt.stId"></danxuan>
  25. </template>
  26. <template v-if="activeSt.stTypeId == 2">
  27. <!-- 多选 -->
  28. <duoxuan :question="activeSt" :key="activeSt.stId"></duoxuan>
  29. </template>
  30. <template v-if="activeSt.stTypeId == 3">
  31. <!-- 判断 -->
  32. <panduan :question="activeSt" :key="activeSt.stId"></panduan>
  33. </template>
  34. <template v-if="activeSt.stTypeId == 4">
  35. <!-- 填空 -->
  36. <tiankong :question="activeSt" :key="activeSt.stId"></tiankong>
  37. </template>
  38. </view>
  39. </view>
  40. <view class="kaoshi-bottom-box">
  41. <button class="phone-green-btn bj-btn" hover-class="none" type="default" size="mini"
  42. @click="handleBiaoji">{{activeSt && activeSt.marked ? '取标':'标记'}}</button>
  43. <view @click="showAnswerCard" class="shiti-num-box">
  44. <icon class="shiti-num-icon"></icon>
  45. <text
  46. class="active-num">{{activeSt ? activeSt.onlyNum: 0}}</text>/<text>{{data.StListForSearch.length}}</text>
  47. </view>
  48. <button class="phone-green-btn" hover-class="none" type="default" size="mini"
  49. @click="handleSave(true)">保存</button>
  50. </view>
  51. <template v-if="activeSt">
  52. <button type="default" size="mini" hover-class="none" class="phone-green-btn ks-btn-prev"
  53. @click="handlePrev" v-if="!isFistStId">上一题</button>
  54. <button type="default" size="mini" hover-class="none" class="phone-green-btn ks-btn-next"
  55. @click="handleNext" v-if="!isLastStId">下一题</button>
  56. <button type="default" size="mini" hover-class="none" class="phone-green-btn ks-btn-next"
  57. @click="handleJiaojuan" v-if="isLastStId">交卷</button>
  58. </template>
  59. <!-- 答题卡 -->
  60. <uni-popup ref="popupRef" background-color="#fff" :is-mask-click="false" :mask-click="false">
  61. <view class="answer-card-popup">
  62. <view class="icon-title-bjcolor-navBar-box">
  63. <view @click="handlePopupBack" class="nav-bar-icon"> </view>
  64. <text class="nav-bar-title">答题卡</text>
  65. </view>
  66. <view class="answer-card-content" v-for="(paragraph,paragraphIndex) in questionData"
  67. :key="paragraphIndex">
  68. <view class="paragraph-title">
  69. {{paragraph.name}}
  70. </view>
  71. <view class="paragraph-qa" v-for="(qa,qaIndex) in paragraph.qas" :key="qaIndex"
  72. :class="getQaClass(qa)" @click="answerCardItemClick(qa)">{{qa.onlyNum}}
  73. </view>
  74. </view>
  75. </view>
  76. </uni-popup>
  77. <!-- 摄像头确认 -->
  78. <zhuapaiConfirm ref="zhuapaiConfirmRef" @success="zpConfirmSuccess" @error="zpConfirmError"
  79. @cancel="zpConfirmCancel" key="1"></zhuapaiConfirm>
  80. <!-- 抓拍 -->
  81. <zhuapaiVue ref="zhuapaiRef" @error="zpError" @success="zpSuccess" key="2"></zhuapaiVue>
  82. <!-- 切屏 -->
  83. <qiepingVue ref="qiepingRef" @zhuapai="qpZhuapai" @forceSubmit="forceSubmit" @qiepingToast="qiepingToast"
  84. key="3"></qiepingVue>
  85. <!-- 交卷确认 -->
  86. <answerQueren ref="answerQrRef" @confirm="handleQuerenConfirm"></answerQueren>
  87. <!-- 考试得分 -->
  88. <submitScoreVue ref="subScoreRef" @confirm="handleScoreConfirm" @close="handleScoreClose"></submitScoreVue>
  89. </view>
  90. </template>
  91. <script setup>
  92. import {
  93. ref,
  94. reactive,
  95. computed,
  96. watch,
  97. nextTick
  98. } from "vue";
  99. import zhuapaiVue from "@/components/zhuapaiConfirm/zhuapai.vue";
  100. import qiepingVue from "@/components/zhuapaiConfirm/qieping.vue";
  101. import zhuapaiConfirm from "@/components/zhuapaiConfirm/index.vue";
  102. import answerQueren from "@/components/zhuapaiConfirm/answerQueren.vue";
  103. import submitScoreVue from "@/components/zhuapaiConfirm/submitScore.vue";
  104. import {
  105. onLoad
  106. } from "@dcloudio/uni-app";
  107. import * as ksApi from "@/api/kaoshi.js"
  108. import danxuan from "@/components/questions/danxuan.vue";
  109. import duoxuan from "@/components/questions/duoxuan.vue";
  110. import tiankong from "@/components/questions/tiankong.vue";
  111. import panduan from "@/components/questions/panduan.vue";
  112. import {
  113. useQuestionTools
  114. } from "@/components/questions/useQuestionTools.js";
  115. import {
  116. useKaoShiCache
  117. } from "./examTools"
  118. const {
  119. checkDanxuanReply,
  120. checkDuoxuanReply,
  121. checkPanduanReply,
  122. checkTiankongReply,
  123. getLetterByIndex
  124. } = useQuestionTools();
  125. const {
  126. saveCacheKs,
  127. getCacheKs,
  128. removeCacheKs
  129. } = useKaoShiCache();
  130. onLoad((option) => {
  131. data.ksId = option.ksId;
  132. data.zhuapai = option.zhuapai;
  133. data.from = option.from;
  134. if (data.zhuapai && data.zhuapai != 0) {
  135. // 考试前确认摄像头
  136. nextTick(() => {
  137. initBeforKaoshi();
  138. })
  139. } else {
  140. initKaoshi();
  141. }
  142. })
  143. const popupRef = ref(null)
  144. const zhuapaiRef = ref(null)
  145. const qiepingRef = ref(null)
  146. const zhuapaiConfirmRef = ref(null)
  147. const answerQrRef = ref(null);
  148. const startCountDown = ref(false);
  149. const subScoreRef = ref(null)
  150. const timer1 = ref(null);
  151. const data = reactive({
  152. ksId: null,
  153. operId: null,
  154. ksName: '',
  155. stTotal: 0,
  156. stScore: 0,
  157. biaoji: {},
  158. endSecond: 0,
  159. pageSize: 0,
  160. toggleScreenFlag: 0,
  161. toggleScreenSecond: 0,
  162. zhuapai: 0,
  163. duanluo: [],
  164. StListForSearch: [],
  165. from: ''
  166. })
  167. const markDB = ref([]);
  168. const questionData = ref([]);
  169. const progress = reactive({
  170. dlIndex: 0,
  171. dtIndex: 0
  172. })
  173. const dlName = computed(() => {
  174. if (data.StListForSearch && activeSt.value) {
  175. return data.StListForSearch[activeSt.value.onlyNum - 1].paragraphName
  176. } else {
  177. return ''
  178. }
  179. })
  180. watch(() => data.duanluo, (newVal) => {
  181. // 计算已答试题数量
  182. }, {
  183. deep: true
  184. })
  185. const activeSt = computed(() => {
  186. if (questionData.value.length) {
  187. return questionData.value.length && questionData.value[progress.dlIndex].qas[progress.dtIndex];
  188. } else {
  189. return null
  190. }
  191. })
  192. const isFistStId = computed(() => {
  193. if (data.StListForSearch.length) {
  194. return data.StListForSearch[0].stId == activeSt.value.stId
  195. } else {
  196. return false
  197. }
  198. });
  199. const isLastStId = computed(() => {
  200. if (data.StListForSearch.length) {
  201. return data.StListForSearch[data.StListForSearch.length - 1].stId == activeSt.value.stId
  202. } else {
  203. return false
  204. }
  205. });
  206. function handleScoreClose() {
  207. uni.redirectTo({
  208. url: '/pages/client/Kaoshi/list'
  209. })
  210. }
  211. // 考试得分相关 start
  212. function handleScoreConfirm() {
  213. uni.redirectTo({
  214. url: '/pages/client/Score/list'
  215. })
  216. }
  217. // 考试得分相关 end
  218. // 保存相关
  219. function handleSave(showToast) {
  220. if (timer1.value) {
  221. uni.showToast({
  222. title: '请勿连续保存',
  223. icon: 'none'
  224. })
  225. return
  226. }
  227. timer1.value = setTimeout(() => {
  228. clearTimeout(timer1.value);
  229. },10*1000);
  230. console.log(questionData.value)
  231. const result = []
  232. const option = {
  233. force: false,
  234. operId: data.operId,
  235. replyList: []
  236. }
  237. questionData.value.forEach(dl => {
  238. dl.qas.forEach(st => {
  239. const opt = {
  240. stId: st.stId,
  241. reply: st.reply,
  242. }
  243. result.push(opt)
  244. option.replyList.push(opt)
  245. })
  246. })
  247. // 保存试题答案
  248. saveCacheKs(data.operId, {replyList:result, position: {dlIndex:progress.dlIndex, dtIndex: progress.dtIndex}})
  249. // 保存答题进度
  250. ksApi.getClientKsSave(option).then(res => {
  251. if (res.data && showToast) {
  252. uni.showToast({
  253. title: '保存成功',
  254. })
  255. }
  256. })
  257. }
  258. // 交卷相关功能 start
  259. function checkJiaojuan() {
  260. const result = []
  261. let count = 0;
  262. let total = 0;
  263. questionData.value.forEach(dl => {
  264. dl.qas.forEach(st => {
  265. const opt = {
  266. stId: st.stId,
  267. reply: st.reply,
  268. stTypeId: st.stTypeId
  269. }
  270. result.push(opt)
  271. })
  272. })
  273. result.forEach(item => {
  274. total++;
  275. if (item.stTypeId == 1 && !checkDanxuanReply(item)) {
  276. count++;
  277. }
  278. if (item.stTypeId == 2 && !checkDuoxuanReply(item)) {
  279. count++;
  280. }
  281. if (item.stTypeId == 3 && !checkPanduanReply(item)) {
  282. count++;
  283. }
  284. if (item.stTypeId == 4 && !checkTiankongReply(item)) {
  285. count++;
  286. }
  287. })
  288. return {
  289. total,
  290. count,
  291. }
  292. }
  293. function handleJiaojuan() {
  294. const result = checkJiaojuan()
  295. console.log(result)
  296. if (result.count) {
  297. // 提示
  298. answerQrRef.value.showDialog({
  299. answercartsCount: result.count,
  300. answercartsTotal: result.total,
  301. })
  302. } else {
  303. handleSubmit()
  304. }
  305. }
  306. function handleQuerenConfirm() {
  307. handleSubmit()
  308. }
  309. function handleSubmit(force = false) {
  310. const result = {
  311. force,
  312. operId: data.operId,
  313. replyList: []
  314. };
  315. console.log(questionData.value)
  316. questionData.value.forEach(dl => {
  317. dl.qas.forEach(st => {
  318. const opt = {
  319. stId: st.stId,
  320. reply: st.reply
  321. }
  322. result.replyList.push(opt)
  323. })
  324. })
  325. ksApi.getClientKsSubmit(result).then(res => {
  326. if (res.code == 0) {
  327. subScoreRef.value.showDialog(res.data);
  328. // 清空缓存
  329. removeCacheKs(data.operId);
  330. }
  331. })
  332. }
  333. function onTimeUp() {
  334. handleSubmit();
  335. }
  336. // 交卷相关功能 end
  337. // 切屏功能 start
  338. function qiepingToast(count) {
  339. uni.showToast({
  340. title: '请在考试界面操作,注意考试纪律!'
  341. })
  342. }
  343. function forceSubmit() {
  344. // 强制交卷
  345. console.log('强制交卷')
  346. handleSubmit(true)
  347. }
  348. function qpZhuapai() {
  349. // 重新开启抓拍
  350. zhuapaiRef.value && zhuapaiRef.value.showVideoBtn()
  351. }
  352. // 切屏功能 end
  353. // 摄像头抓拍相关功能 start
  354. function zpSuccess() {}
  355. function zpError() {
  356. uni.showToast({
  357. title: '摄像头唤起异常'
  358. })
  359. uni.redirectTo({
  360. url: '/pages/client/Kaoshi/list'
  361. })
  362. }
  363. // 摄像头抓拍相关功能 end
  364. // 摄像头确认相关功能 start
  365. function zpConfirmSuccess() {
  366. initKaoshi();
  367. }
  368. function zpConfirmError() {
  369. uni.showToast({
  370. title: '摄像头唤起异常'
  371. })
  372. uni.redirectTo({
  373. url: '/pages/client/Kaoshi/list'
  374. })
  375. }
  376. function zpConfirmCancel() {
  377. uni.redirectTo({
  378. url: '/pages/client/Kaoshi/list'
  379. })
  380. }
  381. // 摄像头确认相关功能 end
  382. function getQaClass(qa) {
  383. if (qa.marked && qa.marked === true) {
  384. return 'paragraph-qa-block-mark';
  385. } else {
  386. if (qa.stTypeId == 1) {
  387. if (checkDanxuanReply(qa)) {
  388. return 'paragraph-qa-block-done';
  389. } else {
  390. return 'paragraph-qa-block-init';
  391. }
  392. } else if (qa.stTypeId == 2) {
  393. if (checkDuoxuanReply(qa)) {
  394. return 'paragraph-qa-block-done';
  395. } else {
  396. return 'paragraph-qa-block-init';
  397. }
  398. } else if (qa.stTypeId == 3) {
  399. if (checkPanduanReply(qa)) {
  400. return 'paragraph-qa-block-done';
  401. } else {
  402. return 'paragraph-qa-block-init';
  403. }
  404. } else if (qa.stTypeId == 4) {
  405. if (checkTiankongReply(qa)) {
  406. return 'paragraph-qa-block-done';
  407. } else {
  408. return 'paragraph-qa-block-init';
  409. }
  410. }
  411. }
  412. }
  413. function skipQuestion(dlIndex, dtIndex) {
  414. progress.dlIndex = dlIndex;
  415. progress.dtIndex = dtIndex;
  416. handlePopupBack()
  417. }
  418. function answerCardItemClick(qa) {
  419. const actQa = data.StListForSearch.find(item => item.stId == qa.stId);
  420. skipQuestion(actQa.dlIndex, actQa.dtIndex)
  421. }
  422. function handleBack() {
  423. if (data.from == 'shouye') {
  424. uni.redirectTo({
  425. url: "/pages/client/ShouYe/shouye"
  426. })
  427. } else if (data.from == 'kaoshiList') {
  428. uni.redirectTo({
  429. url: "/pages/client/Kaoshi/list"
  430. })
  431. } else {
  432. uni.redirectTo({
  433. url: "/pages/client/ShouYe/shouye"
  434. })
  435. }
  436. }
  437. function showAnswerCard() {
  438. popupRef.value.open('bottom')
  439. }
  440. function handlePopupBack() {
  441. popupRef.value.close()
  442. }
  443. function handlePrev() {
  444. const qa = data.StListForSearch.find(item => item.stId == activeSt.value.stId);
  445. const index = qa.onlyNum - 1;
  446. if (index > 0) {
  447. const result = data.StListForSearch[index - 1];
  448. progress.dlIndex = result.dlIndex;
  449. progress.dtIndex = result.dtIndex
  450. }
  451. }
  452. function handleNext() {
  453. const qa = data.StListForSearch.find(item => item.stId == activeSt.value.stId);
  454. const index = qa.onlyNum - 1;
  455. if (index < data.StListForSearch.length) {
  456. const result = data.StListForSearch[index + 1];
  457. progress.dlIndex = result.dlIndex;
  458. progress.dtIndex = result.dtIndex
  459. }
  460. }
  461. function formatDuanluoList(dlData) {
  462. let uIndex = 0; // 试题onlyNum
  463. let iDuanluo = 0; // 段落onlyNum
  464. let result = [];
  465. for (const duanluo of data.duanluo) {
  466. let paragraph = {
  467. qas: [],
  468. };
  469. paragraph.name = duanluo.name;
  470. let iQa = 0; // 当前试题序号
  471. let order = 0; // 当前题型中第几题
  472. for (const iDanxuan of duanluo.danxuan) {
  473. iDanxuan.type = 'danxuan';
  474. iDanxuan.marked = data.biaoji[iDanxuan.stId] ? true: false;
  475. iDanxuan.onlyNum = uIndex + 1;
  476. iDanxuan.order = order;
  477. iDanxuan.iQa = iQa;
  478. paragraph.qas.push(iDanxuan);
  479. uIndex++;
  480. order++;
  481. iQa++;
  482. data.StListForSearch.push({
  483. stId: iDanxuan.stId,
  484. paragraphName: paragraph.name,
  485. dlIndex: iDuanluo,
  486. dtIndex: iDanxuan.iQa,
  487. onlyNum: iDanxuan.onlyNum
  488. })
  489. }
  490. order = 0;
  491. for (const iDuoxuan of duanluo.duoxuan) {
  492. iDuoxuan.type = 'duoxuan';
  493. iDuoxuan.marked = data.biaoji[iDuoxuan.stId] ? true: false;
  494. iDuoxuan.onlyNum = uIndex + 1;
  495. iDuoxuan.order = order;
  496. paragraph.qas.push(iDuoxuan);
  497. iDuoxuan.iQa = iQa;
  498. iDuoxuan.reply = [];
  499. uIndex++;
  500. order++;
  501. iQa++;
  502. data.StListForSearch.push({
  503. stId: iDuoxuan.stId,
  504. paragraphName: paragraph.name,
  505. dlIndex: iDuanluo,
  506. dtIndex: iDuoxuan.iQa,
  507. onlyNum: iDuoxuan.onlyNum
  508. })
  509. }
  510. order = 0;
  511. for (const iPanduan of duanluo.panduan) {
  512. iPanduan.type = 'panduan';
  513. iPanduan.marked = data.biaoji[iPanduan.stId] ? true: false;
  514. iPanduan.onlyNum = uIndex + 1;
  515. iPanduan.order = order;
  516. paragraph.qas.push(iPanduan);
  517. iPanduan.iQa = iQa;
  518. uIndex++;
  519. order++;
  520. iQa++;
  521. data.StListForSearch.push({
  522. stId: iPanduan.stId,
  523. paragraphName: paragraph.name,
  524. dlIndex: iDuanluo,
  525. dtIndex: iPanduan.iQa,
  526. onlyNum: iPanduan.onlyNum
  527. })
  528. }
  529. order = 0;
  530. for (const iTiankong of duanluo.tiankong) {
  531. iTiankong.type = 'tiankong';
  532. iTiankong.marked = data.biaoji[iTiankong.stId] ? true: false;
  533. iTiankong.onlyNum = uIndex + 1;
  534. iTiankong.order = order;
  535. paragraph.qas.push(iTiankong);
  536. iTiankong.iQa = iQa;
  537. iTiankong.reply = new Array(iTiankong.count).fill('');;
  538. uIndex++;
  539. order++;
  540. iQa++;
  541. data.StListForSearch.push({
  542. stId: iTiankong.stId,
  543. paragraphName: paragraph.name,
  544. dlIndex: iDuanluo,
  545. dtIndex: iTiankong.iQa,
  546. onlyNum: iTiankong.onlyNum
  547. })
  548. }
  549. iDuanluo++;
  550. questionData.value.push(paragraph)
  551. console.log('1', questionData.value)
  552. console.log('2', data.StListForSearch)
  553. }
  554. }
  555. function handleBiaoji() {
  556. activeSt.value.marked = !activeSt.value.marked;
  557. data.biaoji.value[activeSt.value.stId] = activeSt.value.marked
  558. ksApi.getClientKaoshiBiaoji({
  559. operId: data.operId,
  560. biaoji: JSON.stringify(data.biaoji)
  561. }).catch(err => {
  562. uni.redirectTo({
  563. url: '/pages/client/Kaoshi/list'
  564. })
  565. })
  566. }
  567. function formatKaoshiData() {
  568. const historyData = getCacheKs(data.operId);
  569. if (historyData) {
  570. const { replyList ,position } = historyData;
  571. if (replyList) {
  572. questionData.value.forEach(dl => {
  573. dl.qas.forEach(st => {
  574. st.reply = replyList.find(item => item.stId == st.stId).reply
  575. })
  576. })
  577. }
  578. if (position) {
  579. progress.dlIndex = position.dlIndex;
  580. progress.dtIndex = position.dtIndex;
  581. }
  582. }
  583. }
  584. // 摄像头确认初始化
  585. function initBeforKaoshi() {
  586. console.log(zhuapaiConfirmRef.value)
  587. zhuapaiConfirmRef.value.showDialog()
  588. }
  589. function initKaoshi() {
  590. ksApi.getClientKsStart({
  591. ksId: data.ksId
  592. }).then(res => {
  593. const {
  594. ksId,
  595. operId,
  596. ksName,
  597. stTotal,
  598. stScore,
  599. biaoji,
  600. endSecond,
  601. pageSize,
  602. toggleScreenFlag,
  603. toggleScreenSecond,
  604. zhuapai,
  605. duanluoList
  606. } = res.data;
  607. data.ksId = ksId;
  608. data.operId = operId;
  609. data.ksName = ksName;
  610. data.stTotal = stTotal;
  611. data.stScore = stScore;
  612. data.biaoji = biaoji ? JSON.parse(biaoji): {};
  613. data.endSecond = endSecond;
  614. data.pageSize = pageSize;
  615. data.toggleScreenFlag = toggleScreenFlag;
  616. data.toggleScreenSecond = toggleScreenSecond;
  617. data.zhuapai = zhuapai;
  618. data.duanluo = duanluoList;
  619. formatDuanluoList(data.duanluo);
  620. // 设置缓存
  621. formatKaoshiData();
  622. // 设置抓拍监听
  623. zhuapaiRef.value.init({
  624. zhuapai: zhuapai
  625. });
  626. // 设置切屏监听
  627. qiepingRef.value.init({
  628. zhuapaiFlag: true,
  629. toggleScreenFlag: toggleScreenFlag,
  630. toggleScreenSecond: toggleScreenSecond,
  631. ksId: data.ksId
  632. })
  633. uni.setNavigationBarTitle({
  634. title: data.ksName
  635. });
  636. startCountDown.value = true;
  637. })
  638. }
  639. </script>