"+n.html+n.but);
_state = n.state;
}
}else{
console.log("二维码获取失败,请稍后再试");
}
_this.removeClass("disabled");
}, "json");
return false;
});$(document).on("click",".io-wx-btn",function(){
var _this = $(this),
url = "https://www.007la.com/wp-content/themes/onenav/inc/auth/dyh-callback.php",
code = _this.prev().val();
if(code){
if(!_this.hasClass("disabled")){
_this.text("验证中...");
_this.addClass("disabled");
$.post(url, {
action: "check_callback",
code: code,
loginurl: window.location.href
}, function(n) {
if(n.status == "1"){
window.location.href = n.goto;
window.location.reload;
}else{
_this.removeClass("disabled");
_this.text("验证登录");
alert("登录失败!请检查是否验证码已过期~");
}
}, "json");
}
}else{
alert("请输入验证码~");
}
return false;
});