Showing
1 changed file
with
7 additions
and
2 deletions
@@ -82,6 +82,7 @@ if (goodsDiscountHammer && $discountFolder.children().length > 0) { | @@ -82,6 +82,7 @@ if (goodsDiscountHammer && $discountFolder.children().length > 0) { | ||
82 | 82 | ||
83 | $('#limit-sale').on('touchend', function(e) { | 83 | $('#limit-sale').on('touchend', function(e) { |
84 | var loginUrl = $('#loginUrl').val(), | 84 | var loginUrl = $('#loginUrl').val(), |
85 | + time, | ||
85 | ifr; | 86 | ifr; |
86 | 87 | ||
87 | e.stopPropagation(); | 88 | e.stopPropagation(); |
@@ -100,10 +101,14 @@ $('#limit-sale').on('touchend', function(e) { | @@ -100,10 +101,14 @@ $('#limit-sale').on('touchend', function(e) { | ||
100 | ifr.style.display = 'none'; | 101 | ifr.style.display = 'none'; |
101 | document.body.appendChild(ifr); | 102 | document.body.appendChild(ifr); |
102 | window.location.href = appUrl; | 103 | window.location.href = appUrl; |
103 | - window.setTimeout(function(){ | 104 | + |
105 | + time = Date.now(); | ||
106 | + window.setTimeout(function() { | ||
104 | document.body.removeChild(ifr); | 107 | document.body.removeChild(ifr); |
108 | + if (Date.now()- time < 3200) { | ||
105 | window.location.href = 'http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho'; | 109 | window.location.href = 'http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho'; |
106 | - },3000); | 110 | + } |
111 | + }, 3000); | ||
107 | 112 | ||
108 | }, undefined, true); | 113 | }, undefined, true); |
109 | 114 |
-
Please register or login to post a comment