...
|
...
|
@@ -16,7 +16,7 @@ const brandApi = require('./brand-api'); |
|
|
const getBrandData = params => {
|
|
|
let finalResult = {};
|
|
|
|
|
|
return api.all([brandApi.getBrandOriginData()]).then(result => {
|
|
|
return api.all([brandApi.getBrandOriginData(params)]).then(result => {
|
|
|
|
|
|
// 待处理,拼接输出模拟数据
|
|
|
Object.assign(finalResult, {
|
...
|
...
|
@@ -33,13 +33,26 @@ const getBrandData = params => { |
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 获取品牌店铺商品数据
|
|
|
* @param params
|
|
|
* @returns {*|Promise.<TResult>}
|
|
|
*/
|
|
|
const getBrandShopGoodsData = params => {
|
|
|
let finalResult = {};
|
|
|
|
|
|
return api.all([brandApi.getBrandShopGoodsOriginData(params)]).then(result => {
|
|
|
|
|
|
});
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 获取品牌列表页数据
|
|
|
* @param params
|
|
|
*/
|
|
|
const getBrandListData = params => {
|
|
|
let finalResult = {};
|
|
|
|
|
|
return api.all([brandApi.getBrandListOriginData()]).then(result => {
|
|
|
return api.all([brandApi.getBrandListOriginData(params)]).then(result => {
|
|
|
Object.assign(finalResult, {
|
|
|
brandList: [
|
|
|
{
|
...
|
...
|
@@ -117,7 +130,7 @@ const getBrandListData = params => { |
|
|
const getCateListData = params => {
|
|
|
let finalResult = {};
|
|
|
|
|
|
return api.all([brandApi.getCateListData()]).then(result => {
|
|
|
return api.all([brandApi.getCateListData(params)]).then(result => {
|
|
|
|
|
|
// 待处理,拼接输出模拟数据
|
|
|
Object.assign(finalResult, {
|
...
|
...
|
@@ -134,6 +147,7 @@ const getCateListData = params => { |
|
|
|
|
|
module.exports = {
|
|
|
getBrandData,
|
|
|
getBrandShopGoodsData,
|
|
|
getBrandListData,
|
|
|
getCateListData
|
|
|
}; |
...
|
...
|
|