From 113144b716ea5c7d3287b96c78aa2346516fc6bb Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Sat, 18 Jul 2020 16:10:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E7=9B=B4=E6=92=AD=E5=88=97=E8=A1=A8=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/api/shop.js | 4 ++++ pages/index/index.vue | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) 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 @@ }, }, } - +