Explorar el Código

处理人脸拍照超时

谢杰标 hace 2 años
padre
commit
5706701ee4

+ 5 - 0
src/pages/course-detail/index.vue

@@ -4884,6 +4884,11 @@ export default {
             resolve(res.data);
           })
           .catch((err) => {
+            if(err.toString().indexOf('timeout')!=-1){
+              err = {
+                msg:'拍照超时,请重新拍照'
+              }
+            }
             this.loading = false;
             this.$message({
               type: "warning",

+ 7 - 2
src/pages/course-exam/index.vue

@@ -1606,6 +1606,11 @@ export default {
             resolve(res.data);
           })
           .catch((err) => {
+            if (err.toString().indexOf("timeout") != -1) {
+              err = {
+                msg: "拍照超时,请重新拍照",
+              };
+            }
             this.loading = false;
             this.$message({
               type: "warning",
@@ -1728,8 +1733,8 @@ export default {
           })
           .then((res) => {
             this.recordId = res.data;
-
-            if (self.needPhoto) {
+            //  节不需要拍照
+            if (self.needPhoto && this.type != 2) {
               this.openPhoto();
             } else {
               if (this.lastTime) {

+ 5 - 0
src/pages/live-detail/index.vue

@@ -4390,6 +4390,11 @@ export default {
           })
           .catch((err) => {
             this.loading = false;
+            if(err.toString().indexOf('timeout')!=-1){
+              err = {
+                msg:'拍照超时,请重新拍照'
+              }
+            }
             this.$message({
               type: "warning",
               message: err.msg,

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 407 - 350
src/pages/person-center/my-course/index.vue


Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio