...
|
...
|
@@ -2,6 +2,7 @@ import * as Types from './types'; |
|
|
import { get } from 'lodash';
|
|
|
import * as guangProcess from './guangProcess';
|
|
|
import * as sleep from '../../utils/sleep';
|
|
|
import sdk from 'common/sdk';
|
|
|
|
|
|
export default {
|
|
|
async fetchArticleList({ commit }, { articleId, authorUid, authorType, limit = 5, page = 1, thumb = false }) {
|
...
|
...
|
@@ -178,9 +179,15 @@ export default { |
|
|
order: 's_t_desc',
|
|
|
limit: processContents.allgoods.skn.length || 1
|
|
|
}),
|
|
|
this.$api.post('/api/favorite/batchCheckIsFavorite', {
|
|
|
favIds: processContents.allgoods.id.join(','),
|
|
|
type: 'product'
|
|
|
sdk.getUser().then((u) => {
|
|
|
if (u && u.uid) {
|
|
|
return this.$api.post('/api/favorite/batchCheckIsFavorite', {
|
|
|
favIds: processContents.allgoods.id.join(','),
|
|
|
type: 'product'
|
|
|
});
|
|
|
} else {
|
|
|
return {};
|
|
|
}
|
|
|
}),
|
|
|
this.$api.post('/api/guang/article/zan', { articleId: grass_id }),
|
|
|
this.$api.get('/api/guang/article/detail', { article_id })
|
...
|
...
|
|