Commit 4a2f4719 by 李嘉林

直播不息屏

parent db8ec649
...@@ -69,6 +69,13 @@ export default { ...@@ -69,6 +69,13 @@ export default {
}, },
watch: { watch: {
pageUrl(n,o) { pageUrl(n,o) {
// 进入直播页面调用不息屏api
console.log(this.pageUrl,this.pageUrl.includes('/liveBroadcast/lived'),"this.pageUrl.includes('/liveBroadcast/lived')")
if(this.pageUrl.includes('/liveBroadcast/lived')){
wx.setKeepScreenOn({
keepScreenOn: true,
})
}
//埋点未登录时进入文章 //埋点未登录时进入文章
// this.params+='&articleId=111' // this.params+='&articleId=111'
log.info('watch-pageUrl-sessionid',wx.getStorageSync("sessionid")) log.info('watch-pageUrl-sessionid',wx.getStorageSync("sessionid"))
......
...@@ -218,6 +218,9 @@ const componentOptions = { ...@@ -218,6 +218,9 @@ const componentOptions = {
async moreProduct(flag) { async moreProduct(flag) {
// 没有数据了就不再请求了,直接return // 没有数据了就不再请求了,直接return
if (this.data.pageGoodsList.length != 0 && this.data.pageGoodsList[this.data.datasIndex].length == wx.getStorageSync('ids')[this.data.datasIndex].length) return if (this.data.pageGoodsList.length != 0 && this.data.pageGoodsList[this.data.datasIndex].length == wx.getStorageSync('ids')[this.data.datasIndex].length) return
this.setData({
scrollLoading: true
})
let terminalProductIds = [] let terminalProductIds = []
console.log(pageNum,'page-----'); console.log(pageNum,'page-----');
let pageNumList = wx.getStorageSync('pageNumList') let pageNumList = wx.getStorageSync('pageNumList')
...@@ -378,10 +381,6 @@ const componentOptions = { ...@@ -378,10 +381,6 @@ const componentOptions = {
) { ) {
return return
} }
this.setData({
scrollLoading: true
})
wx.createSelectorQuery().selectAll(`.goodsListItemIndex${that.data.datasIndex}>>>.${type}`).boundingClientRect(function(rects){ wx.createSelectorQuery().selectAll(`.goodsListItemIndex${that.data.datasIndex}>>>.${type}`).boundingClientRect(function(rects){
for (let index = 0; index < rects.length; index++) { for (let index = 0; index < rects.length; index++) {
if (rects[index].top == 0 && rects[index].bottom == 0 && rects[index].left == 0 && rects[index].right == 0) { if (rects[index].top == 0 && rects[index].bottom == 0 && rects[index].left == 0 && rects[index].right == 0) {
......
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