Showing
1 changed file
with
9 additions
and
1 deletions
@@ -11,6 +11,7 @@ var qrCheck = { | @@ -11,6 +11,7 @@ var qrCheck = { | ||
11 | 11 | ||
12 | init: function() { | 12 | init: function() { |
13 | var ifr, | 13 | var ifr, |
14 | + time, | ||
14 | qr = this.getQuery('qr'); | 15 | qr = this.getQuery('qr'); |
15 | 16 | ||
16 | if (qr) { | 17 | if (qr) { |
@@ -18,7 +19,14 @@ var qrCheck = { | @@ -18,7 +19,14 @@ var qrCheck = { | ||
18 | ifr.src = 'yohobuy://http://m.yohobuy.com/signin.html?qr=' + qr; | 19 | ifr.src = 'yohobuy://http://m.yohobuy.com/signin.html?qr=' + qr; |
19 | ifr.style.display = 'none'; | 20 | ifr.style.display = 'none'; |
20 | document.body.appendChild(ifr); | 21 | document.body.appendChild(ifr); |
21 | - window.location.href = 'yohobuy://http://m.yohobuy.com/signin.html?qr=' + qr; | 22 | + |
23 | + time = Date.now(); | ||
24 | + window.setTimeout(function() { | ||
25 | + document.body.removeChild(ifr); | ||
26 | + if (Date.now() - time < 2200) { | ||
27 | + window.location.href = 'http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho'; | ||
28 | + } | ||
29 | + }, 2000); | ||
22 | } | 30 | } |
23 | } | 31 | } |
24 | }; | 32 | }; |
-
Please register or login to post a comment