yangg 1 nedēļu atpakaļ
vecāks
revīzija
6086ae5295

+ 2 - 2
pages/camera/camera.vue

@@ -217,14 +217,14 @@
 			if (this.screenCaptureCount === 1) {
 				uni.showModal({
 				title: 'Warning',
-				content: 'Screen capture detected. If you capture the screen again, your interview will be invalid.',
+				content: '检测到屏幕截图。如果你再次捕捉屏幕,你的面试将无效.',
 				showCancel: false,
 				confirmText: 'OK'
 				});
 			} else if (this.screenCaptureCount >= 2) {
 				uni.showModal({
 				title: 'Interview Invalid',
-				content: 'Your interview has been invalidated due to multiple screen captures. Please contact the recruiter for assistance.',
+				content: '由于多次屏幕截图,您的面试已无效。请联系招聘人员寻求帮助.',
 				showCancel: false,
 				confirmText: 'OK',
 				success: () => {

+ 5 - 5
pages/identity-verify/identity-verify.vue

@@ -338,7 +338,7 @@ export default {
   },
   mounted() {
     this.fetchQuestions();
-    this.fetchFollowUpQuestions();
+    //this.fetchFollowUpQuestions();
     this.checkAudioPermission();
     this.initCamera();
     this.checkIOSCameraRecordPermission();
@@ -2735,7 +2735,7 @@ export default {
               }
             });
           }
-        }, 2000);
+        }, 200);
       }
     },
 
@@ -3673,7 +3673,7 @@ export default {
       
       // 每次页面显示时重新获取问题
       this.fetchQuestions();
-      this.fetchFollowUpQuestions(); // 添加获取追问问题的调用
+     // this.fetchFollowUpQuestions(); // 添加获取追问问题的调用
       
       // 重新初始化WebSocket连接(仅在小程序环境中)
       const systemInfo = uni.getSystemInfoSync();
@@ -4049,7 +4049,7 @@ export default {
       }
       // 然后检查身份验证状态
       else */ if (data.data.identity.status !== "identity_verified") {
-         /*this.showPageWarning = true;
+         this.showPageWarning = true;
         uni.showToast({
           title: data.data.identity.message,
           icon: 'none',
@@ -4062,7 +4062,7 @@ export default {
           fail: function (err) {
             console.error('Vibration failed:', err);
           }
-        }); */
+        });
         setTimeout(() => {
           this.showPageWarning = false;
         }, 3000);

+ 2 - 2
unpackage/dist/dev/mp-weixin/pages/camera/camera.js

@@ -104,14 +104,14 @@ const _sfc_main = {
       if (this.screenCaptureCount === 1) {
         common_vendor.index.showModal({
           title: "Warning",
-          content: "Screen capture detected. If you capture the screen again, your interview will be invalid.",
+          content: "检测到屏幕截图。如果你再次捕捉屏幕,你的面试将无效.",
           showCancel: false,
           confirmText: "OK"
         });
       } else if (this.screenCaptureCount >= 2) {
         common_vendor.index.showModal({
           title: "Interview Invalid",
-          content: "Your interview has been invalidated due to multiple screen captures. Please contact the recruiter for assistance.",
+          content: "由于多次屏幕截图,您的面试已无效。请联系招聘人员寻求帮助.",
           showCancel: false,
           confirmText: "OK",
           success: () => {

+ 15 - 3
unpackage/dist/dev/mp-weixin/pages/identity-verify/identity-verify.js

@@ -211,7 +211,6 @@ const _sfc_main = {
   },
   mounted() {
     this.fetchQuestions();
-    this.fetchFollowUpQuestions();
     this.checkAudioPermission();
     this.initCamera();
     this.checkIOSCameraRecordPermission();
@@ -1946,7 +1945,7 @@ const _sfc_main = {
               }
             });
           }
-        }, 2e3);
+        }, 200);
       }
     },
     // 修改 handleAnswerButtonClick 方法,确保在切换视频时重置历史时间
@@ -2613,7 +2612,6 @@ const _sfc_main = {
       console.log("identity-verify页面onShow");
       console.log("当前本地存储中的职位信息:", common_vendor.index.getStorageSync("selectedJob"));
       this.fetchQuestions();
-      this.fetchFollowUpQuestions();
       const systemInfo = common_vendor.index.getSystemInfoSync();
       const isMiniProgram = systemInfo.uniPlatform && systemInfo.uniPlatform.startsWith("mp-");
       if (isMiniProgram) {
@@ -2868,6 +2866,20 @@ const _sfc_main = {
     },
     handlePersonDetectionResult(data) {
       if (data.data.identity.status !== "identity_verified") {
+        this.showPageWarning = true;
+        common_vendor.index.showToast({
+          title: data.data.identity.message,
+          icon: "none",
+          duration: 3e3
+        });
+        common_vendor.index.vibrateLong({
+          success: function() {
+            console.log("Vibration successful");
+          },
+          fail: function(err) {
+            console.error("Vibration failed:", err);
+          }
+        });
         setTimeout(() => {
           this.showPageWarning = false;
         }, 3e3);

+ 1 - 1
unpackage/dist/dev/mp-weixin/project.config.json

@@ -8,7 +8,7 @@
     "urlCheck": false,
     "es6": true,
     "postcss": false,
-    "minified": false,
+    "minified": true,
     "newFeature": true,
     "bigPackageSizeSupport": true,
     "babelSetting": {