Browse Source

修改邮箱绑定跳转链接

xuchunyang 8 years ago
parent
commit
cf798863f7
4 changed files with 17 additions and 5 deletions
  1. 1 1
      cmp-portal/js/cmp-setBind.js
  2. 5 1
      js/bind-mail.js
  3. 6 2
      js/login-email-find02.js
  4. 5 1
      js/settings/account-binding.js

+ 1 - 1
cmp-portal/js/cmp-setBind.js

@ -103,7 +103,7 @@ $(function() {
103 103
							var url = companyEmailVal.split('@')[1];
104 104
							for(var j in hash) {
105 105
								if(hash[url]==undefined){
106
					        		location.href="http://mail." + url; 	
106
					        		window.open("http://mail." + url);
107 107
					        	}else{
108 108
					        	 	$(this).attr("href", hash[url]);
109 109
									window.open(hash[url]);

+ 5 - 1
js/bind-mail.js

@ -32,7 +32,11 @@ function emailSuccess() {
32 32
	$(".maillink").each(function() {
33 33
		var url = mailVal.split('@')[1];
34 34
		for(var j in hash) {
35
			$(this).attr("href", hash[url]);
35
			if(hash[url]==undefined){
36
        		$(this).attr("href", "http://mail." + url);
37
        	}else{
38
        	 	$(this).attr("href", hash[url]);
39
        	}
36 40
		}
37 41
	});
38 42
}

+ 6 - 2
js/login-email-find02.js

@ -13,8 +13,12 @@ $(function (){
13 13
    $("#emailGo").on("click", function(){
14 14
		 var url = GetQueryString("email").split('@')[1];
15 15
        for (var j in hash){  
16
            $(this).attr("href", hash[url]); 
17
            location.href=hash[url]; 
16
            if(hash[url]==undefined){
17
        		location.href="http://mail." + url; 	
18
        	}else{
19
        	 	$(this).attr("href", hash[url]); 
20
           		location.href=hash[url];	
21
        	}
18 22
        }  
19 23
	});
20 24
	

+ 5 - 1
js/settings/account-binding.js

@ -98,7 +98,11 @@ function emailSuccess() {
98 98
	$(".sett").each(function() {
99 99
		var url = mailVal.split('@')[1];
100 100
		for(var j in hash) {
101
			$(this).attr("href", hash[url]);
101
			if(hash[url]==undefined){
102
        		$(this).attr("href", "http://mail." + url);
103
        	}else{
104
        	 	$(this).attr("href", hash[url]);
105
        	}
102 106
		}
103 107
	});
104 108
}