Showing
3 changed files
with
39 additions
and
0 deletions
@@ -50,6 +50,10 @@ if ($('.cart-nav').length > 0) { | @@ -50,6 +50,10 @@ if ($('.cart-nav').length > 0) { | ||
50 | //trigger lazyload | 50 | //trigger lazyload |
51 | $(window).trigger('scroll'); | 51 | $(window).trigger('scroll'); |
52 | }); | 52 | }); |
53 | + | ||
54 | + setTimeout(function() { | ||
55 | + $('#presell-tip').addClass('hide'); | ||
56 | + }, 3000); | ||
53 | } | 57 | } |
54 | 58 | ||
55 | $('.btn-balance').on('touchend', function() { | 59 | $('.btn-balance').on('touchend', function() { |
@@ -36,6 +36,37 @@ | @@ -36,6 +36,37 @@ | ||
36 | li:first-child span { | 36 | li:first-child span { |
37 | border-right: 1px solid #e0e0e0; | 37 | border-right: 1px solid #e0e0e0; |
38 | } | 38 | } |
39 | + | ||
40 | + li:last-child { | ||
41 | + position: relative; | ||
42 | + } | ||
43 | + | ||
44 | + .presell-tip { | ||
45 | + position: absolute; | ||
46 | + z-index: 1; | ||
47 | + left: -2rem; | ||
48 | + top: 1.75rem; | ||
49 | + } | ||
50 | + | ||
51 | + .triangle { | ||
52 | + width: 0; | ||
53 | + height: 0; | ||
54 | + border-left: 8px solid transparent; | ||
55 | + border-right: 8px solid transparent; | ||
56 | + border-bottom: 12px solid #000; | ||
57 | + margin-left: 6rem; | ||
58 | + } | ||
59 | + | ||
60 | + .pt-content { | ||
61 | + position: relative; | ||
62 | + padding: 10px; | ||
63 | + background: #000; | ||
64 | + color: #fff; | ||
65 | + font-size: 20px; | ||
66 | + @include border-radius(5px); | ||
67 | + text-align: center; | ||
68 | + width: 7rem; | ||
69 | + } | ||
39 | } | 70 | } |
40 | 71 | ||
41 | .login-info { | 72 | .login-info { |
@@ -28,6 +28,10 @@ | @@ -28,6 +28,10 @@ | ||
28 | <span> | 28 | <span> |
29 | 预售商品({{presellGoodsCount}}) | 29 | 预售商品({{presellGoodsCount}}) |
30 | </span> | 30 | </span> |
31 | + <div id="presell-tip" class="presell-tip"> | ||
32 | + <div class="triangle"></div> | ||
33 | + <p class="pt-content">预售商品点这里结算哦~</p> | ||
34 | + </div> | ||
31 | </li> | 35 | </li> |
32 | </ul> | 36 | </ul> |
33 | {{/if}} | 37 | {{/if}} |
-
Please register or login to post a comment