diff --git a/common/api/shop.js b/common/api/shop.js index e6af33f..c382d69 100644 --- a/common/api/shop.js +++ b/common/api/shop.js @@ -236,6 +236,10 @@ export default { type: type, status: status, }); + }, + // 获取直播列表 + tabLiveList(){ + return vm.$u.post('api/Specialci/tabLiveList') } } } diff --git a/pages/index/index.vue b/pages/index/index.vue index 3e0b6d9..ca2e21f 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -216,8 +216,14 @@ this.getRecommendList(); this.getSwiper(); this.getZhiBoSwiper(); + this.tabLiveList(); }, methods: { + tabLiveList(){ + this.$u.api.tabLiveList().then((res)=>{ + console.log(res) + }) + }, getSwiper() { this.$u.api.getIndexSwiper().then(res => { if (res.errCode == 0) { @@ -266,4 +272,4 @@ }, }, } - +