Authored by 梁志锋

限购商品详情 跳转APP

... ... @@ -82,6 +82,7 @@ if (goodsDiscountHammer && $discountFolder.children().length > 0) {
$('#limit-sale').on('touchend', function(e) {
var loginUrl = $('#loginUrl').val(),
time,
ifr;
e.stopPropagation();
... ... @@ -100,10 +101,14 @@ $('#limit-sale').on('touchend', function(e) {
ifr.style.display = 'none';
document.body.appendChild(ifr);
window.location.href = appUrl;
window.setTimeout(function(){
time = Date.now();
window.setTimeout(function() {
document.body.removeChild(ifr);
if (Date.now()- time < 3200) {
window.location.href = 'http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho';
},3000);
}
}, 3000);
}, undefined, true);
... ...