Authored by 李靖

删除限定,lazyload,修改地址

@@ -42,7 +42,7 @@ router.get(/^\/(.*?)-plusstar/, rewrite.resolve, plusstar.index); // 潮流优 @@ -42,7 +42,7 @@ router.get(/^\/(.*?)-plusstar/, rewrite.resolve, plusstar.index); // 潮流优
42 router.post('/plusstar/userSkn', plusstar.userSkn); // 用户推荐skn 42 router.post('/plusstar/userSkn', plusstar.userSkn); // 用户推荐skn
43 router.get('/plusstar/resources-template', plusstar.resourcesTemplate); // 潮流优选首页-资源位 43 router.get('/plusstar/resources-template', plusstar.resourcesTemplate); // 潮流优选首页-资源位
44 router.post('/plusstar/resources-goodsList', plusstar.resourcesGoodsList); // 潮流优选首页-资源位-商品列表 44 router.post('/plusstar/resources-goodsList', plusstar.resourcesGoodsList); // 潮流优选首页-资源位-商品列表
45 -router.get('/type', index.index); // 逛首页 45 +router.get('/type', index.index); // 旧版逛首页
46 router.get('/tags/index', index.tag); // 逛标签页 46 router.get('/tags/index', index.tag); // 逛标签页
47 47
48 router.get('/author/index', rewrite.channel, index.editorRedirect); // 编辑简介 48 router.get('/author/index', rewrite.channel, index.editorRedirect); // 编辑简介
@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
6 {{# floorRes.focus}} 6 {{# floorRes.focus}}
7 <div class="swiper-slide"> 7 <div class="swiper-slide">
8 <a href="{{url}}"> 8 <a href="{{url}}">
9 - <img src="{{image2 src w=750 h=480 q=60}}" alt="{{title}}" /> 9 + <img class="swiper-lazy" data-src="{{image2 src w=750 h=480 q=60}}" />
10 </a> 10 </a>
11 </div> 11 </div>
12 {{/ floorRes.focus}} 12 {{/ floorRes.focus}}
@@ -38,16 +38,16 @@ @@ -38,16 +38,16 @@
38 {{#if floorRes.renQi}} 38 {{#if floorRes.renQi}}
39 <div class="big-title"> 39 <div class="big-title">
40 人气 40 人气
41 - <a class="iconfont" href="//guang.m.yohobuy.com/?gender={{gender}}&type=1001">MORE&nbsp;&#xe604;</a> 41 + <a class="iconfont" href="//m.yohobuy.com/guang/type?gender={{gender}}&type=1001">MORE&nbsp;&#xe604;</a>
42 </div> 42 </div>
43 <div class="swiper-page"> 43 <div class="swiper-page">
44 <div class="swiper-container"> 44 <div class="swiper-container">
45 <div class="swiper-wrapper"> 45 <div class="swiper-wrapper">
46 {{# floorRes.renQi}} 46 {{# floorRes.renQi}}
47 <div class="swiper-slide"> 47 <div class="swiper-slide">
48 - <a href="//guang.m.yohobuy.com/info/index?id={{id}}"> 48 + <a href="//m.yohobuy.com/guang/{{id}}.html">
49 <div class="page-c"> 49 <div class="page-c">
50 - <img src="{{image2 src w=690 h=430 q=60}}" /> 50 + <img class="swiper-lazy" data-src="{{image2 src w=690 h=430 q=60}}" />
51 <div class="info"> 51 <div class="info">
52 <p class="name eps">{{title}}</p> 52 <p class="name eps">{{title}}</p>
53 <p class="type eps">{{intro}}</p> 53 <p class="type eps">{{intro}}</p>
@@ -63,14 +63,14 @@ @@ -63,14 +63,14 @@
63 {{#if floorRes.daPei}} 63 {{#if floorRes.daPei}}
64 <div class="big-title"> 64 <div class="big-title">
65 搭配 65 搭配
66 - <a class="iconfont" href="//guang.m.yohobuy.com/?gender={{gender}}&type=2">MORE&nbsp;&#xe604;</a> 66 + <a class="iconfont" href="//m.yohobuy.com/guang/type?gender={{gender}}&type=2">MORE&nbsp;&#xe604;</a>
67 </div> 67 </div>
68 <div class="swiper-collocation"> 68 <div class="swiper-collocation">
69 <div class="swiper-container"> 69 <div class="swiper-container">
70 <div class="swiper-wrapper"> 70 <div class="swiper-wrapper">
71 {{# floorRes.daPei}} 71 {{# floorRes.daPei}}
72 <div class="swiper-slide"> 72 <div class="swiper-slide">
73 - <a href="//guang.m.yohobuy.com/info/index?id={{id}}"> 73 + <a href="//m.yohobuy.com/guang/{{id}}.html">
74 <img class="swiper-lazy" data-src="{{image2 src w=590 h=370 q=60}}" /> 74 <img class="swiper-lazy" data-src="{{image2 src w=590 h=370 q=60}}" />
75 <p class="eps-2">{{title}}</p> 75 <p class="eps-2">{{title}}</p>
76 </a> 76 </a>
@@ -80,6 +80,7 @@ @@ -80,6 +80,7 @@
80 </div> 80 </div>
81 </div> 81 </div>
82 {{/if}} 82 {{/if}}
  83 + {{!
83 <div class="big-title hide"> 84 <div class="big-title hide">
84 限定 85 限定
85 <span class="iconfont">MORE&nbsp;&#xe604;</span> 86 <span class="iconfont">MORE&nbsp;&#xe604;</span>
@@ -101,15 +102,16 @@ @@ -101,15 +102,16 @@
101 <div class="swiper-pagination"></div> 102 <div class="swiper-pagination"></div>
102 </div> 103 </div>
103 </div> 104 </div>
  105 + }}
104 {{#if floorRes.haoHuo}} 106 {{#if floorRes.haoHuo}}
105 <div class="big-title"> 107 <div class="big-title">
106 好货 108 好货
107 - <a class="iconfont" href="//guang.m.yohobuy.com/?gender={{gender}}&type=4">MORE&nbsp;&#xe604;</a> 109 + <a class="iconfont" href="//m.yohobuy.com/guang?gender={{gender}}&type=4">MORE&nbsp;&#xe604;</a>
108 </div> 110 </div>
109 <div class="goods-list clearfix"> 111 <div class="goods-list clearfix">
110 {{# floorRes.haoHuo}} 112 {{# floorRes.haoHuo}}
111 <div class="goods-item"> 113 <div class="goods-item">
112 - <a href="//guang.m.yohobuy.com/info/index?id={{id}}"> 114 + <a href="//m.yohobuy.com/guang/{{id}}.html">
113 <img class="lazy" data-original="{{image2 src w=360 h=224 q=60}}" /> 115 <img class="lazy" data-original="{{image2 src w=360 h=224 q=60}}" />
114 <div class="info"> 116 <div class="info">
115 <p class="name eps-2 eps-3">{{title}}</p> 117 <p class="name eps-2 eps-3">{{title}}</p>
@@ -150,7 +152,7 @@ @@ -150,7 +152,7 @@
150 </div> 152 </div>
151 <div class="big-title"> 153 <div class="big-title">
152 154
153 - <a class="iconfont" href="//guang.m.yohobuy.com/?gender={{gender}}&type=0">MORE&nbsp;&#xe604;</a> 155 + <a class="iconfont" href="//m.yohobuy.com/guang/type?gender={{gender}}&type=0">MORE&nbsp;&#xe604;</a>
154 </div> 156 </div>
155 <div class="guang-list"></div> 157 <div class="guang-list"></div>
156 <div class="trend-list hide"> 158 <div class="trend-list hide">
@@ -163,6 +165,6 @@ @@ -163,6 +165,6 @@
163 </div> 165 </div>
164 </div> 166 </div>
165 </div> 167 </div>
166 - <a href="//guang.m.yohobuy.com/?gender={{gender}}&type=0" class="guang-fixed fixed"></a> 168 + <a href="//m.yohobuy.com/guang/type?gender={{gender}}&type=0" class="guang-fixed fixed"></a>
167 <div class="float-top fixed"></div> 169 <div class="float-top fixed"></div>
168 </div> 170 </div>
1 {{# list}} 1 {{# list}}
2 <div class="guang-item"> 2 <div class="guang-item">
3 - <a href="//guang.m.yohobuy.com/info/index?id={{id}}"> 3 + <a href="//m.yohobuy.com/guang/{{id}}.html">
4 <div class="page-c"> 4 <div class="page-c">
5 <img class="lazy" data-original="{{image2 src w=690 h=430 q=30}}" /> 5 <img class="lazy" data-original="{{image2 src w=690 h=430 q=30}}" />
6 <div class="info"> 6 <div class="info">
@@ -32,7 +32,6 @@ class GuangNew extends Page { @@ -32,7 +32,6 @@ class GuangNew extends Page {
32 this.swiperTab(); 32 this.swiperTab();
33 this.swiperPage(); 33 this.swiperPage();
34 this.swiperCollocation(); 34 this.swiperCollocation();
35 - this.swiperLimit();  
36 this.swiperShow(); 35 this.swiperShow();
37 this.fixed(); 36 this.fixed();
38 this.fixedRetop(); 37 this.fixedRetop();
@@ -105,7 +104,10 @@ class GuangNew extends Page { @@ -105,7 +104,10 @@ class GuangNew extends Page {
105 if ($('.swiper-top').length > 0) { 104 if ($('.swiper-top').length > 0) {
106 new Swiper('.swiper-top .swiper-container', { 105 new Swiper('.swiper-top .swiper-container', {
107 pagination: '.swiper-pagination .wiper-pagination-bullets', 106 pagination: '.swiper-pagination .wiper-pagination-bullets',
108 - paginationClickable: true 107 + paginationClickable: true,
  108 + lazyLoading: true,
  109 + lazyLoadingInPrevNext: true,
  110 + lazyLoadingInPrevNextAmount: 1
109 }); 111 });
110 } 112 }
111 } 113 }
@@ -169,7 +171,10 @@ class GuangNew extends Page { @@ -169,7 +171,10 @@ class GuangNew extends Page {
169 depth: 0, 171 depth: 0,
170 modifier: 1, 172 modifier: 1,
171 slideShadows: false 173 slideShadows: false
172 - } 174 + },
  175 + lazyLoading: true,
  176 + lazyLoadingInPrevNext: true,
  177 + lazyLoadingInPrevNextAmount: 1
173 }); 178 });
174 } 179 }
175 } 180 }
@@ -181,20 +186,22 @@ class GuangNew extends Page { @@ -181,20 +186,22 @@ class GuangNew extends Page {
181 centeredSlides: true, 186 centeredSlides: true,
182 slidesPerView: 'auto', 187 slidesPerView: 'auto',
183 loop: true, 188 loop: true,
184 - lazyLoading: true 189 + lazyLoading: true,
  190 + lazyLoadingInPrevNext: true,
  191 + lazyLoadingInPrevNextAmount: 1
185 }); 192 });
186 } 193 }
187 } 194 }
188 195
189 - // 限定swiper  
190 - swiperLimit() {  
191 - if ($('.swiper-limit').length > 0) {  
192 - new Swiper('.swiper-limit .swiper-container', {  
193 - pagination: '.swiper-pagination',  
194 - paginationClickable: true  
195 - });  
196 - }  
197 - } 196 + // // 限定swiper
  197 + // swiperLimit() {
  198 + // if ($('.swiper-limit').length > 0) {
  199 + // new Swiper('.swiper-limit .swiper-container', {
  200 + // pagination: '.swiper-pagination',
  201 + // paginationClickable: true
  202 + // });
  203 + // }
  204 + // }
198 205
199 // showswiper 206 // showswiper
200 swiperShow() { 207 swiperShow() {