...
|
...
|
@@ -10,37 +10,10 @@ var qrCheck = { |
|
|
},
|
|
|
|
|
|
init: function() {
|
|
|
var // ifr,
|
|
|
u = navigator.userAgent.toLowerCase(),
|
|
|
isiOS = u.indexOf('os') > -1 || u.indexOf('iphone') > -1 || u.indexOf('mac') > -1 || u.indexOf('ipad') > -1,
|
|
|
qr = this.getQuery('qr'),
|
|
|
isApp = this.getQuery('app_version');
|
|
|
var qr = this.getQuery('qr');
|
|
|
|
|
|
if (qr && isApp) {
|
|
|
location.href = '//m.yohobuy.com/passport/update';
|
|
|
}
|
|
|
|
|
|
if (qr && !isApp) {
|
|
|
if (isiOS) {
|
|
|
window.location = 'yohobuy://http://m.yohobuy.com/signin.html?qr=' + qr;
|
|
|
} else {
|
|
|
// 安卓跳下载
|
|
|
location.href = '//m.yohobuy.com/passport/update';
|
|
|
|
|
|
// 安卓暂时不处理
|
|
|
// ifr = document.createElement('iframe');
|
|
|
// ifr.src = 'yohobuy://http://m.yohobuy.com/signin.html?qr=' + qr;
|
|
|
// ifr.style.display = 'none';
|
|
|
// document.body.appendChild(ifr);
|
|
|
}
|
|
|
|
|
|
// 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);
|
|
|
if (qr) {
|
|
|
location.href = 'http://union.yoho.cn/union/app-downloads.html';
|
|
|
}
|
|
|
}
|
|
|
};
|
...
|
...
|
|