Showing
3 changed files
with
13 additions
and
8 deletions
@@ -69,8 +69,10 @@ require('./good'); | @@ -69,8 +69,10 @@ require('./good'); | ||
69 | lazyLoad($('img.lazy')); | 69 | lazyLoad($('img.lazy')); |
70 | 70 | ||
71 | if (typeof window.cookie === 'function' && 'y' === window.cookie('_hasShowCartPresellTip')) { | 71 | if (typeof window.cookie === 'function' && 'y' === window.cookie('_hasShowCartPresellTip')) { |
72 | - $('#presell-tip').addClass('hide'); | 72 | + $('#presell-tip').removeClass('show').addClass('hide'); |
73 | hasShowCartPresellTip = true; | 73 | hasShowCartPresellTip = true; |
74 | +} else { | ||
75 | + $('#presell-tip').removeClass('hide').addClass('show'); | ||
74 | } | 76 | } |
75 | 77 | ||
76 | if ('advance' === cartType) { | 78 | if ('advance' === cartType) { |
@@ -108,9 +110,9 @@ if ($('.cart-nav').length > 0) { | @@ -108,9 +110,9 @@ if ($('.cart-nav').length > 0) { | ||
108 | $(window).trigger('scroll'); | 110 | $(window).trigger('scroll'); |
109 | }); | 111 | }); |
110 | 112 | ||
111 | - if(!hasShowCartPresellTip) { | 113 | + if (!hasShowCartPresellTip) { |
112 | setTimeout(function() { | 114 | setTimeout(function() { |
113 | - $('#presell-tip').addClass('hide'); | 115 | + $('#presell-tip').removeClass('show').addClass('hide'); |
114 | window.setCookie('_hasShowCartPresellTip', 'y'); | 116 | window.setCookie('_hasShowCartPresellTip', 'y'); |
115 | }, 3000); | 117 | }, 3000); |
116 | } | 118 | } |
@@ -32,13 +32,16 @@ function showFooter() { | @@ -32,13 +32,16 @@ function showFooter() { | ||
32 | }, 200); | 32 | }, 200); |
33 | } | 33 | } |
34 | 34 | ||
35 | -if ($('#goodsDiscount h1').length < 1) { | ||
36 | - $('.dropdown').remove(); | ||
37 | -} | ||
38 | showFooter(); | 35 | showFooter(); |
39 | 36 | ||
37 | +require('./like'); | ||
38 | + | ||
40 | lazyLoad($('img.lazy')); | 39 | lazyLoad($('img.lazy')); |
41 | 40 | ||
41 | +if ($('#goodsDiscount h1').length < 1) { | ||
42 | + $('.dropdown').remove(); | ||
43 | +} | ||
44 | + | ||
42 | //顶部swiper | 45 | //顶部swiper |
43 | goodsSwiper = new Swiper('.banner-swiper', { | 46 | goodsSwiper = new Swiper('.banner-swiper', { |
44 | lazyLoading: true, | 47 | lazyLoading: true, |
@@ -100,4 +103,4 @@ if ($('.good-detail-page').length > 0) { | @@ -100,4 +103,4 @@ if ($('.good-detail-page').length > 0) { | ||
100 | $('#yoho-footer').css('border-top', '1px solid #e0e0e0'); | 103 | $('#yoho-footer').css('border-top', '1px solid #e0e0e0'); |
101 | } | 104 | } |
102 | 105 | ||
103 | -require('./like'); | 106 | + |
@@ -28,7 +28,7 @@ | @@ -28,7 +28,7 @@ | ||
28 | <span id="presell-cart-nav"> | 28 | <span id="presell-cart-nav"> |
29 | 预售商品({{presellGoodsCount}}) | 29 | 预售商品({{presellGoodsCount}}) |
30 | </span> | 30 | </span> |
31 | - <div id="presell-tip" class="presell-tip"> | 31 | + <div id="presell-tip" class="presell-tip hide"> |
32 | <div class="triangle"></div> | 32 | <div class="triangle"></div> |
33 | <p class="pt-content">预售商品点这里结算哦~</p> | 33 | <p class="pt-content">预售商品点这里结算哦~</p> |
34 | </div> | 34 | </div> |
-
Please register or login to post a comment