Authored by zzzzzzz

超时跳到下载页

... ... @@ -11,6 +11,7 @@ var qrCheck = {
init: function() {
var ifr,
time,
qr = this.getQuery('qr');
if (qr) {
... ... @@ -18,7 +19,14 @@ var qrCheck = {
ifr.src = 'yohobuy://http://m.yohobuy.com/signin.html?qr=' + qr;
ifr.style.display = 'none';
document.body.appendChild(ifr);
window.location.href = 'yohobuy://http://m.yohobuy.com/signin.html?qr=' + qr;
time = Date.now();
window.setTimeout(function() {
document.body.removeChild(ifr);
if (Date.now() - time < 2200) {
window.location.href = 'http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho';
}
}, 2000);
}
}
};
... ...