1234567891011121314151617181920212223242526272829303132333435363738 |
- * 邮箱注册二三步
- */
- 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) {
- $(this).attr("href", hash[url]);
- }
- });
- }
|