Commit 13887559 by 谢中龙

直播

parent 2155e07d
......@@ -546,10 +546,10 @@
"scene": null
},
{
"id": -1,
"name": "直播空白页",
"id": 75,
"name": "subPackage/page/pages/liveVideo/liveVideo",
"pathName": "subPackage/page/pages/liveVideo/liveVideo",
"query": "",
"query": "room_id=1",
"scene": null
},
{
......
......@@ -16,55 +16,29 @@ wxService.page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
if (!options.room_id){
wx.showToast({
title: '暂无直播信息~',
icon : 'none'
});
return ;
}
if (!!options.share) {
wx.navigateTo({
url: `plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=${options.room_id}`
})
}
wx.redirectTo({
url: `plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=${options.room_id}`
})
},
})
// 直播开通需要 配置plugin :
// ,
// "live-player-plugin": {
// "version": "1.0.0",
// "provider": "wx2b03c6e691cd7370"
// }
\ No newline at end of file
<!--subPackage/page/pages/liveVideo/liveVideo.wxml-->
<text>subPackage/page/pages/liveVideo/liveVideo.wxml</text>
<view class="redirecting">正在跳转到直播间...</view>
\ No newline at end of file
/* subPackage/page/pages/liveVideo/liveVideo.wxss */
\ No newline at end of file
/* subPackage/page/pages/liveVideo/liveVideo.wxss */
page{
background: #ffffff;
box-sizing: border-box;
-webkit-box-sizing: border-box;
}
view{
box-sizing: border-box;
-webkit-box-sizing: border-box;
}
.redirecting{
width: 100%;
display: flex;
align-items: center;
height: 50vh;
color: #999999;
font-size: 28rpx;
justify-content: center;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment