...
|
...
|
@@ -11,15 +11,19 @@ var qrCheck = { |
|
|
|
|
|
init: function() {
|
|
|
var ifr,
|
|
|
|
|
|
// time,
|
|
|
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');
|
|
|
|
|
|
if (qr) {
|
|
|
if (isiOS) {
|
|
|
window.location = 'yohobuy://http://m.yohobuy.com/signin.html?qr=' + qr;
|
|
|
} else {
|
|
|
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() {
|
...
|
...
|
|