Authored by 郭成尧

Merge branch 'feature/guangV3' into 'release/6.3'

删除限定,lazyload,修改地址



See merge request !1166
... ... @@ -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,11 @@
{{# floorRes.focus}}
<div class="swiper-slide">
<a href="{{url}}">
<img src="{{image2 src w=750 h=480 q=60}}" alt="{{title}}" />
{{#if @index}}
<img class="swiper-lazy" data-src="{{image2 src w=750 h=480 q=60}}" />
{{else}}
<img src="{{image2 src w=750 h=480 q=60}}" />
{{/if}}
</a>
</div>
{{/ floorRes.focus}}
... ... @@ -38,16 +42,20 @@
{{#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">
{{#if @index}}
<img class="swiper-lazy" data-src="{{image2 src w=690 h=430 q=60}}" />
{{else}}
<img src="{{image2 src w=690 h=430 q=60}}" />
{{/if}}
<div class="info">
<p class="name eps">{{title}}</p>
<p class="type eps">{{intro}}</p>
... ... @@ -63,14 +71,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 +88,7 @@
</div>
</div>
{{/if}}
{{!
<div class="big-title hide">
限定
<span class="iconfont">MORE&nbsp;&#xe604;</span>
... ... @@ -101,15 +110,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/type?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>
... ... @@ -120,6 +130,7 @@
{{/ floorRes.haoHuo}}
</div>
{{/if}}
{{!
<div class="big-title hide">
人物
<span class="iconfont">MORE&nbsp;&#xe604;</span>
... ... @@ -148,11 +159,13 @@
</div>
</div>
</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">
<div class="trend-item">
<img src="http://img11.static.yhbimg.com/yhb-img01/2017/10/27/11/01ea9512175a0c5795bfd01048271b654e.jpg" />
... ... @@ -163,6 +176,7 @@
</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() {
... ...