...
|
...
|
@@ -124,12 +124,19 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
params.query = keyword.name;
|
|
|
|
|
|
return this.getSearchProduct(params, channel).then(result => {
|
|
|
result.hotKeys = (keyword.data || []).map(val => {
|
|
|
let hotKeys = (keyword.data || []).map(val => {
|
|
|
val.href = helpers.urlFormat(`/hot/${val.id}.html`);
|
|
|
return val;
|
|
|
});
|
|
|
|
|
|
hotKeys = _.chunk(hotKeys, 6);
|
|
|
|
|
|
keyword.list = hotKeys[0];
|
|
|
result.hotKeys = hotKeys[1];
|
|
|
|
|
|
result.keyword = keyword;
|
|
|
|
|
|
|
|
|
result.latestWalk = 5;
|
|
|
|
|
|
return result;
|
...
|
...
|
|