This commit is contained in:
zmr900709
2020-07-15 16:46:33 +08:00
11 changed files with 195 additions and 30 deletions

View File

@@ -1,6 +1,14 @@
export default {
init(vm){
return {
// 获取首页轮播
getIndexSwiper() {
return vm.$u.post('adv/indexadv');
},
// 获取首页轮播
getZhiBoSwiper() {
return vm.$u.post('adv/divebroadcastxadv');
},
// 发现列表
getArticlelist({ page, value, store_id, member_id, is_video_img }){
return vm.$u.post('article/articlelist', {
@@ -29,6 +37,12 @@ export default {
article_id: article_id,
});
},
// 直播列表
// getZhiboList() {
// return vm.$u.post('article/articleCollect', {
// article_id: article_id,
// });
// },
// 屏蔽用户
articleAddShield({ article_id, member_id }) {
return vm.$u.post('article/articleAddShield', {
@@ -129,8 +143,14 @@ export default {
});
},
// 商品详情
// getGoodsDetails({ id }) {
// return vm.$u.post('Goods/goodDetails', {
// goods_id: id
// });
// },
// 商品详情
getGoodsDetails({ id }) {
return vm.$u.post('Goods/goodDetails', {
return vm.$u.post('goods/goodsInfo', {
goods_id: id
});
},
@@ -149,7 +169,23 @@ export default {
return vm.$u.post('goods/goodsInfo', {
goods_id: id
});
}
},
// 秒杀推荐
recommendedSpike() {
return vm.$u.post('Spike/recommendedSpike');
},
// 秒杀详情
getSpikeInfo({ id }) {
return vm.$u.post('Spike/spikeInfo', {
groupbuy_id: id
});
},
// 秒杀列表
getSpikeList({ page }) {
return vm.$u.post('spike/spikeList', {
page: page
});
},
}
}

View File

@@ -302,9 +302,19 @@ export default {
delMessage({ type }) {
return vm.$u.post('/message/readMessage', { type });
},
<<<<<<< HEAD
// 已读消息
refreshToken({ }) {
return vm.$u.post('/Auth/refreshToken', { });
=======
// 屏蔽列表
articlShieldList() {
return vm.$u.post('/Article/articlShieldList');
},
// 取消屏蔽
articleDelShield({ id }) {
return vm.$u.post('article/articleDelShield', { member_id: id });
>>>>>>> 76a0e7e8bdfc42e7e46cc74d2cfb43fc4f544e7b
},
}
}