...
|
...
|
@@ -29,11 +29,19 @@ const _getRelatedData = (idList) => { |
|
|
method: 'h5.product.batch'
|
|
|
}).then((result) => {
|
|
|
|
|
|
let goods = [];
|
|
|
let goods = [],
|
|
|
productList = [];
|
|
|
|
|
|
if (result && result.code === 200) {
|
|
|
if (result && result.data.product_list && result.code === 200) {
|
|
|
|
|
|
goods = productProcess.processProductList(result.data.product_list);
|
|
|
_.forEach(result.data.product_list, function(val) {
|
|
|
|
|
|
if(val.student_price) {
|
|
|
productList.push(val);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
goods = productProcess.processProductList(productList);
|
|
|
|
|
|
return goods;
|
|
|
} else {
|
...
|
...
|
@@ -61,6 +69,7 @@ exports.index = (req, res, next) => { |
|
|
link,
|
|
|
studentGoods,
|
|
|
idList = [],
|
|
|
goodShow,
|
|
|
|
|
|
// url,
|
|
|
// param,
|
...
|
...
|
@@ -135,6 +144,7 @@ exports.index = (req, res, next) => { |
|
|
|
|
|
options = {
|
|
|
isApp: req.__USER__.isApp,
|
|
|
goodShow: datas[1].length > 0 ? true : false,
|
|
|
goods: datas[1],
|
|
|
banner: banner,
|
|
|
icons: icons,
|
...
|
...
|
|