Authored by htoooth

outlets

... ... @@ -8,7 +8,6 @@
'use strict';
const mRoot = '../models';
// TODO: ctx
// list 页 model
const list = require(`${mRoot}/outletsList`);
const headerModel = require('../../../doraemon/models/header');
... ... @@ -45,7 +44,7 @@ exports.index = (req, res, next) => {
headerData = result.headerData;
});
list.getListData(params, channel).then((result) => {
req.ctx(list).getListData(params, channel).then((result) => {
responseData.saleList = result;
responseData.resultShow = JSON.stringify(result, null, 4);
responseData.headerData = headerData;
... ...
... ... @@ -48,7 +48,7 @@ module.exports = class extends global.yoho.BaseModel {
}
return this.get({data: Object.assign(finalParams, params), params: {cache: config.apiCache}});
};
}
/**
* 断码区分类信息数据 promise 对象
... ... @@ -63,7 +63,7 @@ module.exports = class extends global.yoho.BaseModel {
yh_channel: yhChannel[tempChannel].channel
}, params: {cache: config.apiCache}
});
};
}
/**
* 获取折扣专区活动列表 promise 对象
... ... @@ -81,7 +81,7 @@ module.exports = class extends global.yoho.BaseModel {
yh_channel: tempChannel.channel
}, params: {cache: config.apiCache}
});
};
}
/**
* 获取Sale首页顶部 banner promise 对象
... ... @@ -96,7 +96,7 @@ module.exports = class extends global.yoho.BaseModel {
params: {cache: config.apiCache},
api: global.yoho.ServiceAPI
});
};
}
/**
* 获取左侧类目列表
... ... @@ -108,7 +108,7 @@ module.exports = class extends global.yoho.BaseModel {
method: 'app.sort.get'
}, params: {cache: config.apiCache}
});
};
}
/**
* 获取用户数据信息
... ... @@ -128,7 +128,7 @@ module.exports = class extends global.yoho.BaseModel {
uid: uid
}, params: {cache: true}
});
};
}
/**
* 获取用户数据信息
... ... @@ -146,5 +146,5 @@ module.exports = class extends global.yoho.BaseModel {
cache: true
}
});
};
}
};
... ...