浏览代码

邮箱绑定修改

xuchunyang 8 年之前
父节点
当前提交
ac3501728c
共有 1 个文件被更改,包括 24 次插入1 次删除
  1. 24 1
      js/account-set.js

+ 24 - 1
js/account-set.js

230
				async: true,
230
				async: true,
231
				success:function(data){ 
231
				success:function(data){ 
232
					 $.MsgBox.Alert('消息提醒','邮箱绑定成功')
232
					 $.MsgBox.Alert('消息提醒','邮箱绑定成功')
233
					 userpe();
233
				},
234
				},
234
				error:function(){
235
				error:function(){
235
				   $.MsgBox.Alert('消息提醒','邮箱绑定失败')
236
				   $.MsgBox.Alert('消息提醒','邮箱绑定失败')
239
		); 	 
240
		); 	 
240
	 }
241
	 }
241
	
242
	
243
	
244
	//查询用户手机号和邮箱
245
	function userpe(){
246
		$.ajax("/ajax/qaUser",{
247
				type:"get",
248
				async: true,
249
				success:function(data){ 
250
					console.log(data)
251
					 $.MsgBox.Alert('消息提醒','邮箱绑定成功')
252
					 var emaild = data.data.email;
253
					 $.cookie('userEmail',emaild);
254
					 $("#emailShow").text(emaild);
255
				},
256
				error:function(){
257
				   $.MsgBox.Alert('消息提醒','邮箱绑定失败')
258
				},
259
				data:{"id":$.cookie("userid")},			
260
			 	dataType: 'json'}
261
		); 	 
262
	}
263
	
264
	
242
	//点击邮箱激活
265
	//点击邮箱激活
243
	function bindEmail(){
266
	function bindEmail(){
244
		valEmail();
267
		valEmail();
252
						if(data.success){
275
						if(data.success){
253
							console.log(data);
276
							console.log(data);
254
							if(data.data == true){
277
							if(data.data == true){
255
								$.cookie('userEmail',email); 
278
								//$.cookie('userEmail',email); 
256
								$(".cover").hide();
279
								$(".cover").hide();
257
								$("#vovernext").show();
280
								$("#vovernext").show();
258
								$(".emalvel").text(email);
281
								$(".emalvel").text(email);