Authored by 李靖

删除限定,lazyload,修改地址

... ... @@ -42,7 +42,7 @@ router.get(/^\/(.*?)-plusstar/, rewrite.resolve, plusstar.index); // 潮流优
router.post('/plusstar/userSkn', plusstar.userSkn); // 用户推荐skn
router.get('/plusstar/resources-template', plusstar.resourcesTemplate); // 潮流优选首页-资源位
router.post('/plusstar/resources-goodsList', plusstar.resourcesGoodsList); // 潮流优选首页-资源位-商品列表
router.get('/type', index.index); // 逛首页
router.get('/type', index.index); // 旧版逛首页
router.get('/tags/index', index.tag); // 逛标签页
router.get('/author/index', rewrite.channel, index.editorRedirect); // 编辑简介
... ...
... ... @@ -6,7 +6,7 @@
{{# floorRes.focus}}
<div class="swiper-slide">
<a href="{{url}}">
<img src="{{image2 src w=750 h=480 q=60}}" alt="{{title}}" />
<img class="swiper-lazy" data-src="{{image2 src w=750 h=480 q=60}}" />
</a>
</div>
{{/ floorRes.focus}}
... ... @@ -38,16 +38,16 @@
{{#if floorRes.renQi}}
<div class="big-title">
人气
<a class="iconfont" href="//guang.m.yohobuy.com/?gender={{gender}}&type=1001">MORE&nbsp;&#xe604;</a>
<a class="iconfont" href="//m.yohobuy.com/guang/type?gender={{gender}}&type=1001">MORE&nbsp;&#xe604;</a>
</div>
<div class="swiper-page">
<div class="swiper-container">
<div class="swiper-wrapper">
{{# floorRes.renQi}}
<div class="swiper-slide">
<a href="//guang.m.yohobuy.com/info/index?id={{id}}">
<a href="//m.yohobuy.com/guang/{{id}}.html">
<div class="page-c">
<img src="{{image2 src w=690 h=430 q=60}}" />
<img class="swiper-lazy" data-src="{{image2 src w=690 h=430 q=60}}" />
<div class="info">
<p class="name eps">{{title}}</p>
<p class="type eps">{{intro}}</p>
... ... @@ -63,14 +63,14 @@
{{#if floorRes.daPei}}
<div class="big-title">
搭配
<a class="iconfont" href="//guang.m.yohobuy.com/?gender={{gender}}&type=2">MORE&nbsp;&#xe604;</a>
<a class="iconfont" href="//m.yohobuy.com/guang/type?gender={{gender}}&type=2">MORE&nbsp;&#xe604;</a>
</div>
<div class="swiper-collocation">
<div class="swiper-container">
<div class="swiper-wrapper">
{{# floorRes.daPei}}
<div class="swiper-slide">
<a href="//guang.m.yohobuy.com/info/index?id={{id}}">
<a href="//m.yohobuy.com/guang/{{id}}.html">
<img class="swiper-lazy" data-src="{{image2 src w=590 h=370 q=60}}" />
<p class="eps-2">{{title}}</p>
</a>
... ... @@ -80,6 +80,7 @@
</div>
</div>
{{/if}}
{{!
<div class="big-title hide">
限定
<span class="iconfont">MORE&nbsp;&#xe604;</span>
... ... @@ -101,15 +102,16 @@
<div class="swiper-pagination"></div>
</div>
</div>
}}
{{#if floorRes.haoHuo}}
<div class="big-title">
好货
<a class="iconfont" href="//guang.m.yohobuy.com/?gender={{gender}}&type=4">MORE&nbsp;&#xe604;</a>
<a class="iconfont" href="//m.yohobuy.com/guang?gender={{gender}}&type=4">MORE&nbsp;&#xe604;</a>
</div>
<div class="goods-list clearfix">
{{# floorRes.haoHuo}}
<div class="goods-item">
<a href="//guang.m.yohobuy.com/info/index?id={{id}}">
<a href="//m.yohobuy.com/guang/{{id}}.html">
<img class="lazy" data-original="{{image2 src w=360 h=224 q=60}}" />
<div class="info">
<p class="name eps-2 eps-3">{{title}}</p>
... ... @@ -150,7 +152,7 @@
</div>
<div class="big-title">
<a class="iconfont" href="//guang.m.yohobuy.com/?gender={{gender}}&type=0">MORE&nbsp;&#xe604;</a>
<a class="iconfont" href="//m.yohobuy.com/guang/type?gender={{gender}}&type=0">MORE&nbsp;&#xe604;</a>
</div>
<div class="guang-list"></div>
<div class="trend-list hide">
... ... @@ -163,6 +165,6 @@
</div>
</div>
</div>
<a href="//guang.m.yohobuy.com/?gender={{gender}}&type=0" class="guang-fixed fixed"></a>
<a href="//m.yohobuy.com/guang/type?gender={{gender}}&type=0" class="guang-fixed fixed"></a>
<div class="float-top fixed"></div>
</div>
\ No newline at end of file
... ...
{{# list}}
<div class="guang-item">
<a href="//guang.m.yohobuy.com/info/index?id={{id}}">
<a href="//m.yohobuy.com/guang/{{id}}.html">
<div class="page-c">
<img class="lazy" data-original="{{image2 src w=690 h=430 q=30}}" />
<div class="info">
... ...
... ... @@ -32,7 +32,6 @@ class GuangNew extends Page {
this.swiperTab();
this.swiperPage();
this.swiperCollocation();
this.swiperLimit();
this.swiperShow();
this.fixed();
this.fixedRetop();
... ... @@ -105,7 +104,10 @@ class GuangNew extends Page {
if ($('.swiper-top').length > 0) {
new Swiper('.swiper-top .swiper-container', {
pagination: '.swiper-pagination .wiper-pagination-bullets',
paginationClickable: true
paginationClickable: true,
lazyLoading: true,
lazyLoadingInPrevNext: true,
lazyLoadingInPrevNextAmount: 1
});
}
}
... ... @@ -169,7 +171,10 @@ class GuangNew extends Page {
depth: 0,
modifier: 1,
slideShadows: false
}
},
lazyLoading: true,
lazyLoadingInPrevNext: true,
lazyLoadingInPrevNextAmount: 1
});
}
}
... ... @@ -181,20 +186,22 @@ class GuangNew extends Page {
centeredSlides: true,
slidesPerView: 'auto',
loop: true,
lazyLoading: true
lazyLoading: true,
lazyLoadingInPrevNext: true,
lazyLoadingInPrevNextAmount: 1
});
}
}
// 限定swiper
swiperLimit() {
if ($('.swiper-limit').length > 0) {
new Swiper('.swiper-limit .swiper-container', {
pagination: '.swiper-pagination',
paginationClickable: true
});
}
}
// // 限定swiper
// swiperLimit() {
// if ($('.swiper-limit').length > 0) {
// new Swiper('.swiper-limit .swiper-container', {
// pagination: '.swiper-pagination',
// paginationClickable: true
// });
// }
// }
// showswiper
swiperShow() {
... ...