[新增]增加了直播列表

This commit is contained in:
唐明明
2020-12-30 11:50:55 +08:00
parent 49a7bade36
commit aa90f73d69
9 changed files with 96 additions and 24 deletions

View File

@@ -14,6 +14,7 @@ Page({
videoIndex : 0, //当前播放视频的下标
videoId : "", //当前播放的视频id
playState : true, //视频播放状态
rooms : [], //直播列表
},
/**
@@ -29,6 +30,18 @@ Page({
})
},
/**
* 获取直播间列表
*/
onShow(){
wx.$api.live.rooms().then(res=>{
console.log(res.list)
this.setData({
rooms: res.list
})
})
},
/***
* 视频的播放状态
*/