Showing
4 changed files
with
2 additions
and
14 deletions
@@ -5317,8 +5317,6 @@ var goodsDiscountEl = document.getElementById('goodsDiscount'), | @@ -5317,8 +5317,6 @@ var goodsDiscountEl = document.getElementById('goodsDiscount'), | ||
5317 | 5317 | ||
5318 | var $cart = $('.cart-bar'); | 5318 | var $cart = $('.cart-bar'); |
5319 | 5319 | ||
5320 | -var limitSaleHammer = (limitSaleHammer = document.getElementById('limit-sale')) && new Hammer(limitSaleHammer); | ||
5321 | - | ||
5322 | var appUrl = $('input[name="limitCodeUrl"]').val(); | 5320 | var appUrl = $('input[name="limitCodeUrl"]').val(); |
5323 | 5321 | ||
5324 | var dialog = require("js/me/dialog"); | 5322 | var dialog = require("js/me/dialog"); |
@@ -5383,13 +5381,8 @@ if (goodsDiscountHammer && $discountFolder.children().length > 0) { | @@ -5383,13 +5381,8 @@ if (goodsDiscountHammer && $discountFolder.children().length > 0) { | ||
5383 | 5381 | ||
5384 | $('#limit-sale').on('touchend', function(e) { | 5382 | $('#limit-sale').on('touchend', function(e) { |
5385 | var loginUrl = $('#loginUrl').val(), | 5383 | var loginUrl = $('#loginUrl').val(), |
5386 | - u = navigator.userAgent, | ||
5387 | ifr; | 5384 | ifr; |
5388 | 5385 | ||
5389 | - var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, | ||
5390 | - isIPhone = u.indexOf('iPhone') > -1, | ||
5391 | - isIPad = u.indexOf('iPad') > -1; | ||
5392 | - | ||
5393 | e.stopPropagation(); | 5386 | e.stopPropagation(); |
5394 | 5387 | ||
5395 | if(loginUrl) { | 5388 | if(loginUrl) { |
@@ -5401,7 +5394,6 @@ $('#limit-sale').on('touchend', function(e) { | @@ -5401,7 +5394,6 @@ $('#limit-sale').on('touchend', function(e) { | ||
5401 | rightBtnText: '打开Yoho!Buy有货APP' | 5394 | rightBtnText: '打开Yoho!Buy有货APP' |
5402 | } | 5395 | } |
5403 | }, function() { | 5396 | }, function() { |
5404 | - | ||
5405 | ifr = document.createElement('iframe'); | 5397 | ifr = document.createElement('iframe'); |
5406 | ifr.src = appUrl; | 5398 | ifr.src = appUrl; |
5407 | ifr.style.display = 'none'; | 5399 | ifr.style.display = 'none'; |
@@ -5409,12 +5401,8 @@ $('#limit-sale').on('touchend', function(e) { | @@ -5409,12 +5401,8 @@ $('#limit-sale').on('touchend', function(e) { | ||
5409 | window.location.href = appUrl; | 5401 | window.location.href = appUrl; |
5410 | window.setTimeout(function(){ | 5402 | window.setTimeout(function(){ |
5411 | document.body.removeChild(ifr); | 5403 | document.body.removeChild(ifr); |
5412 | - if (isAndroid) { | ||
5413 | - window.location.href = 'http://yoho-apps.qiniudn.com/YohoBuy_YOHO.apk'; | ||
5414 | - } else if (isIPhone || isIPad) { | ||
5415 | - window.location.href = 'https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8'; | ||
5416 | - } | ||
5417 | - },3000) | 5404 | + window.location.href = 'http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho'; |
5405 | + },3000); | ||
5418 | 5406 | ||
5419 | }, undefined, true); | 5407 | }, undefined, true); |
5420 | 5408 |
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
-
Please register or login to post a comment