62,074
社区成员
发帖
与我相关
我的任务
分享
var postStr = encryptionJs.form_encryption($('#submitFrom').serialize());
$.ajax({
type:"post",
url:'/user/sublogin/',
dataType:'json',
async: true,
data: postStr,
success:function(result){//console.log(result);return false;
from_url=result[3]?result[3]:from_url;
var status=false;
$(result).each(function(i,v){
if(i==0){
if(v!=1){
if(decodeURI(v)=='users_email_active_no'){
window.location.href='/?user&q=olduser_approve';
}else{
$("#error_str").html(decodeURI(v));
$("#login_button").val('登录');
}
}else{
status=true;
}
}else if(i==2){
if(status){
if(from_url==bbs_url){
from_url=from_url+'?key='+v;
}
//40亿活动跳转
if(from_url.indexOf('edai.com/specialSubject.php?mod=tiger')>0){
from_url=from_url+'&key='+v;
}
window.location.href=from_url;
}
}
});
},
cache:false
});