Authored by 郭成尧

店铺商品

... ... @@ -8,8 +8,7 @@
const logger = global.yoho.logger;
const api = global.yoho.API;
const shopApi = require('./shop-api');
const path = require('path');
const processProductList = require(path.join(global.utils, '/beautify/product')).processProductList;
const processProductList = require(`${global.utils}/beautify/product`);
const camelCase = global.yoho.camelCase;
const _ = require('lodash');
... ... @@ -120,11 +119,7 @@ const getBrandShopGoodsData = params => {
}))
]).then(subResult => {
if (subResult[0].code === 200) {
Object.assign(finalResult, {
data: {
productList: processProductList(subResult[0].data.productList)
}
});
finalResult.data = { productList: processProductList(subResult[0].data.product_list) };
} else {
logger.error('getBrandShopGoodsOriginData api code no 200');
}
... ...
... ... @@ -47,9 +47,6 @@
};
},
watch: {
domain: function() {
this.search();
},
/* sort 和 filter 改变 都会触发 重新搜索 (想象成清空所有分页) */
sort: function() {
... ...