xz_gangba/pages/broadcastList/broadcastList.js

71 lines
1.2 KiB
JavaScript
Raw Normal View History

2020-06-28 20:16:24 +08:00
// pages/broadcastList/broadcastList.js
var app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
2020-07-02 13:03:55 +08:00
liveRecordContentUrl: app.newsContentUrl,
2020-06-28 20:16:24 +08:00
liveUrl: app.liveUrl,
liveRecordUrl: app.liveRecordUrl,
2020-07-02 13:03:55 +08:00
livePlanId: null,
2020-06-28 20:16:24 +08:00
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.setData({
livePlanId: options.livePlanId
})
2020-07-02 13:03:55 +08:00
// this.getLivePlanRecordList(1);
2020-06-28 20:16:24 +08:00
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
this.getLivePlanRecordList(1);
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
this.getLivePlanRecordList(this.data.currentPage + 1);
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})