...
|
...
|
@@ -107,10 +107,15 @@ class featureModel extends global.yoho.BaseModel { |
|
|
if (data && data.floors) {
|
|
|
data.floors.forEach(f => {
|
|
|
if (f.component && f.component[0] &&
|
|
|
f.component[0].type === 'productGroup') {
|
|
|
|
|
|
f.component[0].isStyle2 = _.get(f, 'component[0].newStyle') === '2' && _.get(f, 'component[0].numOfOneRow') === '2';// eslint-disable-line
|
|
|
}
|
|
|
|
|
|
if (f.component && f.component[0] &&
|
|
|
f.component[0].type === 'productGroup' && f.component[0].defaultSkns) {
|
|
|
sknsArr.push(self._getProductBySkns(f.component[0], self.ctx));
|
|
|
|
|
|
f.component[0].isStyle2 = _.get(f, 'component[0].newStyle') === '2' && _.get(f, 'component[0].numOfOneRow') === '2';// eslint-disable-line
|
|
|
f.component[0].newStyle = _.get(f, 'component[0].newStyle') === '1';
|
|
|
}
|
|
|
|
...
|
...
|
@@ -121,7 +126,6 @@ class featureModel extends global.yoho.BaseModel { |
|
|
limit: '60'
|
|
|
}, f.component[0].searchCondition || {});
|
|
|
|
|
|
f.component[0].isStyle2 = _.get(f, 'component[0].newStyle') === '2' && _.get(f, 'component[0].numOfOneRow') === '2';// eslint-disable-line
|
|
|
f.component[0].newStyle = _.get(f, 'component[0].newStyle') === '1';
|
|
|
}
|
|
|
|
...
|
...
|
|