list.wxml 1.8 KB

1234567891011121314151617181920212223242526272829
  1. <view >
  2. <view class="septal-bottom-line list" wx:for="{{list}}" wx:if="{{list.length > 0}}">
  3. <view class="content-pad">
  4. <view class="title">
  5. <view class="title-left">
  6. <text class="name">{{item.name}}</text>
  7. <text class="title-left-time {{item.live_status == 101 ? 'subtitleColor':item.live_status == 102 ? 'green':item.live_status == 103 ? 'gray':'gray'}}"><text class="icon icon-time gray"></text><text>{{item.startTimeStr}}</text><text class="label">{{item.live_status == 101 ? '直播中':item.live_status == 102 ? '未开始':item.live_status == 103 ? '已结束':'直播异常'}}</text></text>
  8. </view>
  9. <view class="title-right">
  10. <!-- <navigator class="live-item" url="{{'plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id='+item.roomid}}">
  11. <button>{{item.live_status == 101 ? '观看':item.live_status == 102 ? '订阅':item.live_status == 103 ? '回放':'异常'}}</button>
  12. </navigator> -->
  13. <button open-type="share" data-roomid="{{item.roomid}}" data-img="{{item.share_img}}" data-title="{{item.name}}">分享</button>
  14. </view>
  15. </view>
  16. <navigator class="live-item" url="{{'plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id='+item.roomid}}">
  17. <view class="listBan">
  18. <image src="{{item.share_img}}" mode="aspectFill" lazy-load="true" binderror="binderror" data-aid="{{item.aid}}" data-index="{{index}}"></image>
  19. <text wx:if="{{item.live_status != 102}}" class="icon icon-video-play"></text>
  20. </view>
  21. </navigator>
  22. </view>
  23. </view>
  24. <empty wx:if="{{list.length == 0}}">
  25. ~暂无直播~
  26. </empty>
  27. <view class='load-more' wx:if="{{isLoadMore && list.length > pageSize}}">下面没有了哦</view>
  28. </view>