Showing
1 changed file
with
3 additions
and
30 deletions
@@ -10,37 +10,10 @@ var qrCheck = { | @@ -10,37 +10,10 @@ var qrCheck = { | ||
10 | }, | 10 | }, |
11 | 11 | ||
12 | init: function() { | 12 | init: function() { |
13 | - var // ifr, | ||
14 | - u = navigator.userAgent.toLowerCase(), | ||
15 | - isiOS = u.indexOf('os') > -1 || u.indexOf('iphone') > -1 || u.indexOf('mac') > -1 || u.indexOf('ipad') > -1, | ||
16 | - qr = this.getQuery('qr'), | ||
17 | - isApp = this.getQuery('app_version'); | 13 | + var qr = this.getQuery('qr'); |
18 | 14 | ||
19 | - if (qr && isApp) { | ||
20 | - location.href = '//m.yohobuy.com/passport/update'; | ||
21 | - } | ||
22 | - | ||
23 | - if (qr && !isApp) { | ||
24 | - if (isiOS) { | ||
25 | - window.location = 'yohobuy://http://m.yohobuy.com/signin.html?qr=' + qr; | ||
26 | - } else { | ||
27 | - // 安卓跳下载 | ||
28 | - location.href = '//m.yohobuy.com/passport/update'; | ||
29 | - | ||
30 | - // 安卓暂时不处理 | ||
31 | - // ifr = document.createElement('iframe'); | ||
32 | - // ifr.src = 'yohobuy://http://m.yohobuy.com/signin.html?qr=' + qr; | ||
33 | - // ifr.style.display = 'none'; | ||
34 | - // document.body.appendChild(ifr); | ||
35 | - } | ||
36 | - | ||
37 | - // time = Date.now(); | ||
38 | - // window.setTimeout(function() { | ||
39 | - // document.body.removeChild(ifr); | ||
40 | - // if (Date.now() - time < 2200) { | ||
41 | - // window.location.href = 'http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho'; | ||
42 | - // } | ||
43 | - // }, 2000); | 15 | + if (qr) { |
16 | + location.href = 'http://union.yoho.cn/union/app-downloads.html'; | ||
44 | } | 17 | } |
45 | } | 18 | } |
46 | }; | 19 | }; |
-
Please register or login to post a comment