Browse Source

修改邮箱发送跳转地址

xuchunyang 8 years ago
parent
commit
b65ec0d216

+ 7 - 3
cmp-portal/cmp-pwdReset02.html

@ -58,10 +58,14 @@ $(function(){
58 58
	var companyEmailVal = GetQueryString("companyEmailVal");
59 59
	$("#emailShow").text(companyEmailVal);
60 60
	$("#emailGo").on("click", function(){
61
		 var url = companyEmailVal.split('@')[1];
61
		var url = companyEmailVal.split('@')[1];
62 62
        for (var j in hash){  
63
            $(this).attr("href", hash[url]); 
64
            location.href=hash[url]; 
63
            if(hash[url]==undefined){
64
        		location.href="http://mail." + url; 	
65
        	}else{
66
        	 	$(this).attr("href", hash[url]); 
67
            	location.href=hash[url]; 	
68
        	}
65 69
        }  
66 70
	});
67 71
})

+ 7 - 3
cmp-portal/cmp-settled-active.html

@ -50,9 +50,13 @@ $(function(){
50 50
	$("#emailShow").text(companyEmailVal);
51 51
	$("#emailGo").on("click", function(){
52 52
		 var url = companyEmailVal.split('@')[1];
53
        for (var j in hash){  
54
            $(this).attr("href", hash[url]); 
55
            location.href=hash[url]; 
53
        for (var j in hash){
54
        	if(hash[url]==undefined){
55
        		location.href="http://mail." + url; 	
56
        	}else{
57
        	 	$(this).attr("href", hash[url]); 
58
            	location.href=hash[url]; 	
59
        	}
56 60
        }  
57 61
	});
58 62
})

+ 6 - 2
cmp-portal/js/cmp-setBind.js

@ -102,8 +102,12 @@ $(function() {
102 102
						$("#emailGo").on("click", function() {
103 103
							var url = companyEmailVal.split('@')[1];
104 104
							for(var j in hash) {
105
								$(this).attr("href", hash[url]);
106
								window.open(hash[url]);
105
								if(hash[url]==undefined){
106
					        		location.href="http://mail." + url; 	
107
					        	}else{
108
					        	 	$(this).attr("href", hash[url]);
109
									window.open(hash[url]);
110
					        	}
107 111
							}
108 112
							location.reload(true);
109 113
						});