Browse Source

提交IE浏览器提示

sandm 3 years ago
parent
commit
a92bfe54c7

+ 17 - 1
public/themes/default/views/app/recruit/show.blade.php

@@ -217,6 +217,17 @@
             })
         }
 
+        function isIE() {
+            var u = window.navigator.userAgent.toLocaleLowerCase(),
+                ie11 = /(trident)\/([\d.]+)/,
+                b = u.match(ie11);
+            if(b || !!window.ActiveXObject || "ActiveXObject" in window){
+                return true;
+            }else{
+                return false;
+            }
+        }
+
         $(function () {
 
             //右侧悬浮
@@ -254,10 +265,15 @@
                         disapperTooltip("remind", "只有登录个人会员才可报名!");
                         return false;
                     } else {
+                        if(isIE()){
+                            disapperTooltip("remind", "报名系统不支持IE浏览器,请更换浏览器!");
+                            return false;
+                        }
                         check_user_basic_info(id)
                         //window.location.href = "{{route('recruit.sign_up')}}" + '?id=' + id;
                     }
                 } else {
+
                     var qsDialog = $(this).dialog({
                         loading: true,
                         footer: false,
@@ -281,8 +297,8 @@
                             disapperTooltip('remind','操作失败');
                         }
                     });
-
                 }
+
             })
 
             //笔试准考证

+ 25 - 25
public/themes/default/views/app/recruit/sign_up.blade.php

@@ -1222,13 +1222,13 @@
                 },
                 methods: {
                     //验证证件
-                    validID(rule, value, callback){
+                    validID: function(rule, value, callback0){
                         if(!this.checkIDCard(value)) {
                             callback(new Error('身份证号不正确'));
                         }
                         callback();
                     },
-                    checkIDCard(cardNo){
+                    checkIDCard:function(cardNo){
                         var weight_factor = [7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2];
                         var check_code = ['1', '0', 'X' , '9', '8', '7', '6', '5', '4', '3', '2'];
                         var code = cardNo + "";
@@ -1247,52 +1247,52 @@
                         return last === last_no && format ? true : false;
                     },
                     //验证手机号码
-                    validMobile(rule, value, callback){
+                    validMobile:function(rule, value, callback){
                         if(!(/^1[3456789]\d{9}$/.test(value))){
                             callback(new Error('手机号码不正确'));
                         }
                         callback();
                     },
                     //验证邮箱
-                    validEmail(rule, value, callback){
+                    validEmail:function(rule, value, callback){
                         if(!(/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/.test(value))){
                             callback(new Error('电子邮箱不正确'));
                         }
                         callback();
                     },
                     //验证头像
-                    validAvatar(rule, value, callback){
+                    validAvatar:function(rule, value, callback){
                         callback();
                     },
-                    validSpecialCondition(rule, value, callback){
+                    validSpecialCondition:function(rule, value, callback){
                         if(this.user.special.point_apply == 1 && this.user.special.condition == ''){
                             callback(new Error('请输入符合加分的条件'));
                         }else{
                             callback();
                         }
                     },
-                    validSpecialMaterial(rule, value, callback){
+                    validSpecialMaterial:function(rule, value, callback){
                         if(this.user.special.point_apply == 1 && this.user.special.material.length == 0){
                             callback(new Error('请上传佐证材料'));
                         }else{
                             callback();
                         }
                     },
-                    validIdentification(rule, value, callback){
+                    validIdentification:function(rule, value, callback){
                         if(this.user.identification.length == 0){
                             callback(new Error('请上传身份证明证件'));
                         }else{
                             callback();
                         }
                     },
-                    validEducertification(rule, value, callback){
+                    validEducertification:function(rule, value, callback){
                         if(this.user.education_certification.length == 0){
                             callback(new Error('请上传学历证明证件'));
                         }else{
                             callback();
                         }
                     },
-                    beforeImageUpload(file) {
+                    beforeImageUpload:function(file) {
                         const isJPG = (file.type === 'image/jpeg' || file.type === 'image/png');
                         const isLt2M = file.size / 1024 / 1024 < 2;
 
@@ -1304,7 +1304,7 @@
                         }
                         return isJPG && isLt2M;
                     },
-                    uploadSuccess(response, file, fileList){
+                    uploadSuccess:function(response, file, fileList){
                         console.log(this.user)
                         if(response.status){
                             this.user.avatar = response.path;
@@ -1312,54 +1312,54 @@
                             this.$message.error(response.msg);
                         }
                     },
-                    uploadSuccessLP(response, file, fileList){
+                    uploadSuccessLP:function(response, file, fileList){
                         if(response.status){
                             this.user.special.material = fileList
                         }else{
                             this.$message.error(response.msg);
                         }
                     },
-                    uploadSuccessID(response, file, fileList){
+                    uploadSuccessID:function(response, file, fileList){
                         if(response.status){
                             this.user.identification = fileList
                         }else{
                             this.$message.error(response.msg);
                         }
                     },
-                    uploadSuccessEDU(response, file, fileList){
+                    uploadSuccessEDU:function(response, file, fileList){
                         if(response.status){
                             this.user.education_certification = fileList
                         }else{
                             this.$message.error(response.msg);
                         }
                     },
-                    uploadSuccessOther(response, file, fileList){
+                    uploadSuccessOther:function(response, file, fileList){
                         if(response.status){
                             this.user.other_certification = fileList
                         }else{
                             this.$message.error(response.msg);
                         }
                     },
-                    removeID(file,fileList) {
+                    removeID:function(file,fileList) {
                         this.user.identification = fileList
                     },
-                    removeLP(file,fileList) {
+                    removeLP:function(file,fileList) {
                         this.user.special.material = fileList
                     },
-                    removeEDU(file,fileList) {
+                    removeEDU:function(file,fileList) {
                         this.user.education_certification = fileList
                     },
-                    removeOther(file,fileList) {
+                    removeOther:function(file,fileList) {
                         this.user.other_certification = fileList
                     },
-                    handlePictureCardPreview(file){
+                    handlePictureCardPreview:function(file){
                         this.dialogImageUrl = file.url;
                         this.dialogVisible = true;
                     },
-                    postChange(value){
+                    postChange:function(value){
                         this.post_limit_value = this.post_limit[value];
                     },
-                    save(formName){
+                    save:function(formName){
                         this.user.operation = 1;
                         this.$refs[formName].validate((valid,object) => {
                             if (valid) {
@@ -1396,7 +1396,7 @@
                             }
                         })
                     },
-                    submit(formName){
+                    submit:function(formName){
                         this.user.operation = 2;
                         this.$refs[formName].validate((valid,object) => {
                             if (valid) {
@@ -1523,7 +1523,7 @@
                             }
                         })
                     },
-                    addFamily(){
+                    addFamily:function(){
                         this.user.family.push({
                             appellation:'',
                             realname:'',
@@ -1532,7 +1532,7 @@
                             work:''
                         });
                     },
-                    delFamily(){
+                    delFamily:function(){
                         var length = this.user.family.length;
                         if (length > 1) {
                             this.user.family.pop()