Commit c590a6950252e2c66b7c74502b837d759eb4e88c
1 parent
5cfde18d
直播的bug优化
Showing
1 changed file
with
5 additions
and
1 deletions
packageA/pages/liveStream/liveStream.js
... | ... | @@ -208,9 +208,10 @@ Page({ |
208 | 208 | * 生命周期函数--监听页面加载 |
209 | 209 | */ |
210 | 210 | onLoad: function (options) { |
211 | + self=this; | |
211 | 212 | getApp().is_Single_page(this,function(){ |
212 | 213 | app.isLogin().then(function(data) {//进入页面前已经授权登录成功 |
213 | - this.setData({ | |
214 | + self.setData({ | |
214 | 215 | userInfo: data, |
215 | 216 | }); |
216 | 217 | }); |
... | ... | @@ -249,6 +250,9 @@ Page({ |
249 | 250 | self.setData({ |
250 | 251 | living: self.data.list, |
251 | 252 | }); |
253 | + | |
254 | + | |
255 | + console.log(self.data.living); | |
252 | 256 | |
253 | 257 | //直播中列表请求完后,请求即将开始列表 |
254 | 258 | self.getData(true, '/api/weshop/wx/livelist/page', { | ... | ... |