chore: 移除测试注释

This commit is contained in:
yindongqi 2025-07-29 15:56:54 +08:00
parent 0aa71a824b
commit fc1e036d1e
5 changed files with 39 additions and 6 deletions

View File

@ -63,7 +63,7 @@ export default {
if (res.data.is_need_check_face == 1) { if (res.data.is_need_check_face == 1) {
// //
var ua = window.navigator.userAgent.toLowerCase(); 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" }); this.$router.push({ path: "/wxerror" });
} else { } else {
Toast(res.msg); Toast(res.msg);

View File

@ -71,7 +71,7 @@ export default {
if (res.data.is_need_check_face == 1) { if (res.data.is_need_check_face == 1) {
// //
var ua = window.navigator.userAgent.toLowerCase(); 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" }); this.$router.push({ path: "/wxerror" });
} else { } else {
Toast(res.msg); Toast(res.msg);

View File

@ -397,7 +397,6 @@
this.getConfig() this.getConfig()
}, },
} }
// git
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View File

@ -123,6 +123,12 @@
style="width: 100%; height: 100%; padding: 10px 0;">{{ item.name }}</mt-button> style="width: 100%; height: 100%; padding: 10px 0;">{{ item.name }}</mt-button>
</div> </div>
</mt-popup> </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="isphoto" :value="loginInfo.isphoto" />
<input type="hidden" ref="needuploadphoto" :value="loginInfo.need_upload_photo" /> <input type="hidden" ref="needuploadphoto" :value="loginInfo.need_upload_photo" />
<input type="hidden" ref="exam_end_time" :value="loginInfo.id_end" /> <input type="hidden" ref="exam_end_time" :value="loginInfo.id_end" />
@ -161,6 +167,7 @@ export default {
true_quesstion: 0, true_quesstion: 0,
title: "考试中心", title: "考试中心",
monishow: true, monishow: true,
showPhotoMask: false,
submitCount: 0, // submitCount: 0, //
allSubmitCount: 3, // allSubmitCount: 3, //
canTakePhoto: true, // canTakePhoto: true, //
@ -339,7 +346,7 @@ export default {
(err) => { } (err) => { }
); );
} else { } else {
Toast("未上传证件照,无法开启正式考试"); this.showPhotoMask = true;
} }
}, },
start_bu() { start_bu() {
@ -853,6 +860,33 @@ export default {
}; };
</script> </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> <style lang="scss" scoped>
.mint-header.is-fixed { .mint-header.is-fixed {
color: #000; color: #000;

View File

@ -415,7 +415,7 @@ export default {
if (_this.last30sTimer && _this.section[_this.choose_section_index].is_end != 1) { if (_this.last30sTimer && _this.section[_this.choose_section_index].is_end != 1) {
// console.log("211111111111111111"); // console.log("211111111111111111");
_this.last30sTimer = false; _this.last30sTimer = false;
for (let index = 0; index < 3; index++) { for (let index = 0; index < 1; index++) {
_this.onPlayerEnded(); _this.onPlayerEnded();
} }
setTimeout(() => { setTimeout(() => {
@ -469,7 +469,7 @@ export default {
}, },
onPlayerEnded() { onPlayerEnded() {
if (this.section[this.choose_section_index].is_end != 1) { if (this.section[this.choose_section_index].is_end != 1) {
this.getData("/Home/saveRecord", { this.getData("/Home/saveRecordEnd", {
token: getStore("token"), token: getStore("token"),
id: this.choose_section_id, id: this.choose_section_id,
record: '', record: '',