wangxy hai 2 meses
pai
achega
33d1cd18ea
Modificáronse 1 ficheiros con 9 adicións e 4 borrados
  1. 9 4
      pages/client/Kaoshi/exam.vue

+ 9 - 4
pages/client/Kaoshi/exam.vue

@@ -93,6 +93,9 @@
 		<answerQueren ref="answerQrRef" @confirm="handleQuerenConfirm"></answerQueren>
 		<!-- 考试得分 -->
 		<submitScoreVue ref="subScoreRef" @confirm="handleScoreConfirm" @close="handleScoreClose"></submitScoreVue>
+		
+		<!-- 切屏确认弹窗 -->
+		<qiepingDlVue ref="qiepingDlRef" :content="messageContent" title="注意" okBtn="知道了"></qiepingDlVue>
 	</view>
 </template>
 
@@ -123,6 +126,7 @@
 	import {
 		useKaoShiCache
 	} from "./examTools"
+	import qiepingDlVue from "@/components/dialog/qiepingDl.vue";
 
 	const {
 		checkDanxuanReply,
@@ -158,7 +162,9 @@
 	const zhuapaiConfirmRef = ref(null)
 	const answerQrRef = ref(null);
 	const startCountDown = ref(false);
-	const subScoreRef = ref(null)
+	const subScoreRef = ref(null);
+	const messageContent = ref('');
+	const qiepingDlRef = ref(null);
 	
 	const timer1 = ref(null);
 
@@ -378,9 +384,8 @@
 
 	// 切屏功能 start
 	function qiepingToast(count) {
-		uni.showToast({
-			title: '请在考试界面操作,注意考试纪律!'
-		})
+		messageContent.value = `已离开${count}次。${data.toggleScreenFlag}次将自动交卷!`
+		qiepingDlRef.value.handleShow()
 	}
 
 	function forceSubmit() {