api
This commit is contained in:
@@ -11,10 +11,37 @@ export default {
|
||||
is_video_img: is_video_img,
|
||||
});
|
||||
},
|
||||
// 发现(取消)点赞
|
||||
articleLike({ article_id }) {
|
||||
return vm.$u.post('article/articleLike', {
|
||||
article_id: article_id,
|
||||
});
|
||||
},
|
||||
// 发现(取消)收藏
|
||||
articleCollect({ article_id }) {
|
||||
return vm.$u.post('article/articleCollect', {
|
||||
article_id: article_id,
|
||||
});
|
||||
},
|
||||
// 屏蔽用户
|
||||
articleAddShield({ article_id, member_id }) {
|
||||
return vm.$u.post('article/articleAddShield', {
|
||||
article_id: article_id,
|
||||
member_id: member_id,
|
||||
});
|
||||
},
|
||||
// 推荐达人
|
||||
getRecommendList(){
|
||||
return vm.$u.post('MemberExpert/recommendList');
|
||||
},
|
||||
// 获取商城首页信息(顶部轮播图与商品分类)
|
||||
getShopTopList(){
|
||||
return vm.$u.post('Shop/getShopTopList');
|
||||
},
|
||||
// 商品分类列表(树结构)
|
||||
getGoodsClassifyList() {
|
||||
return vm.$u.post('Goods/getGoodsClassifyList');
|
||||
},
|
||||
// 商品推荐
|
||||
getGoodsRecommend({page}){
|
||||
return vm.$u.post('Goods/getGoodsRecommend', {
|
||||
@@ -42,12 +69,25 @@ export default {
|
||||
cart_ids: id
|
||||
});
|
||||
},
|
||||
// 购物车更新商品数量
|
||||
cartUpdateNumber({ cart_id, quantity }) {
|
||||
return vm.$u.post('cart/cartUpdate', {
|
||||
cart_id: cart_id,
|
||||
quantity: quantity
|
||||
});
|
||||
},
|
||||
// 订单结算数据
|
||||
settlementOrder({ cart_id }) {
|
||||
return vm.$u.post('buy/buy_step1', {
|
||||
cart_id: cart_id,
|
||||
});
|
||||
},
|
||||
// 商品详情
|
||||
getGoodsDetails({ id }) {
|
||||
return vm.$u.post('Goods/goodDetails', {
|
||||
goods_id: id
|
||||
});
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user