@@ -80,7 +80,8 @@ Page({ | |||||
page: 1, // 刷新进入页面时已经加载了第一页数据,onReachBottom时 page++,从第2页开始加载 | page: 1, // 刷新进入页面时已经加载了第一页数据,onReachBottom时 page++,从第2页开始加载 | ||||
openId: '', | openId: '', | ||||
showGg: false, | showGg: false, | ||||
ggdata: {} | |||||
ggdata: {}, | |||||
liveFlag:0//直播按钮显隐标志位 | |||||
}, | }, | ||||
goLive(){ | goLive(){ | ||||
wx.navigateTo({ | wx.navigateTo({ | ||||
@@ -490,9 +491,11 @@ Page({ | |||||
} | } | ||||
}).then(res => { | }).then(res => { | ||||
that.setData({ | that.setData({ | ||||
liveFlag: res.data.liveSupport , | |||||
weappShareTitle: res.data.weappShareTitle ? res.data.weappShareTitle : null, | weappShareTitle: res.data.weappShareTitle ? res.data.weappShareTitle : null, | ||||
weappShareCoverImg: res.data.weappShareCoverImg ? res.data.weappShareCoverImg : null, | weappShareCoverImg: res.data.weappShareCoverImg ? res.data.weappShareCoverImg : null, | ||||
}); | }); | ||||
console.log(that.data.liveFlag,"||||") | |||||
}) | }) | ||||
.catch(err => { | .catch(err => { | ||||
// 不需要错误提示 | // 不需要错误提示 | ||||
@@ -39,9 +39,9 @@ | |||||
<image src='{{pintuan}}' mode='aspectFill'></image> | <image src='{{pintuan}}' mode='aspectFill'></image> | ||||
<text>拼团</text> | <text>拼团</text> | ||||
</view> | </view> | ||||
<view class='kjBox' bindtap='goLive'> | |||||
<view class='kjBox' bindtap='goLive' wx:if="{{liveFlag}}"> | |||||
<image src='{{live}}' mode='aspectFill'></image> | <image src='{{live}}' mode='aspectFill'></image> | ||||
<text>直播</text> | |||||
<text>直播厅</text> | |||||
</view> | </view> | ||||
<view class='kjBox' bindtap='gotoCard'> | <view class='kjBox' bindtap='gotoCard'> | ||||
<image src='{{xiaofeika}}' mode='aspectFill'></image> | <image src='{{xiaofeika}}' mode='aspectFill'></image> | ||||
@@ -1,7 +1,7 @@ | |||||
<navbar home back text="直播列表" background="#fff"></navbar> | <navbar home back text="直播列表" background="#fff"></navbar> | ||||
<view class="market" style="padding-top:{{navigationBarHeight}}"> | <view class="market" style="padding-top:{{navigationBarHeight}}"> | ||||
<view style='padding-top:20rpx;'> | <view style='padding-top:20rpx;'> | ||||
<view wx:for='{{roomInfos}}' wx:if="{{roomInfos.length!=0}}" class='section' data-data="{{item}}" wx:key='{{item.roomid}}'> | |||||
<view wx:for='{{roomInfos}}' wx:if="{{roomInfos.length!=0}}" class='section' data-data="{{item}}" wx:key='index'> | |||||
<navigator url="plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id={{item.roomid}}&custom_params={{customParams}}"> | <navigator url="plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id={{item.roomid}}&custom_params={{customParams}}"> | ||||
<view class='detail_top'> | <view class='detail_top'> | ||||
<view> | <view> | ||||