Ver a proveniência

打开直播入口

release
GL há 4 anos
ascendente
cometimento
61047fd8f4
3 ficheiros alterados com 7 adições e 4 eliminações
  1. +4
    -1
      index/index.js
  2. +2
    -2
      index/index.wxml
  3. +1
    -1
      pages2/live/livelist/index.wxml

+ 4
- 1
index/index.js Ver ficheiro

@@ -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 => {
// 不需要错误提示 // 不需要错误提示


+ 2
- 2
index/index.wxml Ver ficheiro

@@ -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
- 1
pages2/live/livelist/index.wxml Ver ficheiro

@@ -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>


Carregando…
Cancelar
Guardar