From d196e97a2ff77767268d3e55f07c37c8ce06258c Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 02 Mar 2022 15:56:16 +0800
Subject: [PATCH] 考试相关添加,页面等

---
 pages/exam/startexam.vue |   71 +++++------------------------------
 1 files changed, 11 insertions(+), 60 deletions(-)

diff --git a/pages/exam/startexam.vue b/pages/exam/startexam.vue
index 2f669b1..741e7ad 100644
--- a/pages/exam/startexam.vue
+++ b/pages/exam/startexam.vue
@@ -13,15 +13,13 @@
 		<view class="tipsArea">
 			<ul>
 				<li>1、答题时要注意“剩余时间”提示,当剩余时间为0时,系统将自动交卷。</li>
-				<li>2、答题完成后,点击“我要交卷”按钮进行交卷,否则考试无效。</li>
-				<li>3、如果你准备好了,就点击“进入考场”吧,预祝取得好的成绩。</li>
+				<li>2、答题完成后,点击“交卷”按钮进行交卷,否则考试无效。</li>
+				<li>3、答题时需注意模拟考试不能修改答案。</li>
+				<li>4、如果你准备好了,就点击“进入考场”吧,预祝取得好的成绩。</li>
 			</ul>
 		</view>
 		<view class="btnArea">
-			<!-- checkFace==1 不需要人脸识别,checkFace==2 需要人脸识别 -->
-			<u-button v-if="needCheckFace==2 && !passFace " class="btnClass" type="primary" :ripple="true"
-				shape="circle" @click="checkFace">开始人脸识别</u-button>
-			<u-button v-if="needCheckFace==1 || passFace" class="btnClass" type="success" :ripple="true" shape="circle"
+			<u-button class="btnClass" type="success" :ripple="true" shape="circle"
 				@click="enterExam">进入考试</u-button>
 			<u-button class="btnClass" type="error" :ripple="true" shape="circle" @click="exitExam">退出考试</u-button>
 		</view>
@@ -33,86 +31,46 @@
 	export default {
 		data() {
 			return {
-				examItem: {},
-				examNote: `
-				1、答题时要注意“剩余时间”提示,当剩余时间为0时,系统将自动交卷。
-				2、答题完成后,点击“我要交卷”按钮进行交卷,否则考试无效。
-				3、如果你准备好了,就点击“进入考场”吧,预祝取得好的成绩。`,
-				passFace: false,
-
+				examItem: {}
 			}
 		},
 		methods: {
 			enterExam() {
 				// 进入考试
-				// uni.navigateTo({
-				// 	url: '/pages/exam/examTextPage'
-				// })
-
 				this.$u.route('/pages/exam/examTextPage', {
 					id: this.examItem.id,
 					examType: 'exam',
 				})
-
 			},
 			exitExam() {
 				// 退出考试
 				uni.navigateBack({
 					delta: 1
 				})
-			},
-			checkFace() {
-				var that = this
-				this.$api.uploadImg2('face')
-					.then(res => {
-						console.log('faceRes', res)
-						if (res.data.indexOf('操作成功') >= 0) {
-							this.passFace = true
-						}
-					})
-			},
+			}
 		},
 		computed: {
-			needCheckFace: function() {
-				// checkFace==1 不需要人脸识别,checkFace==2 需要人脸识别
-				// H5 平台不需要检测人脸
-				// #ifdef  H5 
-				return 1
-				// #endif
-
-				// #ifdef APP-PLUS || MP-WEIXIN
-				return this.examItem.checkFace
-				// #endif
-			}
 		},
 		onLoad(options) {
 			// 页面跳转 传递对象 传对象
 			options = {
 				id: '360198198812130014',
-				name: '测试考试',
+				name: '保安员模拟考试',
 				examScore: 100,
-				examTime: 90,
+				examTime: 60,
 				checkFace: 1
 			}
 			this.examItem = options
-			console.log("考试信息:", this.examItem);
-
 		}
 	}
 </script>
 
 <style lang="scss">
-	page {
-		font-size: 31rpx;
-
-		ul li {
-			list-style: none;
-		}
-	}
-
 	.tipsArea {
 		padding: 0 40rpx;
 		margin-left: -30rpx;
+		line-height: 64rpx;
+		
 	}
 
 	.subTitle {
@@ -124,19 +82,12 @@
 	}
 
 	.examContent {
-		line-height: 50rpx;
+		line-height: 56rpx;
 		margin-left: 180rpx;
 
 		text {
 			font-weight: bold;
 		}
-	}
-
-	ol {
-		// padding: 80rpx;
-		// background-color: #0077AA;
-		margin: 0 30rpx;
-		line-height: 50rpx;
 	}
 
 	.btnArea {

--
Gitblit v1.9.3