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

+ 5 - 1
js/bind-mail.js

32
	$(".maillink").each(function() {
32
	$(".maillink").each(function() {
33
		var url = mailVal.split('@')[1];
33
		var url = mailVal.split('@')[1];
34
		for(var j in hash) {
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
    $("#emailGo").on("click", function(){
13
    $("#emailGo").on("click", function(){
14
		 var url = GetQueryString("email").split('@')[1];
14
		 var url = GetQueryString("email").split('@')[1];
15
        for (var j in hash){  
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
	$(".sett").each(function() {
98
	$(".sett").each(function() {
99
		var url = mailVal.split('@')[1];
99
		var url = mailVal.split('@')[1];
100
		for(var j in hash) {
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
}