Authored by 梁志锋

去掉懒加载逻辑

@@ -110,7 +110,7 @@ const _processIndexData = (dataList) => { @@ -110,7 +110,7 @@ const _processIndexData = (dataList) => {
110 let url = `/guang/star/detail?tag=${data.tagName}&openby:yohobuy{"action":"go.h5","params":{"id":"","share":"","shareparam":{},"islogin":"N","type":0,"updateflag":"N","url":"http://m.yohobuy.com/guang/star/detail","param":{"tag":"${data.tagName}"}}}`; // eslint-disable-line 110 let url = `/guang/star/detail?tag=${data.tagName}&openby:yohobuy{"action":"go.h5","params":{"id":"","share":"","shareparam":{},"islogin":"N","type":0,"updateflag":"N","url":"http://m.yohobuy.com/guang/star/detail","param":{"tag":"${data.tagName}"}}}`; // eslint-disable-line
111 111
112 formatData.starAvatar.push({ 112 formatData.starAvatar.push({
113 - noLazy: index < 6, 113 + //noLazy: index < 6,
114 url: url, 114 url: url,
115 cover: data.cover ? (data.cover + '?imageView2/2/w/180/h/180') : data.cover 115 cover: data.cover ? (data.cover + '?imageView2/2/w/180/h/180') : data.cover
116 }); 116 });
@@ -188,8 +188,6 @@ function initAction() { @@ -188,8 +188,6 @@ function initAction() {
188 $avatarWrap = $('.avatar-wrap'); 188 $avatarWrap = $('.avatar-wrap');
189 bannerLen = $('.avatar-wrap').find('.swiper-slide').length; 189 bannerLen = $('.avatar-wrap').find('.swiper-slide').length;
190 190
191 - setIndexAction();  
192 -  
193 // if ($avatarClone) { 191 // if ($avatarClone) {
194 // $avatarClone.remove(); 192 // $avatarClone.remove();
195 // } 193 // }
@@ -202,6 +200,7 @@ function initAction() { @@ -202,6 +200,7 @@ function initAction() {
202 effect: 'fadeIn' 200 effect: 'fadeIn'
203 }); 201 });
204 202
  203 + setIndexAction();
205 } 204 }
206 205
207 initAction(); 206 initAction();
@@ -258,7 +257,8 @@ starIScroll.iScroll.on('scrollStart', function() { @@ -258,7 +257,8 @@ starIScroll.iScroll.on('scrollStart', function() {
258 bannerSwiper && bannerSwiper.stopAutoplay(); 257 bannerSwiper && bannerSwiper.stopAutoplay();
259 }); 258 });
260 259
261 -// starIScroll.iScroll.on('scroll', function() { 260 + starIScroll.iScroll.on('scroll', function() {
  261 + $window.trigger('scroll');
262 // var avatarOffsetT; 262 // var avatarOffsetT;
263 // 263 //
264 // if (this.directionY !== -1) { 264 // if (this.directionY !== -1) {
@@ -300,7 +300,7 @@ starIScroll.iScroll.on('scrollStart', function() { @@ -300,7 +300,7 @@ starIScroll.iScroll.on('scrollStart', function() {
300 // } else { 300 // } else {
301 // $avatarClone.hide(); 301 // $avatarClone.hide();
302 // } 302 // }
303 -// }); 303 + });
304 304
305 starIScroll.iScroll.on('scrollEnd', function() { 305 starIScroll.iScroll.on('scrollEnd', function() {
306 // $loadingTip.slideUp(); 306 // $loadingTip.slideUp();