Browse Source

登录注册

jack 8 years ago
parent
commit
6eaf89c2df
2 changed files with 6 additions and 3 deletions
  1. 3 3
      bind-mail.html
  2. 3 0
      js/loginNew.js

+ 3 - 3
bind-mail.html

@ -58,10 +58,11 @@
58 58
<script type="text/javascript">
59 59
	$(document).ready(function(){
60 60
		var oFlag=GetQueryString("sc");
61
		$.ajax("/ajax/regmail/" + oFlag, {
61
		$.ajax("/ajax/mailReg" + oFlag, {
62 62
			type: "GET",
63 63
			async: true,
64 64
			success: function(data) {
65
				console.log(data);
65 66
				if(data.success) {
66 67
					$("#success").show();
67 68
				} else {
@ -69,8 +70,7 @@
69 70
				}
70 71
			},
71 72
			error: function() {
72
				//$.MsgBox.Alert('消息提醒','邮箱注册失败')
73
				location.href = "bind-mail-no.html";
73
				$("#fail").show();
74 74
			},
75 75
			dataType: 'json'
76 76
		});

+ 3 - 0
js/loginNew.js

@ -200,10 +200,13 @@ function firstLogin() {
200 200
		"type": "get",
201 201
		"async": false,
202 202
		"success": function(data) {
203
			console.log(data)
203 204
			if(data.success) {
204 205
				if(data.data.authentication != undefined || data.data.authentication != null){
206
					alert(11)
205 207
					window.history.back();
206 208
				}else{
209
					alert(22)
207 210
					location.href = "fillinfo-select.html?id=" + professorId;	
208 211
				}
209 212
			}