Authored by 周少峰

Merge branch 'release/newSearch' of git.yoho.cn:fe/yohobuy-node into release/newSearch

... ... @@ -53,7 +53,7 @@ exports.getListData = (params, channel) => {
// 调用接口
let apiMethod = [
headerModel.requestHeaderData(channel),
searchApi.getSortList(Object.assign({}, params, {msort: '', misort: ''})),
searchApi.getSortList(Object.assign({}, {msort: '', misort: ''})),
searchApi.getProductList(searchParams)
];
... ... @@ -134,7 +134,7 @@ exports.getListNewData = (params, channel) => {
// 调用接口
let apiMethod = [
headerModel.requestHeaderData(channel),
searchApi.getSortList(Object.assign({}, searchParams, {msort: '', misort: ''})),
searchApi.getSortList(Object.assign({}, {msort: '', misort: ''})),
searchApi.getProductList(Object.assign({new: 'Y'}, searchParams)),
searchApi.getWeekNew(params)
];
... ... @@ -228,7 +228,7 @@ exports.getBrandData = (params, extra, channel) => {
// 调用接口
let apiMethod = [
headerModel.requestHeaderData(channel),
searchApi.getSortList(Object.assign({}, params, {brand: extra.brandId, msort: '', misort: ''})),
searchApi.getSortList(Object.assign({}, {brand: extra.brandId, msort: '', misort: ''})),
searchApi.getProductList(Object.assign({order: order, brand: extra.brandId}, searchParams))
];
... ...
... ... @@ -505,7 +505,7 @@ exports.getSaleSpecialData = (id, params, channel) => {
return saleApi.getSaleSpecialAsync(id).then(special => {
let resData = {
latestWalk: true
latestWalk: 6
},
apiList = [
headerModel.requestHeaderData(channel),
... ...
... ... @@ -172,9 +172,10 @@ exports.processProductList = (list, options) => {
}
if (options.showTags) {
_.get(product, 'tags', []).forEach((value) => {
let tags = {};
let tags = {};
_.get(product, 'tags', []).forEach((value) => {
switch (value) {
case 'is_soon_sold_out': // 即将售磬
... ...