Merge branch 'feature/plustar' into release/4.9.1.0
Showing
2 changed files
with
24 additions
and
10 deletions
@@ -10,6 +10,7 @@ var plusstar = {}, | @@ -10,6 +10,7 @@ var plusstar = {}, | ||
10 | require('../common'); | 10 | require('../common'); |
11 | 11 | ||
12 | plusstar = { | 12 | plusstar = { |
13 | + scrollObj: {}, | ||
13 | init: function() { | 14 | init: function() { |
14 | var that = this, | 15 | var that = this, |
15 | $liDom, | 16 | $liDom, |
@@ -49,6 +50,12 @@ plusstar = { | @@ -49,6 +50,12 @@ plusstar = { | ||
49 | tabNav: function(code) { | 50 | tabNav: function(code) { |
50 | var that = this; | 51 | var that = this; |
51 | 52 | ||
53 | + if (typeof this.scrollObj[code] === 'undefined') { | ||
54 | + // 如果不是第一次点击,回顶部 | ||
55 | + $(document).scrollTop(0); | ||
56 | + this.scrollObj[code] = true; | ||
57 | + } | ||
58 | + | ||
52 | loading.showLoadingMask(); | 59 | loading.showLoadingMask(); |
53 | $.ajax({ | 60 | $.ajax({ |
54 | type: 'GET', | 61 | type: 'GET', |
@@ -71,7 +78,7 @@ plusstar = { | @@ -71,7 +78,7 @@ plusstar = { | ||
71 | loading.hideLoadingMask(); | 78 | loading.hideLoadingMask(); |
72 | lazyLoad($('img.lazy')); | 79 | lazyLoad($('img.lazy')); |
73 | 80 | ||
74 | - //处理左右滑动,未加载的图片 | 81 | + // 处理左右滑动,未加载的图片 |
75 | setTimeout(function() { | 82 | setTimeout(function() { |
76 | $('img.lazy').each(function() { | 83 | $('img.lazy').each(function() { |
77 | if ($(this).attr('src') !== $(this).data('original')) { | 84 | if ($(this).attr('src') !== $(this).data('original')) { |
@@ -14,6 +14,9 @@ | @@ -14,6 +14,9 @@ | ||
14 | height: 80px; | 14 | height: 80px; |
15 | font-size: 16px; | 15 | font-size: 16px; |
16 | text-align: center; | 16 | text-align: center; |
17 | + position: fixed; | ||
18 | + z-index: 10; | ||
19 | + background-color: #fff; | ||
17 | 20 | ||
18 | li { | 21 | li { |
19 | display: block; | 22 | display: block; |
@@ -49,6 +52,12 @@ | @@ -49,6 +52,12 @@ | ||
49 | } | 52 | } |
50 | } | 53 | } |
51 | 54 | ||
55 | + .plusstar-resources:before { | ||
56 | + height: 72px; | ||
57 | + content: ""; | ||
58 | + display: inline-block; | ||
59 | + } | ||
60 | + | ||
52 | .resources { | 61 | .resources { |
53 | background: #f6f6f6; | 62 | background: #f6f6f6; |
54 | 63 | ||
@@ -72,15 +81,13 @@ | @@ -72,15 +81,13 @@ | ||
72 | .header-title { | 81 | .header-title { |
73 | position: relative; | 82 | position: relative; |
74 | width: 100%; | 83 | width: 100%; |
75 | - height: 100px; | 84 | + height: 70px; |
76 | font-size: 28px; | 85 | font-size: 28px; |
77 | - line-height: 100px; | 86 | + line-height: 70px; |
78 | text-align: center; | 87 | text-align: center; |
79 | font-weight: bold; | 88 | font-weight: bold; |
80 | - border-top: 1px solid #eee; | ||
81 | margin: 0; | 89 | margin: 0; |
82 | margin-top: 20px; | 90 | margin-top: 20px; |
83 | - background: #fff; | ||
84 | 91 | ||
85 | .more { | 92 | .more { |
86 | position: absolute; | 93 | position: absolute; |
@@ -88,6 +95,8 @@ | @@ -88,6 +95,8 @@ | ||
88 | right: 0; | 95 | right: 0; |
89 | width: 100px; | 96 | width: 100px; |
90 | height: 100px; | 97 | height: 100px; |
98 | + color: #b0b0b0; | ||
99 | + font-size: 50px; | ||
91 | } | 100 | } |
92 | 101 | ||
93 | &:first-child { | 102 | &:first-child { |
@@ -178,14 +187,12 @@ | @@ -178,14 +187,12 @@ | ||
178 | a { | 187 | a { |
179 | display: inline-block; | 188 | display: inline-block; |
180 | width: 50%; | 189 | width: 50%; |
181 | - height: 375px; | ||
182 | overflow: hidden; | 190 | overflow: hidden; |
183 | } | 191 | } |
184 | - | ||
185 | - img { | ||
186 | - width: 100%; | ||
187 | - height: 100%; | ||
188 | } | 192 | } |
193 | + | ||
194 | + .goods { | ||
195 | + background-color: #fff; | ||
189 | } | 196 | } |
190 | } | 197 | } |
191 | } | 198 | } |
-
Please register or login to post a comment