index.wxml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <view class="container">
  2. <view class="live-room-list">
  3. <scroll-view bindscrolltolower="onPageDown" scroll-y="{{ true }}" style="height: {{ scrollHeight }}px">
  4. <view wx:for="{{ list.data }}" wx:key="this" catchtap="onTargetLiveRoomIndex" data-id="{{ item.room_id }}" class="live-room-item live-status__{{ item.live_status }}">
  5. <!-- 直播状态 -->
  6. <view class="room-head dis-flex flex-y-center">
  7. <!-- 直播中 -->
  8. <text wx:if="{{ item.live_status == 101 }}" class="live-status_icon iconfont icon-zhibozhong"></text>
  9. <!-- 未开播 -->
  10. <text wx:if="{{ item.live_status == 102 }}" class="live-status_icon iconfont icon-shijian-s"></text>
  11. <!-- 已结束 -->
  12. <text wx:if="{{ item.live_status >= 103 }}" class="live-status_icon iconfont icon-shipin"></text>
  13. <!-- 状态说明 -->
  14. <text class="live-status_text">{{ item.live_status_text_1 }}</text>
  15. </view>
  16. <!-- 房间名称 -->
  17. <view class="room-name onelist-hidden">
  18. <text>{{ item.room_name }}</text>
  19. </view>
  20. <!-- 房间封面 -->
  21. <view class="room-cover">
  22. <image src="{{ item.share_img }}" mode="aspectFill"></image>
  23. </view>
  24. <!-- 主播信息 -->
  25. <view class="room-anchor dis-flex">
  26. <view class="lay-left flex-box dis-flex flex-y-center">
  27. <!-- 主播头像 -->
  28. <!-- mix: 微信api未提供主播头像, 此处显示封面图 -->
  29. <view class="anchor-avatar">
  30. <image src="{{ item.share_img }}" mode="aspectFill"></image>
  31. </view>
  32. <!-- 主播昵称 -->
  33. <view class="anchor-name">
  34. <text>{{ item.anchor_name }}</text>
  35. </view>
  36. </view>
  37. <view class="lay-right">
  38. <text class="live-status_text2">{{ item.live_status_text_2 }}</text>
  39. </view>
  40. </view>
  41. </view>
  42. <view wx:if="{{ isLastPage }}" class="no-more f-28">亲, 没有更多了</view>
  43. </scroll-view>
  44. </view>
  45. <!-- 没有记录 -->
  46. <view class="yoshop-notcont" wx:if="{{ !list.data.length && !isLoading }}">
  47. <text class="iconfont icon-wushuju"></text>
  48. <text class="cont">亲,暂无直播间哦</text>
  49. </view>
  50. </view>