...
|
...
|
@@ -87,7 +87,7 @@ const getNewProduct = (brandId, gender, url) => { |
|
|
}).then((result) => {
|
|
|
|
|
|
if (result && result.code === 200) {
|
|
|
//console.log(result.data.product_list)
|
|
|
// console.log(result.data.product_list)
|
|
|
// let naList = [];
|
|
|
let newArrival = {
|
|
|
naList: []
|
...
|
...
|
@@ -96,7 +96,8 @@ const getNewProduct = (brandId, gender, url) => { |
|
|
if (result.data.product_list) {
|
|
|
_.forEach(result.data.product_list, function(list, index) {
|
|
|
let obj = {};
|
|
|
let price
|
|
|
let price;
|
|
|
|
|
|
// console.log(list)
|
|
|
if (index <= 5) {
|
|
|
let tag = [];
|
...
|
...
|
@@ -129,10 +130,10 @@ const getNewProduct = (brandId, gender, url) => { |
|
|
});
|
|
|
|
|
|
if (list.market_price && list.market_price !== false) {
|
|
|
price = list.market_price + '.00'
|
|
|
console.log(price)
|
|
|
price = list.market_price + '.00';
|
|
|
console.log(price);
|
|
|
}
|
|
|
console.log(price)
|
|
|
console.log(price);
|
|
|
|
|
|
newArrival.moreUrl = url;
|
|
|
|
...
|
...
|
@@ -148,7 +149,7 @@ const getNewProduct = (brandId, gender, url) => { |
|
|
url: '/product/pro_' + list.product_id + '_' +
|
|
|
list.goods_list[0].goods_id + '/' + list.cn_alphabet + '.html',
|
|
|
tags: tag
|
|
|
})
|
|
|
});
|
|
|
|
|
|
if (price) {
|
|
|
obj = _.assign(obj, {
|
...
|
...
|
@@ -162,7 +163,7 @@ const getNewProduct = (brandId, gender, url) => { |
|
|
});
|
|
|
}
|
|
|
|
|
|
console.log(newArrival)
|
|
|
console.log(newArrival);
|
|
|
return newArrival;
|
|
|
} else {
|
|
|
logger.error('new data return code is not 200');
|
...
|
...
|
|