...
|
...
|
@@ -334,7 +334,7 @@ const getBanner = channelType => { |
|
|
|
|
|
return serviceApi.get(URL_OPERATIONS_RESOURCE_GET, {
|
|
|
content_code: contentCode
|
|
|
}).then(res => {
|
|
|
}, {cache: true}).then(res => {
|
|
|
|
|
|
let list = [];
|
|
|
|
...
|
...
|
@@ -381,7 +381,7 @@ const getRecoArticles = (gender, page, limit) => { |
|
|
gender: gender,
|
|
|
page: page,
|
|
|
limit: limit
|
|
|
}).then(res => {
|
|
|
}, {cache: true}).then(res => {
|
|
|
|
|
|
let list = [];
|
|
|
|
...
|
...
|
@@ -436,7 +436,7 @@ const getAuthor = authorId => { |
|
|
const getArticleInfo = aid => {
|
|
|
return serviceApi.get('guang/service/v2/article/getArticle', {
|
|
|
article_id: aid
|
|
|
}).then(res => {
|
|
|
}, {cache: true}).then(res => {
|
|
|
if (res && res.code === 200 && res.data) {
|
|
|
let d = res.data;
|
|
|
let tags = [];
|
...
|
...
|
@@ -593,7 +593,7 @@ const getArticleContent = aid => { |
|
|
|
|
|
return serviceApi.get('guang/service/v2/article/getArticleContent', {
|
|
|
article_id: aid
|
|
|
}).then(res => { // 内容内推荐的商品
|
|
|
}, {cache: true}).then(res => { // 内容内推荐的商品
|
|
|
|
|
|
let gpromises = [], ggpromises = [];
|
|
|
|
...
|
...
|
@@ -687,7 +687,7 @@ const getArticleBaseInfo = (aid, uid, udid) => { |
|
|
const getArticleRelateBrand = aid => {
|
|
|
return serviceApi.get('guang/service/v2/article/getBrand', {
|
|
|
article_id: aid
|
|
|
}).then(res => {
|
|
|
}, {cache: true}).then(res => {
|
|
|
|
|
|
if (res && res.code === 200 && res.data) {
|
|
|
return _.map(res.data, it => {
|
...
|
...
|
@@ -715,7 +715,7 @@ const getRelateArticleList = (aid, tag, size) => { |
|
|
article_id: aid,
|
|
|
tags: tag,
|
|
|
limit: size
|
|
|
}).then(res => {
|
|
|
}, {cache: true}).then(res => {
|
|
|
if (res && res.code === 200 && res.data) {
|
|
|
return _.map(res.data, it => {
|
|
|
it.thumb = helpers.image(it.thumb, 264, 173, 1);
|
...
|
...
|
|