...
|
...
|
@@ -10,7 +10,7 @@ |
|
|
const Promise = require('bluebird');
|
|
|
|
|
|
const utils = '../../../utils';
|
|
|
const list = require('./list');
|
|
|
const List = require('./list');
|
|
|
const outletsProcess = require('./outlets-handler');
|
|
|
const OutletsApiModel = require('./outlets-api');
|
|
|
const productProcess = require(`${utils}/product-process`);
|
...
|
...
|
@@ -249,7 +249,7 @@ function getOutletsSpecialData(params, channel) { |
|
|
outletsProcess.handleOutletsSpecilData(result[1].data[0]));
|
|
|
|
|
|
return Promise.all([
|
|
|
list.getListData(Object.assign({
|
|
|
this.list.getListData(Object.assign({
|
|
|
productPool: result[1].data[0].productPoolId,
|
|
|
saleType: 4
|
|
|
}, params), channel)
|
...
|
...
|
@@ -279,7 +279,7 @@ function getOutletsCategoryData(params, channel) { |
|
|
};
|
|
|
|
|
|
return Promise.all([
|
|
|
list.getListData(params, channel)
|
|
|
this.list.getListData(params, channel)
|
|
|
]).then(listResult => {
|
|
|
finalResult.saleList = listResult[0];
|
|
|
|
...
|
...
|
@@ -301,6 +301,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
constructor(ctx) {
|
|
|
super(ctx);
|
|
|
|
|
|
this.list = new List(ctx);
|
|
|
this.outletsApi = new OutletsApiModel(ctx);
|
|
|
|
|
|
this.getOutletsIndexData = getOutletsIndexData.bind(this);
|
...
|
...
|
|