Authored by zzzzzzz

分割图楼层

... ... @@ -98,4 +98,8 @@
{{#if newProductFloor}}
{{> resources/new-first}}
{{/if}}
{{! 分隔楼层}}
{{#if divideImage}}
{{> resources/divide-image}}
{{/if}}
{{/content}}
... ...
{{#data}}
<div style="background-image:url({{src}})" class="divide-image"></div>
{{/data}}
\ No newline at end of file
... ...
.divide-image {
height: 30px;
width: 100%;
background-size: 100% 100%;
}
\ No newline at end of file
... ...
... ... @@ -32,6 +32,7 @@
@import "new-first";
@import "shop-recommand";
@import "sale-floor";
@import "divide-image";
.mobile-container {
margin-left: auto;
... ...
... ... @@ -93,6 +93,13 @@ module.exports = (list) => {
if (floor.sale1T1L4R && floor.data && floor.data.big_image) {
floor.data.banner_image = floor.data.big_image;
}
// 分隔图楼层
if (floor.divideImage && floor.divideImage.data && floor.divideImage.data.src) {
let a = floor.divideImage.data.src;
a = a.substr(0, a.indexOf('?'));
floor.divideImage.data.src = a;
}
formatData.push(floor);
});
... ...