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
<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/regmail/" + oFlag, {
61
		$.ajax("/ajax/mailReg" + oFlag, {
62
			type: "GET",
62
			type: "GET",
63
			async: true,
63
			async: true,
64
			success: function(data) {
64
			success: function(data) {
65
				console.log(data);
65
				if(data.success) {
66
				if(data.success) {
66
					$("#success").show();
67
					$("#success").show();
67
				} else {
68
				} else {
69
				}
70
				}
70
			},
71
			},
71
			error: function() {
72
			error: function() {
72
				//$.MsgBox.Alert('消息提醒','邮箱注册失败')
73
				location.href = "bind-mail-no.html";
73
				$("#fail").show();
74
			},
74
			},
75
			dataType: 'json'
75
			dataType: 'json'
76
		});
76
		});

+ 3 - 0
js/loginNew.js

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