");
var ts = (Date.parse(new Date()) / 1000) + 300;
$(".CometCD").attr("ts", ts);
CometWxLogin();
$ef.CometCountDown();
});
}
function CometWxLogin() {
if (QrComet != null) QrComet.abort("aborting");
QrComet = AjaxPostCallBackTimeOut("/Comet/QrScan/" + QrToken, null, "NonCallBack", 300 * 1000, function (json) {
switch (json.MsgType) {
attr("ts") == null) {
ShowWxQR();
}
break;
}
}
function ShowWxQR() {
var dv = $(".BuildedQR");
dv.removeClass("icon-Notvisible");
dv.addClass("aniWaiting");
AjaxPostJson(ThisPost + "QR", { Token: QrToken }, function (data) {
dv.removeClass("aniWaiting");
QrToken = data.Token;
dv.html("");
var ts = (Date.parse(new Date()) / 1000) + 300;
$(".CometCD").attr("ts", ts);
CometWxLogin();
$ef.CometCountDown();
});
}
function CometWxLogder-radius: 100%; background: #ccc; color:white; text-align: center;}
.loginTo::before { font-size: 40px;}
.iline { line-height: 40px; vertical-align: middle; margin-bottom: 5px; border-bottom: 1px solid #eee; text-align: left; padding: 5px; color:white; font-weight: bold; position: relative;}
#LogTitle .act::after { content: ""; position: absolute; bottom: 0; left:50%; margin-left: -6px; bordeuildedQR").html("").addClass("icon-seleted");
$(".CometCD").removeAttr("ts");
$(".CometCD").html("已扫码。【点击重新扫码】");
var postData = {};
postData.Token = QrToken;
postData.SaveCookie = $("#chkSaveQR").prop("checked");
AjaxPostJson(ThisPost + "ByQR", postData, function (json) {
UserLoginOK();
});
}
break;
case "TimeOut":
QrComet = null;
CometWxLogin();
}
});
}
function CometCountDownEnd() {
$(".Builded":
if (json.IsOK) {
$pc.Alert("正在登录,请稍候...");
$(".BuildedQR").html("").addClass("icon-seleted");
$(".CometCD").removeAttr("ts");
$(".CometCD").html("已扫码。【点击重新扫码】");
var postData = {};
postData.Token = QrToken;
postData.SaveCookie = $("#chkSaveQR").prop("checked");
AjaxPostJson(ThisPost + "ByQR", postData, function (json) {
UserLoginOK();
});
$("#dvLog" + way).show();
switch (way) {
case "SM":
if (sms == null) sms = new SmsCodeLogic("txtMobile", "txtCode", "btnSend");
break;
case "QR":
if ($(".CometCD").}
.iline span { width: 65px; display: inline-block; }
.logWidth { width:400px; margin: auto;}
.txt { border: 0 !important; background: #f1f1f1 !important; border-radius: 6px; padding: 8px; width: 280px; }