Browse Source

修复移动端已注册的提示

庄逸洲 5 years ago
parent
commit
87bd2285f2
1 changed files with 8 additions and 2 deletions
  1. 8 2
      views/mobile_site/regist.html

+ 8 - 2
views/mobile_site/regist.html View File

70
                 aespass: aespass,
70
                 aespass: aespass,
71
             }
71
             }
72
             $("#codebtn").attr("disabled", true);
72
             $("#codebtn").attr("disabled", true);
73
-            changeNum(60);
74
 
73
 
75
             postRequest("/getregistcode", postData, function(res) {
74
             postRequest("/getregistcode", postData, function(res) {
76
                 if (res.state == 0) {
75
                 if (res.state == 0) {
77
-                    serverErrorMsg(res);
76
+                    if (res.code == 604) {
77
+                        $('.layer').show();
78
+                    } else {
79
+                        serverErrorMsg(res);
80
+                    }
78
                     return;
81
                     return;
79
                 }
82
                 }
83
+                changeNum(60);
80
                 layer.msg(res.data.msg);
84
                 layer.msg(res.data.msg);
85
+                $("#codebtn").attr("disabled", false);
81
 
86
 
82
             }, function(res) {
87
             }, function(res) {
83
                 serverErrorMsg(res);
88
                 serverErrorMsg(res);
89
+                $("#codebtn").attr("disabled", false);
84
             });
90
             });
85
         });
91
         });
86
 
92