...
|
...
|
@@ -29,6 +29,7 @@ class featureModel extends global.yoho.BaseModel { |
|
|
let skns = [];
|
|
|
let list = _.isArray(productArr) ? productArr : [productArr];
|
|
|
|
|
|
console.log('getProductSkns:', list);
|
|
|
_.forEach(list, value => {
|
|
|
let defSkns = value.defaultSkns || value.defaultSkn;
|
|
|
|
...
|
...
|
@@ -349,6 +350,8 @@ class featureModel extends global.yoho.BaseModel { |
|
|
}, f.component[0].searchCondition || {});
|
|
|
|
|
|
f.component[0].newStyle = _.get(f, 'component[0].newStyle') === '1';
|
|
|
|
|
|
console.log('newStyle:', f.component[0].newStyle);
|
|
|
}
|
|
|
|
|
|
// 新增店铺组
|
...
|
...
|
@@ -356,6 +359,27 @@ class featureModel extends global.yoho.BaseModel { |
|
|
shopGroups.push(self._getShopGroup(f.component[0]));
|
|
|
}
|
|
|
|
|
|
// 店铺加商品组
|
|
|
if (componentType === 'shopAndProduct') {
|
|
|
let shop = f.component[0];
|
|
|
|
|
|
shop.jumpUrl = `//m.yohobuy.com/product/shop?shop_id=${shop.shopId}&openby:yohobuy=
|
|
|
{"action":"go.shop","params":{"shop_id":"${shop.shopId}","shop_template_type":"2"}}`;
|
|
|
shop.numOfOneRow = '3';
|
|
|
if (shop.searchCondition) {
|
|
|
shop.searchCondition.limit = '3'; // 强制把数量限制为3个
|
|
|
if (shop.favourite_prds_enable === '1') {
|
|
|
shop.searchCondition = Object.assign({
|
|
|
maybeLike: '1',
|
|
|
limit: '60'
|
|
|
}, shop.searchCondition || {});
|
|
|
shop.newStyle = _.get(f, 'component[0].newStyle') === '1';
|
|
|
}
|
|
|
} else if (shop.defaultSkn) {
|
|
|
componentArr.push(shop);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (_.get(f, 'type') === 'bottombar') {
|
|
|
f.height = _.get(f, 'param.height') / 20;
|
|
|
}
|
...
|
...
|
@@ -456,6 +480,10 @@ class featureModel extends global.yoho.BaseModel { |
|
|
yield self._getLikedFloorDataMulti(likeArr);
|
|
|
}
|
|
|
|
|
|
_.each(data.floors, ret => {
|
|
|
console.log(ret.component);
|
|
|
});
|
|
|
|
|
|
return data;
|
|
|
})();
|
|
|
}
|
...
|
...
|
|