...
|
...
|
@@ -307,7 +307,7 @@ const shop = { |
|
|
* 红人店铺
|
|
|
*/
|
|
|
redShop(req, res, next) {
|
|
|
let shopId = 40; // test
|
|
|
let shopId = 34; // test
|
|
|
|
|
|
Promise.all([
|
|
|
redsShopModel.getBanner(shopId), // 0: 获取红人店 banner
|
...
|
...
|
@@ -316,7 +316,8 @@ const shop = { |
|
|
redsShopModel.getShopsdecorator(shopId) // 3. 获取店铺装修元素
|
|
|
]).then(valArr => {
|
|
|
let banner = _.get(valArr[0], 'data.banner');
|
|
|
let brandsData = valArr[1];
|
|
|
|
|
|
let brand = _.get(valArr[1], 'data[0]', {});
|
|
|
let introData = valArr[2];
|
|
|
let decoratorsData = valArr[3];
|
|
|
|
...
|
...
|
@@ -326,7 +327,8 @@ const shop = { |
|
|
localCss: true,
|
|
|
module: 'product',
|
|
|
page: 'reds-shop',
|
|
|
banner, brandsData, introData, decoratorsData,
|
|
|
shopId,
|
|
|
banner, brand, introData, decoratorsData,
|
|
|
time3: [0, 1, 2]
|
|
|
});
|
|
|
});
|
...
|
...
|
|