...
|
...
|
@@ -166,11 +166,13 @@ const shop = { |
|
|
}
|
|
|
|
|
|
co(function* () {
|
|
|
let bannerData = yield redsShopModel.getBanner(shopId);
|
|
|
let shopData = yield redsShopModel.getIntro(shopId);
|
|
|
let favCountData = yield redsShopModel.favCount(shopId, uid, channel, udid);
|
|
|
let decoratorsData = yield redsShopModel.getShopsdecorator(shopId);
|
|
|
let categoryData = yield redsShopModel.getShopCategory(shopId, channel);
|
|
|
let [bannerData, shopData, favCountData, decoratorsData, categoryData] = yield Promise.all([
|
|
|
redsShopModel.getBanner(shopId),
|
|
|
redsShopModel.getIntro(shopId),
|
|
|
redsShopModel.favCount(shopId, uid, channel, udid),
|
|
|
redsShopModel.getShopsdecorator(shopId),
|
|
|
redsShopModel.getShopCategory(shopId, channel)
|
|
|
]);
|
|
|
|
|
|
let banner = _.get(bannerData, 'data.banner');
|
|
|
let shopInfo = redShopPrcs.shopIntro(_.get(shopData, 'data', {}));
|
...
|
...
|
|