[新增]增加了直播列表
This commit is contained in:
@@ -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
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
/***
|
||||
* 视频的播放状态
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user