|
@@ -7,8 +7,8 @@
|
|
|
<view v-if="activeSt" class="title-types">{{dlName}}</view>
|
|
<view v-if="activeSt" class="title-types">{{dlName}}</view>
|
|
|
<!-- 倒计时 -->
|
|
<!-- 倒计时 -->
|
|
|
<view v-if="!!data.endSecond">
|
|
<view v-if="!!data.endSecond">
|
|
|
- <uni-countdown :show-day="false" :showHour="true" :showMinute="true" :second="data.endSecond" @timeup="onTimeUp"
|
|
|
|
|
- :start="startCountDown"></uni-countdown>
|
|
|
|
|
|
|
+ <uni-countdown :show-day="false" :showHour="true" :showMinute="true" :second="data.endSecond"
|
|
|
|
|
+ @timeup="onTimeUp" :start="startCountDown"></uni-countdown>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -41,7 +41,8 @@
|
|
|
<button class="phone-green-btn bj-btn" hover-class="none" type="default" size="mini"
|
|
<button class="phone-green-btn bj-btn" hover-class="none" type="default" size="mini"
|
|
|
@click="handleBiaoji">{{activeSt && activeSt.marked ? '取标':'标记'}}</button>
|
|
@click="handleBiaoji">{{activeSt && activeSt.marked ? '取标':'标记'}}</button>
|
|
|
<view @click="showAnswerCard" class="shiti-num-box">
|
|
<view @click="showAnswerCard" class="shiti-num-box">
|
|
|
- <icon class="shiti-num-icon" :style="{ backgroundImage: 'url(' + data.imgsArr.shitiNumIcon + ')' }"></icon>
|
|
|
|
|
|
|
+ <icon class="shiti-num-icon" :style="{ backgroundImage: 'url(' + data.imgsArr.shitiNumIcon + ')' }">
|
|
|
|
|
+ </icon>
|
|
|
<text
|
|
<text
|
|
|
class="active-num">{{activeSt ? activeSt.onlyNum: 0}}</text>/<text>{{data.StListForSearch.length}}</text>
|
|
class="active-num">{{activeSt ? activeSt.onlyNum: 0}}</text>/<text>{{data.StListForSearch.length}}</text>
|
|
|
</view>
|
|
</view>
|
|
@@ -61,7 +62,7 @@
|
|
|
<uni-popup ref="popupRef" background-color="#fff" :animation="false" :is-mask-click="false" :mask-click="false">
|
|
<uni-popup ref="popupRef" background-color="#fff" :animation="false" :is-mask-click="false" :mask-click="false">
|
|
|
<view class="answer-card-popup">
|
|
<view class="answer-card-popup">
|
|
|
<customNavbarVue title="答题卡" :show-back-btn="true" @back="handlePopupBack"></customNavbarVue>
|
|
<customNavbarVue title="答题卡" :show-back-btn="true" @back="handlePopupBack"></customNavbarVue>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<view class="card-content-box">
|
|
<view class="card-content-box">
|
|
|
<view class="answer-card-content" v-for="(paragraph,paragraphIndex) in questionData"
|
|
<view class="answer-card-content" v-for="(paragraph,paragraphIndex) in questionData"
|
|
|
:key="paragraphIndex">
|
|
:key="paragraphIndex">
|
|
@@ -78,14 +79,15 @@
|
|
|
<!-- 摄像头 -->
|
|
<!-- 摄像头 -->
|
|
|
<template v-if="data.zhuapai && data.zhuapai > 0">
|
|
<template v-if="data.zhuapai && data.zhuapai > 0">
|
|
|
<!-- 抓拍 -->
|
|
<!-- 抓拍 -->
|
|
|
- <zhuapaiVue ref="zhuapaiRef" @error="zpError" @success="zpSuccess" key="2" @progress="onProgress"></zhuapaiVue>
|
|
|
|
|
|
|
+ <zhuapaiVue ref="zhuapaiRef" @error="zpError" @success="zpSuccess" key="2" @progress="onProgress">
|
|
|
|
|
+ </zhuapaiVue>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<!-- 交卷确认 -->
|
|
<!-- 交卷确认 -->
|
|
|
<answerQueren ref="answerQrRef" @confirm="handleQuerenConfirm"></answerQueren>
|
|
<answerQueren ref="answerQrRef" @confirm="handleQuerenConfirm"></answerQueren>
|
|
|
<!-- 考试得分 -->
|
|
<!-- 考试得分 -->
|
|
|
<submitScoreVue ref="subScoreRef" @confirm="handleScoreConfirm" @close="handleScoreClose"></submitScoreVue>
|
|
<submitScoreVue ref="subScoreRef" @confirm="handleScoreConfirm" @close="handleScoreClose"></submitScoreVue>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<!-- 切屏确认弹窗 -->
|
|
<!-- 切屏确认弹窗 -->
|
|
|
<qiepingDlVue ref="qiepingDlRef" :content="messageContent" title="注意" okBtn="知道了"></qiepingDlVue>
|
|
<qiepingDlVue ref="qiepingDlRef" :content="messageContent" title="注意" okBtn="知道了"></qiepingDlVue>
|
|
|
</view>
|
|
</view>
|
|
@@ -93,14 +95,22 @@
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
|
import cacheManager from '@/utils/cacheManager.js';
|
|
import cacheManager from '@/utils/cacheManager.js';
|
|
|
- import {ref,reactive,computed,watch,nextTick} from "vue";
|
|
|
|
|
|
|
+ import {
|
|
|
|
|
+ ref,
|
|
|
|
|
+ reactive,
|
|
|
|
|
+ computed,
|
|
|
|
|
+ watch,
|
|
|
|
|
+ nextTick
|
|
|
|
|
+ } from "vue";
|
|
|
import zhuapaiVue from "@/components/zhuapaiConfirm/zhuapai.vue";
|
|
import zhuapaiVue from "@/components/zhuapaiConfirm/zhuapai.vue";
|
|
|
import zhuapaiConfirm from "@/components/zhuapaiConfirm/index.vue";
|
|
import zhuapaiConfirm from "@/components/zhuapaiConfirm/index.vue";
|
|
|
import answerQueren from "@/components/zhuapaiConfirm/answerQueren.vue";
|
|
import answerQueren from "@/components/zhuapaiConfirm/answerQueren.vue";
|
|
|
import submitScoreVue from "@/components/zhuapaiConfirm/submitScore.vue";
|
|
import submitScoreVue from "@/components/zhuapaiConfirm/submitScore.vue";
|
|
|
import customNavbarVue from "@/components/custom-navbar/custom-navbar.vue";
|
|
import customNavbarVue from "@/components/custom-navbar/custom-navbar.vue";
|
|
|
import {
|
|
import {
|
|
|
- onLoad, onShow, onHide
|
|
|
|
|
|
|
+ onLoad,
|
|
|
|
|
+ onShow,
|
|
|
|
|
+ onHide
|
|
|
} from "@dcloudio/uni-app";
|
|
} from "@dcloudio/uni-app";
|
|
|
import * as ksApi from "@/api/kaoshi.js"
|
|
import * as ksApi from "@/api/kaoshi.js"
|
|
|
import danxuan from "@/components/questions/danxuan.vue";
|
|
import danxuan from "@/components/questions/danxuan.vue";
|
|
@@ -114,7 +124,9 @@
|
|
|
useKaoShiCache
|
|
useKaoShiCache
|
|
|
} from "./examTools"
|
|
} from "./examTools"
|
|
|
import qiepingDlVue from "@/components/dialog/qiepingDl.vue";
|
|
import qiepingDlVue from "@/components/dialog/qiepingDl.vue";
|
|
|
- import {useQiePing} from "@/utils/useQieping.js"
|
|
|
|
|
|
|
+ import {
|
|
|
|
|
+ useQiePing
|
|
|
|
|
+ } from "@/utils/useQieping.js"
|
|
|
|
|
|
|
|
const {
|
|
const {
|
|
|
checkDanxuanReply,
|
|
checkDanxuanReply,
|
|
@@ -128,8 +140,10 @@
|
|
|
getCacheKs,
|
|
getCacheKs,
|
|
|
removeCacheKs
|
|
removeCacheKs
|
|
|
} = useKaoShiCache();
|
|
} = useKaoShiCache();
|
|
|
-
|
|
|
|
|
- const { init: qiepingInit } = useQiePing();
|
|
|
|
|
|
|
+
|
|
|
|
|
+ const {
|
|
|
|
|
+ init: qiepingInit
|
|
|
|
|
+ } = useQiePing();
|
|
|
|
|
|
|
|
onLoad((option) => {
|
|
onLoad((option) => {
|
|
|
data.ksId = option.ksId;
|
|
data.ksId = option.ksId;
|
|
@@ -138,9 +152,9 @@
|
|
|
data.from = option.from;
|
|
data.from = option.from;
|
|
|
data.imgsArr.shitiNumIcon = cacheManager.get('projectImg').shiti_num_icon;
|
|
data.imgsArr.shitiNumIcon = cacheManager.get('projectImg').shiti_num_icon;
|
|
|
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- initKaoshi();
|
|
|
|
|
- }, 800)
|
|
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ initKaoshi();
|
|
|
|
|
+ }, 1000)
|
|
|
|
|
|
|
|
/* if (data.zhuapai && data.zhuapai != 0) {
|
|
/* if (data.zhuapai && data.zhuapai != 0) {
|
|
|
// 考试前确认摄像头
|
|
// 考试前确认摄像头
|
|
@@ -152,7 +166,7 @@
|
|
|
initKaoshi();
|
|
initKaoshi();
|
|
|
} */
|
|
} */
|
|
|
})
|
|
})
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
const popupRef = ref(null)
|
|
const popupRef = ref(null)
|
|
|
const zhuapaiRef = ref(null)
|
|
const zhuapaiRef = ref(null)
|
|
|
const qiepingRef = ref(null)
|
|
const qiepingRef = ref(null)
|
|
@@ -162,7 +176,7 @@
|
|
|
const subScoreRef = ref(null);
|
|
const subScoreRef = ref(null);
|
|
|
const messageContent = ref('');
|
|
const messageContent = ref('');
|
|
|
const qiepingDlRef = ref(null);
|
|
const qiepingDlRef = ref(null);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
const timer1 = ref(null);
|
|
const timer1 = ref(null);
|
|
|
|
|
|
|
|
const data = reactive({
|
|
const data = reactive({
|
|
@@ -186,7 +200,7 @@
|
|
|
shitiNumIcon: '',
|
|
shitiNumIcon: '',
|
|
|
},
|
|
},
|
|
|
})
|
|
})
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
const markDB = ref([]);
|
|
const markDB = ref([]);
|
|
|
|
|
|
|
|
const questionData = ref([]);
|
|
const questionData = ref([]);
|
|
@@ -232,21 +246,21 @@
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
function handleScoreClose() {
|
|
function handleScoreClose() {
|
|
|
handleBack()
|
|
handleBack()
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 考试得分相关 start
|
|
// 考试得分相关 start
|
|
|
function handleScoreConfirm() {
|
|
function handleScoreConfirm() {
|
|
|
uni.redirectTo({
|
|
uni.redirectTo({
|
|
|
url: `/pages/client/Chengji/ksScoreShijuan?hisId=${data.hisId}&from=kaoshi`
|
|
url: `/pages/client/Chengji/ksScoreShijuan?hisId=${data.hisId}&from=kaoshi`
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 考试得分相关 end
|
|
// 考试得分相关 end
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 保存相关
|
|
// 保存相关
|
|
|
function handleSave(showToast) {
|
|
function handleSave(showToast) {
|
|
|
if (timer1.value) {
|
|
if (timer1.value) {
|
|
@@ -254,13 +268,13 @@
|
|
|
title: '请勿连续保存',
|
|
title: '请勿连续保存',
|
|
|
icon: 'none'
|
|
icon: 'none'
|
|
|
})
|
|
})
|
|
|
- return
|
|
|
|
|
|
|
+ return
|
|
|
}
|
|
}
|
|
|
timer1.value = setTimeout(() => {
|
|
timer1.value = setTimeout(() => {
|
|
|
clearTimeout(timer1.value);
|
|
clearTimeout(timer1.value);
|
|
|
- },10*1000);
|
|
|
|
|
|
|
+ }, 10 * 1000);
|
|
|
console.log(questionData.value)
|
|
console.log(questionData.value)
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
const result = []
|
|
const result = []
|
|
|
const option = {
|
|
const option = {
|
|
|
force: false,
|
|
force: false,
|
|
@@ -278,7 +292,13 @@
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
// 保存试题答案
|
|
// 保存试题答案
|
|
|
- saveCacheKs(data.operId, {replyList:result, position: {dlIndex:progress.dlIndex, dtIndex: progress.dtIndex}})
|
|
|
|
|
|
|
+ saveCacheKs(data.operId, {
|
|
|
|
|
+ replyList: result,
|
|
|
|
|
+ position: {
|
|
|
|
|
+ dlIndex: progress.dlIndex,
|
|
|
|
|
+ dtIndex: progress.dtIndex
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
// 保存答题进度
|
|
// 保存答题进度
|
|
|
ksApi.getClientKsSave(option).then(res => {
|
|
ksApi.getClientKsSave(option).then(res => {
|
|
|
if (res.data && showToast) {
|
|
if (res.data && showToast) {
|
|
@@ -344,7 +364,7 @@
|
|
|
function handleQuerenConfirm() {
|
|
function handleQuerenConfirm() {
|
|
|
handleSubmit()
|
|
handleSubmit()
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
function handleSubmit(force = false) {
|
|
function handleSubmit(force = false) {
|
|
|
const result = {
|
|
const result = {
|
|
|
force,
|
|
force,
|
|
@@ -352,11 +372,11 @@
|
|
|
replyList: []
|
|
replyList: []
|
|
|
};
|
|
};
|
|
|
console.log(questionData.value)
|
|
console.log(questionData.value)
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// uni.showLoading({
|
|
// uni.showLoading({
|
|
|
// title: '提交中'
|
|
// title: '提交中'
|
|
|
// })
|
|
// })
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
questionData.value.forEach(dl => {
|
|
questionData.value.forEach(dl => {
|
|
|
dl.qas.forEach(st => {
|
|
dl.qas.forEach(st => {
|
|
|
const opt = {
|
|
const opt = {
|
|
@@ -366,7 +386,7 @@
|
|
|
result.replyList.push(opt)
|
|
result.replyList.push(opt)
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
ksApi.getClientKsSubmit(result).then(res => {
|
|
ksApi.getClientKsSubmit(result).then(res => {
|
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
|
subScoreRef.value.showDialog(res.data);
|
|
subScoreRef.value.showDialog(res.data);
|
|
@@ -378,7 +398,7 @@
|
|
|
// uni.hideLoading()
|
|
// uni.hideLoading()
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
function onTimeUp() {
|
|
function onTimeUp() {
|
|
|
handleSubmit();
|
|
handleSubmit();
|
|
|
}
|
|
}
|
|
@@ -416,8 +436,8 @@
|
|
|
})
|
|
})
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
handleBack()
|
|
handleBack()
|
|
|
- },3000)
|
|
|
|
|
-
|
|
|
|
|
|
|
+ }, 3000)
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 摄像头抓拍相关功能 end
|
|
// 摄像头抓拍相关功能 end
|
|
@@ -429,11 +449,12 @@
|
|
|
duration: 3000,
|
|
duration: 3000,
|
|
|
mask: true // 防止触摸穿透
|
|
mask: true // 防止触摸穿透
|
|
|
})
|
|
})
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
handleBack();
|
|
handleBack();
|
|
|
- },3000)
|
|
|
|
|
|
|
+ }, 3000)
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
function zpConfirmSuccess() {
|
|
function zpConfirmSuccess() {
|
|
|
initKaoshi();
|
|
initKaoshi();
|
|
|
}
|
|
}
|
|
@@ -493,15 +514,15 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function handleBack() {
|
|
function handleBack() {
|
|
|
-
|
|
|
|
|
- const pages = getCurrentPages();
|
|
|
|
|
- if (pages.length>1) {
|
|
|
|
|
- uni.navigateBack()
|
|
|
|
|
- } else {
|
|
|
|
|
- history.back();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+ const pages = getCurrentPages();
|
|
|
|
|
+ if (pages.length > 1) {
|
|
|
|
|
+ uni.navigateBack()
|
|
|
|
|
+ } else {
|
|
|
|
|
+ history.back();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function showAnswerCard() {
|
|
function showAnswerCard() {
|
|
@@ -547,7 +568,7 @@
|
|
|
let order = 0; // 当前题型中第几题
|
|
let order = 0; // 当前题型中第几题
|
|
|
for (const iDanxuan of duanluo.danxuan) {
|
|
for (const iDanxuan of duanluo.danxuan) {
|
|
|
iDanxuan.type = 'danxuan';
|
|
iDanxuan.type = 'danxuan';
|
|
|
- iDanxuan.marked = data.biaoji[iDanxuan.stId] ? true: false;
|
|
|
|
|
|
|
+ iDanxuan.marked = data.biaoji[iDanxuan.stId] ? true : false;
|
|
|
iDanxuan.onlyNum = uIndex + 1;
|
|
iDanxuan.onlyNum = uIndex + 1;
|
|
|
iDanxuan.order = order;
|
|
iDanxuan.order = order;
|
|
|
iDanxuan.iQa = iQa;
|
|
iDanxuan.iQa = iQa;
|
|
@@ -567,7 +588,7 @@
|
|
|
order = 0;
|
|
order = 0;
|
|
|
for (const iDuoxuan of duanluo.duoxuan) {
|
|
for (const iDuoxuan of duanluo.duoxuan) {
|
|
|
iDuoxuan.type = 'duoxuan';
|
|
iDuoxuan.type = 'duoxuan';
|
|
|
- iDuoxuan.marked = data.biaoji[iDuoxuan.stId] ? true: false;
|
|
|
|
|
|
|
+ iDuoxuan.marked = data.biaoji[iDuoxuan.stId] ? true : false;
|
|
|
iDuoxuan.onlyNum = uIndex + 1;
|
|
iDuoxuan.onlyNum = uIndex + 1;
|
|
|
iDuoxuan.order = order;
|
|
iDuoxuan.order = order;
|
|
|
paragraph.qas.push(iDuoxuan);
|
|
paragraph.qas.push(iDuoxuan);
|
|
@@ -588,7 +609,7 @@
|
|
|
order = 0;
|
|
order = 0;
|
|
|
for (const iPanduan of duanluo.panduan) {
|
|
for (const iPanduan of duanluo.panduan) {
|
|
|
iPanduan.type = 'panduan';
|
|
iPanduan.type = 'panduan';
|
|
|
- iPanduan.marked = data.biaoji[iPanduan.stId] ? true: false;
|
|
|
|
|
|
|
+ iPanduan.marked = data.biaoji[iPanduan.stId] ? true : false;
|
|
|
iPanduan.onlyNum = uIndex + 1;
|
|
iPanduan.onlyNum = uIndex + 1;
|
|
|
iPanduan.order = order;
|
|
iPanduan.order = order;
|
|
|
paragraph.qas.push(iPanduan);
|
|
paragraph.qas.push(iPanduan);
|
|
@@ -608,7 +629,7 @@
|
|
|
order = 0;
|
|
order = 0;
|
|
|
for (const iTiankong of duanluo.tiankong) {
|
|
for (const iTiankong of duanluo.tiankong) {
|
|
|
iTiankong.type = 'tiankong';
|
|
iTiankong.type = 'tiankong';
|
|
|
- iTiankong.marked = data.biaoji[iTiankong.stId] ? true: false;
|
|
|
|
|
|
|
+ iTiankong.marked = data.biaoji[iTiankong.stId] ? true : false;
|
|
|
iTiankong.onlyNum = uIndex + 1;
|
|
iTiankong.onlyNum = uIndex + 1;
|
|
|
iTiankong.order = order;
|
|
iTiankong.order = order;
|
|
|
paragraph.qas.push(iTiankong);
|
|
paragraph.qas.push(iTiankong);
|
|
@@ -640,7 +661,7 @@
|
|
|
operId: data.operId,
|
|
operId: data.operId,
|
|
|
biaoji: JSON.stringify(data.biaoji)
|
|
biaoji: JSON.stringify(data.biaoji)
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
- console.log(22222,err)
|
|
|
|
|
|
|
+ console.log(22222, err)
|
|
|
handleBack()
|
|
handleBack()
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
@@ -648,7 +669,10 @@
|
|
|
function formatKaoshiData() {
|
|
function formatKaoshiData() {
|
|
|
const historyData = getCacheKs(data.operId);
|
|
const historyData = getCacheKs(data.operId);
|
|
|
if (historyData) {
|
|
if (historyData) {
|
|
|
- const { replyList ,position } = historyData;
|
|
|
|
|
|
|
+ const {
|
|
|
|
|
+ replyList,
|
|
|
|
|
+ position
|
|
|
|
|
+ } = historyData;
|
|
|
if (replyList) {
|
|
if (replyList) {
|
|
|
questionData.value.forEach(dl => {
|
|
questionData.value.forEach(dl => {
|
|
|
dl.qas.forEach(st => {
|
|
dl.qas.forEach(st => {
|
|
@@ -660,7 +684,7 @@
|
|
|
progress.dlIndex = position.dlIndex;
|
|
progress.dlIndex = position.dlIndex;
|
|
|
progress.dtIndex = position.dtIndex;
|
|
progress.dtIndex = position.dtIndex;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -695,7 +719,7 @@
|
|
|
data.ksName = ksName;
|
|
data.ksName = ksName;
|
|
|
data.stTotal = stTotal;
|
|
data.stTotal = stTotal;
|
|
|
data.stScore = stScore;
|
|
data.stScore = stScore;
|
|
|
- data.biaoji = biaoji ? JSON.parse(biaoji): {};
|
|
|
|
|
|
|
+ data.biaoji = biaoji ? JSON.parse(biaoji) : {};
|
|
|
data.endSecond = endSecond;
|
|
data.endSecond = endSecond;
|
|
|
data.pageSize = pageSize;
|
|
data.pageSize = pageSize;
|
|
|
data.toggleScreenFlag = toggleScreenFlag;
|
|
data.toggleScreenFlag = toggleScreenFlag;
|
|
@@ -707,32 +731,30 @@
|
|
|
formatKaoshiData();
|
|
formatKaoshiData();
|
|
|
// 设置抓拍监听
|
|
// 设置抓拍监听
|
|
|
|
|
|
|
|
- if (data.zhuapai && data.zhuapai > 0) {
|
|
|
|
|
- console.log('ccccc', zhuapaiRef.value)
|
|
|
|
|
- zhuapaiRef.value.init({
|
|
|
|
|
- zhuapai: zhuapai,
|
|
|
|
|
- operId: operId
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- // 设置切屏
|
|
|
|
|
- qiepingInit({
|
|
|
|
|
- zhuapaiFlag: !!data.zhuapai,
|
|
|
|
|
- toggleScreenFlag: toggleScreenFlag,
|
|
|
|
|
- toggleScreenSecond: toggleScreenSecond,
|
|
|
|
|
- ksId: data.ksId
|
|
|
|
|
- }, {
|
|
|
|
|
- zhuapai:qpZhuapai,
|
|
|
|
|
- forceSubmit,
|
|
|
|
|
- qiepingToast
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ if (data.zhuapai && data.zhuapai > 0) {
|
|
|
|
|
+ zhuapaiRef.value.init({
|
|
|
|
|
+ zhuapai: zhuapai,
|
|
|
|
|
+ operId: operId
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ // 设置切屏
|
|
|
|
|
+ qiepingInit({
|
|
|
|
|
+ zhuapaiFlag: !!data.zhuapai,
|
|
|
|
|
+ toggleScreenFlag: toggleScreenFlag,
|
|
|
|
|
+ toggleScreenSecond: toggleScreenSecond,
|
|
|
|
|
+ ksId: data.ksId
|
|
|
|
|
+ }, {
|
|
|
|
|
+ zhuapai: qpZhuapai,
|
|
|
|
|
+ forceSubmit,
|
|
|
|
|
+ qiepingToast
|
|
|
|
|
+ })
|
|
|
|
|
|
|
|
uni.setNavigationBarTitle({
|
|
uni.setNavigationBarTitle({
|
|
|
title: data.ksName
|
|
title: data.ksName
|
|
|
});
|
|
});
|
|
|
startCountDown.value = true;
|
|
startCountDown.value = true;
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
- console.log(33333,err)
|
|
|
|
|
- handleBack()
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ handleBack()
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|