123456789101112131415161718192021222324252627282930313233343536373839404142 |
- * 邮箱注册二三步
- */
- loginStatus();
- var mailVal = $.cookie('mailVal');
- var mailCode = GetQueryString('sc');
- emailSuccess();
- if(mailCode != '') {
- $.ajax("/ajax/regmail/" + mailCode, {
- type: "GET",
- async: true,
- success: function(data) {
- if(data.success) {
- location.href = "bind-mail-ok.html";
- } else {
- location.href = "bind-mail-no.html";
- }
- },
- error: function() {
-
- location.href = "bind-mail-no.html";
- },
- dataType: 'json'
- });
- }
- function emailSuccess() {
- $('#receiveMail').text(mailVal);
- $(".maillink").each(function() {
- var url = mailVal.split('@')[1];
- for(var j in hash) {
- if(hash[url]==undefined){
- $(this).attr("href", "http://mail." + url);
- }else{
- $(this).attr("href", hash[url]);
- }
- }
- });
- }
|