Authored by 邱骏

修复楼层背景错位

... ... @@ -352,6 +352,14 @@ class featureModel extends global.yoho.BaseModel {
}
// 对背景图做特殊处理
if (f.component && f.component[0] && f.component[0].type === 'productGroup') {
if (f.param.bgimg) { // 对背景图做特殊处理
f.param._bgimgFill = f.param.bgimg;
f.param.bgimg = '';
}
}
// 新增店铺组
if (componentType === 'shopGroup') {
shopGroups.push(self._getShopGroup(f.component[0]));
... ... @@ -376,6 +384,11 @@ class featureModel extends global.yoho.BaseModel {
} else if (shop.defaultSkn) {
componentArr.push(shop);
}
if (f.param.bgimg) { // 对背景图做特殊处理
f.param._bgimgFill = f.param.bgimg;
f.param.bgimg = '';
}
}
if (_.get(f, 'type') === 'bottombar') {
... ...
<div class="product-container item{{numOfOneRow}} {{#if isStyle2}}is-style-2{{/if}}" {{#if proBgImg}} style="background:url({{image2 proBgImg q=85}}) repeat;background-size:100%;"
{{/if}}>
<div class="product-source" condition='{{stringify searchCondition}}' fp="{{getAnalysis ../this @index}}" data-rownum="{{numOfOneRow}}" {{#unless defaultPros.length}}
... ...
... ... @@ -954,7 +954,7 @@ $(function() {
// 定时计划
activityPlan();
setTimeout(changeShopAndProductHeight, 300);
setTimeout(changeShopAndProductHeight, 400);
// 小程序相关处理
if (!window.WeixinJSBridge || !window.WeixinJSBridge.invoke) {
... ...