...
|
...
|
@@ -5,7 +5,6 @@ |
|
|
'use strict';
|
|
|
const mRoot = '../models';
|
|
|
const utils = '../../../utils';
|
|
|
const listModel = require(`${mRoot}/list`);
|
|
|
const shopModel = require(`${mRoot}/shop`);
|
|
|
const searchModel = require(`${mRoot}/search`);
|
|
|
const redsShopModel = require(`${mRoot}/popular-shop`);
|
...
|
...
|
@@ -91,7 +90,7 @@ const shop = { |
|
|
let skns = req.query.skns;
|
|
|
let isApp = req.query.app_version || req.query.appVersion || false;
|
|
|
|
|
|
return listModel.searchProductBySkn(skns).then(hotList => {
|
|
|
return searchModel.searchProductBySkn(skns).then(hotList => {
|
|
|
hotList = productProcess.processProductList(hotList, {isApp: isApp});
|
|
|
_.forEach(hotList, (value, key) => {
|
|
|
hotList[key].tags = {};
|
...
|
...
|
@@ -181,7 +180,7 @@ const shop = { |
|
|
let decoratorsAll = redShopPrcs.floor(_.get(decoratorsData, 'data.modules', []));
|
|
|
let category = redShopPrcs.category(_.get(categoryData, 'data', []), shopId);
|
|
|
|
|
|
let goodsListBySkn = yield listModel.searchProductBySkn(decoratorsAll.skns);
|
|
|
let goodsListBySkn = yield searchModel.searchProductBySkn(decoratorsAll.skns);
|
|
|
let decorators = redShopPrcs.pushGoodsInfo(decoratorsAll.decorators, goodsListBySkn);
|
|
|
|
|
|
res.render('newshop/shop-reds', {
|
...
|
...
|
|