Authored by htoooth

fix error

... ... @@ -109,8 +109,8 @@ export default {
let article = (result.getArticle = (data && data.data) || {});
let promises = [
this.$api.get('/api/guang/article/content', { article_id }),
this.$api.get('/api/guang/article/zan', { articleId: grass_id })
this.$api.post('/api/guang/article/content', { article_id }),
this.$api.post('/api/guang/article/zan', { articleId: grass_id })
];
const [content, zan] = await Promise.all(promises);
... ... @@ -120,12 +120,12 @@ export default {
// 插入商品
const [goodsList, favsList] = await Promise.all([
this.$api.get('/api/guang/article/queryGoods', {
this.$api.post('/api/guang/article/queryGoods', {
query: processContents.allgoods.join(','),
order: 's_t_desc',
limit: processContents.allgoods.length || 1
}),
this.$api.get('/api/favorite/batchCheckIsFavorite', {
this.$api.post('/api/favorite/batchCheckIsFavorite', {
favIds: processContents.allgoods.join(','),
type: 'product'
})
... ...
... ... @@ -290,7 +290,7 @@ function processProductList(list, favsList) {
}
// fav
const fav = favsList.find(i => i.id === product.product_id);
const fav = favsList.find(i => `${i.id}` === `${product.product_skn}`);
product.id = product.product_id;
product.productType = 1;
... ...
... ... @@ -65,7 +65,7 @@ module.exports = {
api: URI_PACKAGE_ARTICLE,
path: 'getArticle',
params: {
article_id: {type: String}
article_id: {type: Number}
}
},
'/api/guang/article/author': {
... ... @@ -81,7 +81,7 @@ module.exports = {
api: URI_PACKAGE_ARTICLE,
path: 'getArticleContent',
params: {
article_id: {type: String}
article_id: {type: Number}
}
},
'/api/guang/article/zan': {
... ...