Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
4 changed files
with
16 additions
and
11 deletions
@@ -67,11 +67,12 @@ function show(html, cb) { | @@ -67,11 +67,12 @@ function show(html, cb) { | ||
67 | document.documentElement.scrollLeft || document.body.scrollLeft, | 67 | document.documentElement.scrollLeft || document.body.scrollLeft, |
68 | document.documentElement.scrollTop || document.body.scrollTop | 68 | document.documentElement.scrollTop || document.body.scrollTop |
69 | ], | 69 | ], |
70 | - $html = $('html'); // it would make more sense to apply this to body, but IE7 won't have that | 70 | + $html = $('html, body'); // it would make more sense to apply this to body, but IE7 won't have that |
71 | 71 | ||
72 | $html.data('scroll-position', scrollPosition); | 72 | $html.data('scroll-position', scrollPosition); |
73 | $html.data('previous-overflow', $html.css('overflow')); | 73 | $html.data('previous-overflow', $html.css('overflow')); |
74 | $html.css('overflow', 'hidden'); | 74 | $html.css('overflow', 'hidden'); |
75 | + $html.css('height', '100%'); | ||
75 | window.scrollTo(scrollPosition[0], scrollPosition[1]); | 76 | window.scrollTo(scrollPosition[0], scrollPosition[1]); |
76 | 77 | ||
77 | if (html) { | 78 | if (html) { |
@@ -89,11 +90,12 @@ function show(html, cb) { | @@ -89,11 +90,12 @@ function show(html, cb) { | ||
89 | 90 | ||
90 | //隐藏当前Panel | 91 | //隐藏当前Panel |
91 | function hide() { | 92 | function hide() { |
92 | - var $html = $('html'), | 93 | + var $html = $('html, body'), |
93 | scrollPosition = $html.data('scroll-position'); | 94 | scrollPosition = $html.data('scroll-position'); |
94 | 95 | ||
95 | // un-lock scroll position | 96 | // un-lock scroll position |
96 | $html.css('overflow', $html.data('previous-overflow')); | 97 | $html.css('overflow', $html.data('previous-overflow')); |
98 | + $html.css('height', 'auto'); | ||
97 | window.scrollTo(scrollPosition[0], scrollPosition[1]); | 99 | window.scrollTo(scrollPosition[0], scrollPosition[1]); |
98 | $('.chose-panel').hide(); | 100 | $('.chose-panel').hide(); |
99 | } | 101 | } |
@@ -19,7 +19,7 @@ var $selectAllBtn = $('.balance .checkbox'), | @@ -19,7 +19,7 @@ var $selectAllBtn = $('.balance .checkbox'), | ||
19 | ellipsis.init(); | 19 | ellipsis.init(); |
20 | 20 | ||
21 | lazyLoad({ | 21 | lazyLoad({ |
22 | - try_again_css: 'good-failure' | 22 | + try_again_css: 'order-failure' |
23 | }); | 23 | }); |
24 | 24 | ||
25 | setTimeout(function() { | 25 | setTimeout(function() { |
@@ -28,12 +28,16 @@ | @@ -28,12 +28,16 @@ | ||
28 | } | 28 | } |
29 | 29 | ||
30 | .few-tag { | 30 | .few-tag { |
31 | - width: 148rem / $pxConvertRem; | 31 | + width: 150rem / $pxConvertRem; |
32 | position: absolute; | 32 | position: absolute; |
33 | - left: 92rem / $pxConvertRem; | ||
34 | text-align: center; | 33 | text-align: center; |
35 | - top: 75%; | 34 | + top: 72%; |
36 | color: #fff; | 35 | color: #fff; |
36 | + | ||
37 | + span { | ||
38 | + display: inline-block; | ||
39 | + @include transform(scale(0.833)); | ||
40 | + } | ||
37 | } | 41 | } |
38 | 42 | ||
39 | .gift-tag { | 43 | .gift-tag { |
@@ -71,8 +75,7 @@ | @@ -71,8 +75,7 @@ | ||
71 | 75 | ||
72 | .thumb { | 76 | .thumb { |
73 | float: left; | 77 | float: left; |
74 | - width: 180rem / $pxConvertRem; | ||
75 | - height: 200rem / $pxConvertRem; | 78 | + width: 150rem / $pxConvertRem; |
76 | background-size: 100%; | 79 | background-size: 100%; |
77 | background-repeat: no-repeat; | 80 | background-repeat: no-repeat; |
78 | } | 81 | } |
@@ -80,7 +83,7 @@ | @@ -80,7 +83,7 @@ | ||
80 | .deps { | 83 | .deps { |
81 | position: relative; | 84 | position: relative; |
82 | width: 380rem / $pxConvertRem; | 85 | width: 380rem / $pxConvertRem; |
83 | - margin-left: 4.7rem; | 86 | + margin-left: 180rem / $pxConvertRem; |
84 | border-bottom: 1px solid #e0e0e0; | 87 | border-bottom: 1px solid #e0e0e0; |
85 | padding: 0.5rem 0; | 88 | padding: 0.5rem 0; |
86 | } | 89 | } |
@@ -13,10 +13,10 @@ | @@ -13,10 +13,10 @@ | ||
13 | <img class="thumb lazy" data-original="{{thumb}}"> | 13 | <img class="thumb lazy" data-original="{{thumb}}"> |
14 | </a> | 14 | </a> |
15 | {{#if isAdvanceBuy}} | 15 | {{#if isAdvanceBuy}} |
16 | - <p class="few-tag plus-tag">加价购</p> | 16 | + <p class="few-tag plus-tag"><span>加价购</span></p> |
17 | {{/if}} | 17 | {{/if}} |
18 | {{#if isGift}} | 18 | {{#if isGift}} |
19 | - <p class="few-tag gift-tag">赠品</p> | 19 | + <p class="few-tag gift-tag"><span>赠品</span></p> |
20 | {{/if}} | 20 | {{/if}} |
21 | 21 | ||
22 | <div class="deps show"> | 22 | <div class="deps show"> |
-
Please register or login to post a comment