chore: 移除测试注释
This commit is contained in:
parent
0aa71a824b
commit
fc1e036d1e
@ -63,7 +63,7 @@ export default {
|
||||
if (res.data.is_need_check_face == 1) {
|
||||
//需要人脸识别,只能微信客户端登录
|
||||
var ua = window.navigator.userAgent.toLowerCase();
|
||||
if (ua.match(/MicroMessenger/i) != "micromessenger") {
|
||||
if (!/MicroMessenger/i.test(ua) || /wxwork/i.test(ua)) {
|
||||
this.$router.push({ path: "/wxerror" });
|
||||
} else {
|
||||
Toast(res.msg);
|
||||
|
@ -71,7 +71,7 @@ export default {
|
||||
if (res.data.is_need_check_face == 1) {
|
||||
//需要人脸识别,只能微信客户端登录
|
||||
var ua = window.navigator.userAgent.toLowerCase();
|
||||
if (ua.match(/MicroMessenger/i) != "micromessenger") {
|
||||
if (!/MicroMessenger/i.test(ua) || /wxwork/i.test(ua)) {
|
||||
this.$router.push({ path: "/wxerror" });
|
||||
} else {
|
||||
Toast(res.msg);
|
||||
|
@ -397,7 +397,6 @@
|
||||
this.getConfig()
|
||||
},
|
||||
}
|
||||
// git提交测试
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
@ -123,6 +123,12 @@
|
||||
style="width: 100%; height: 100%; padding: 10px 0;">{{ item.name }}</mt-button>
|
||||
</div>
|
||||
</mt-popup>
|
||||
<div v-show="showPhotoMask" class="photo-mask" @click="showPhotoMask = false">
|
||||
<div class="mask-content" @click.stop>
|
||||
<p>未上传证件照,无法开启正式考试</p>
|
||||
<mt-button type="primary" @click="$router.push('/user/uploadphoto')">去上传</mt-button>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" ref="isphoto" :value="loginInfo.isphoto" />
|
||||
<input type="hidden" ref="needuploadphoto" :value="loginInfo.need_upload_photo" />
|
||||
<input type="hidden" ref="exam_end_time" :value="loginInfo.id_end" />
|
||||
@ -161,6 +167,7 @@ export default {
|
||||
true_quesstion: 0,
|
||||
title: "考试中心",
|
||||
monishow: true,
|
||||
showPhotoMask: false,
|
||||
submitCount: 0, //开启相机的次数
|
||||
allSubmitCount: 3, //允许拍照次数
|
||||
canTakePhoto: true, //节流
|
||||
@ -339,7 +346,7 @@ export default {
|
||||
(err) => { }
|
||||
);
|
||||
} else {
|
||||
Toast("未上传证件照,无法开启正式考试");
|
||||
this.showPhotoMask = true;
|
||||
}
|
||||
},
|
||||
start_bu() {
|
||||
@ -853,6 +860,33 @@ export default {
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.photo-mask {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 1000;
|
||||
}
|
||||
.mask-content {
|
||||
background: white;
|
||||
padding: 30px;
|
||||
border-radius: 10px;
|
||||
text-align: center;
|
||||
width: 80%;
|
||||
max-width: 400px;
|
||||
}
|
||||
.mask-content p {
|
||||
margin-bottom: 20px;
|
||||
font-size: 16px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.mint-header.is-fixed {
|
||||
color: #000;
|
||||
|
@ -415,7 +415,7 @@ export default {
|
||||
if (_this.last30sTimer && _this.section[_this.choose_section_index].is_end != 1) {
|
||||
// console.log("最后2秒我运行了11111111111111111");
|
||||
_this.last30sTimer = false;
|
||||
for (let index = 0; index < 3; index++) {
|
||||
for (let index = 0; index < 1; index++) {
|
||||
_this.onPlayerEnded();
|
||||
}
|
||||
setTimeout(() => {
|
||||
@ -469,7 +469,7 @@ export default {
|
||||
},
|
||||
onPlayerEnded() {
|
||||
if (this.section[this.choose_section_index].is_end != 1) {
|
||||
this.getData("/Home/saveRecord", {
|
||||
this.getData("/Home/saveRecordEnd", {
|
||||
token: getStore("token"),
|
||||
id: this.choose_section_id,
|
||||
record: '',
|
||||
|
Loading…
x
Reference in New Issue
Block a user