...
|
...
|
@@ -94,22 +94,6 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 新的搜索接口处理,替换 _searchGoods
|
|
|
*/
|
|
|
_queryGoods(params) {
|
|
|
let paramsForApi = searchProcess.getSearchParamsWithoutMethod(params);
|
|
|
|
|
|
return this.get({
|
|
|
data: _.assign({
|
|
|
method: 'app.search.li'
|
|
|
}, paramsForApi),
|
|
|
param: {
|
|
|
cache: true
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取店铺列表
|
|
|
*/
|
|
|
_processBrandShops(list) {
|
...
|
...
|
@@ -152,7 +136,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
// client_type 全部赋值为h5 过滤掉嵌入APP页面是默认的client_type
|
|
|
params.client_type = 'h5';
|
|
|
|
|
|
return this._queryGoods(params).then((result) => {
|
|
|
return this.getCategoryGoods(params).then((result) => {
|
|
|
if (result && result.code === 200) {
|
|
|
let newList = {};
|
|
|
let suggestion = {};
|
...
|
...
|
|