Browse Source

邮箱注册bug修正

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

+ 2 - 2
bind-mail.html

58
<script type="text/javascript">
58
<script type="text/javascript">
59
	$(document).ready(function(){
59
	$(document).ready(function(){
60
		var oFlag=GetQueryString("sc");
60
		var oFlag=GetQueryString("sc");
61
		$.ajax("/ajax/mailReg" + oFlag, {
61
		$.ajax("/ajax/mailReg?key=" + oFlag, {
62
			type: "GET",
62
			type: "GET",
63
			async: true,
63
			async: true,
64
			success: function(data) {
64
			success: function(data) {
69
					$("#fail").show();
69
					$("#fail").show();
70
				}
70
				}
71
			},
71
			},
72
			error: function() {
72
			error: function(x) {
73
				$("#fail").show();
73
				$("#fail").show();
74
			},
74
			},
75
			dataType: 'json'
75
			dataType: 'json'

+ 0 - 2
js/loginNew.js

203
			console.log(data)
203
			console.log(data)
204
			if(data.success) {
204
			if(data.success) {
205
				if(data.data.authentication != undefined || data.data.authentication != null){
205
				if(data.data.authentication != undefined || data.data.authentication != null){
206
					alert(11)
207
					window.history.back();
206
					window.history.back();
208
				}else{
207
				}else{
209
					alert(22)
210
					location.href = "fillinfo-select.html?id=" + professorId;	
208
					location.href = "fillinfo-select.html?id=" + professorId;	
211
				}
209
				}
212
			}	
210
			}