...
|
...
|
@@ -10,7 +10,7 @@ |
|
|
// const helpers = global.yoho.helpers;
|
|
|
const serviceAPI = global.yoho.ServiceAPI;
|
|
|
const URI_PACKAGE_ARTICLE = 'guang/service/v2/article/';
|
|
|
const Prmoise = require('bluebird');
|
|
|
const Promise = require('bluebird');
|
|
|
const camelCase = global.yoho.camelCase;
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -18,7 +18,7 @@ const camelCase = global.yoho.camelCase; |
|
|
*/
|
|
|
const model = {
|
|
|
index(params) {
|
|
|
return Prmoise.coroutine(function*() {
|
|
|
return Promise.coroutine(function*() {
|
|
|
const article = yield serviceAPI.get(URI_PACKAGE_ARTICLE + 'getArticle', params);
|
|
|
const content = yield serviceAPI.get(URI_PACKAGE_ARTICLE + 'getArticleContent', params);
|
|
|
const brands = yield serviceAPI.get(URI_PACKAGE_ARTICLE + 'getBrand', params);
|
...
|
...
|
|