0){
$('#bt-vcode').text("" + wait-- + " s");
setTimeout("countSecond()", 1000);
}else{
isTimeIng = false;
wait = MAX_S;
$('#bt-vcode').text("获取验证码");
toRestNc();
}
}
function getwximg(){
$.ajax({
async: true,
type: "post",
dataType: 'json',
url : "/Login/getWximg/",
data: {t: (new Date()).getTime()},
success: function (res) {
if (res.status == 1) {
$("#yzreg_qr").attr('src', res.url);
getwxstatus(user_time,res.qrcodeid);
}else{
alert('微信二维码加载错误!');
}
},
error : function(XMLHttpRequest, textStatus, errorThrown) {
alert('微信二维码加载出错啦!');
}
});
}
//获取微信扫码状态
function getwxstatus(user_time,qrcode_id) {
$.ajax({
async: true,
type: "post",
dataType: 'json',
url: "/Login/getScanState/",
data: {codeid:qrcode_id },
success: function (data, textStatus) {
if (data.status ==2) {
$('.Ld-login-matext').html('扫码成功!');
var params="curruserid="+data.curruserid+"&unionid="+data.unionid;
window.location.href="https://www.jkongjian.com/Login/yzqrreg?"+params;
}
if (data.status == 0) {
user_time = user_time + 1;
if (user_time > 20) {
$('.Ld-login-last').addClass('show');
$('.Ld-login-matext').html('二维码已失效!请刷新重试!');
}else {
getwxstatus(user_time,qrcode_id);
}
}
},
error: function (data) {
}
});
}
function refcode(){
$('.Ld-login-last').removeClass('show');
getwximg();
$('.Ld-login-matext').html('扫码-关注公众号-注册');
}
本月活跃排名
-
TOP 1
-
TOP 2
-
TOP 3
-
TOP 4
-
TOP 5
商家申请入驻
或拨打一对一咨询电话400-926-0899