ChannelsModal.wxml 1.51 KB
<block wx:if="{{(liveInfo || liveNoticeInfo) && showChannels}}">
  <view class="channels {{animation}}" catchtouchmove="noScroll">
    <view class="channels-bg"></view>
    <view class="channels-box">
      <view class="close" bindtap="close">
        <glsx-image src="home/live/close.png" />
      </view>
      <block wx:if="{{liveInfo}}">
        <view class="live-box">
          <view class="live-view" bindtap="close">
            <channel-live feed-id="{{liveInfo.feedId}}" finder-user-name="{{finderUserName}}"></channel-live>
          </view>
          <view class="live-info">
            <view class="text">{{liveInfo.description}}</view>
            <view class="channels-btn" bindtap="jumpLive">进入直播间</view>
          </view>
        </view>
      </block>
      <block wx:else>
        <view class="notice-bg">
          <glsx-image src="home/live/notice-bg.png"></glsx-image>
        </view>
        <view class="notice-box">
          <view class="notice-title">
            视频号直播预告
          </view>
          <view class="notice-head-url">
            <image src="{{liveNoticeInfo.headUrl}}" />
          </view>
          <view class="notice-time">
            {{liveNoticeInfo.month}}
            <view class="unit">月</view>
            {{liveNoticeInfo.day}}
            <view class="unit day">日</view>
            {{liveNoticeInfo.time}}
          </view>
          <view class="channels-btn" bindtap="reserve">立即预约</view>
        </view>
      </block>
    </view>
  </view>
</block>