index.wxml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <view class="pb100">
  2. <view class="fui-live-list" wx:if="{{roomInfo.length}}">
  3. <navigator class="fui-live-item" url="{{'plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id='+item.roomid}}" wx:for="{{roomInfo}}" wx:for-index="idx" wx:key="idx">
  4. <view class="cover">
  5. <view style="height:400rpx;width:400rpx;" wx:if="{{item.has_replay==1}}">
  6. <image mode="aspectFill" src="{{item.share_img}}" style="width:100%;height:100%;"></image>
  7. <view class="replayImg">
  8. <image src="../images/play.png"></image>
  9. </view>
  10. </view>
  11. <image mode="aspectFill" src="{{item.share_img}}" wx:else></image>
  12. <view class="status" wx:if="{{item.live_status==101}}">
  13. <image src="../images/live_ing.gif"></image>
  14. <text class="b">直播中</text>
  15. </view>
  16. <view class="status" wx:elif="{{item.live_status==102}}">
  17. <view class="notice">预告</view>
  18. <text>{{item.date_text}}开播</text>
  19. </view>
  20. <view class="status" wx:elif="{{item.live_status==103}}">
  21. <image src="../images/live_end.png"></image>
  22. <text>直播结束</text>
  23. </view>
  24. <view class="status" wx:else>
  25. <image src="../images/live_end.png"></image>
  26. <text>{{live_status_tip[item.live_status]}}</text>
  27. </view>
  28. <view class="top" wx:if="{{item.is_top==1&&item.is_top!=2}}">置顶</view>
  29. <view class="recommend" wx:if="{{item.is_recommend==1}}">
  30. <image src="../images/live_star.png"></image>
  31. <text>推荐</text>
  32. </view>
  33. </view>
  34. <view class="fui-live-item">
  35. <view class="info">
  36. <view class="title">{{item.name}}</view>
  37. <view class="anchor">
  38. <view class="avatar">
  39. <image src="{{item.anchor_img}}"></image>
  40. </view>
  41. <view class="nickname">{{item.anchor_name}}</view>
  42. </view>
  43. <view class="goods-list" wx:if="{{item.goods_list.length>0}}">
  44. <view class="row">
  45. <image src="{{item.goods_list[0].cover_img}}"></image>
  46. <view class="cover" wx:if="{{item.goods_list[0].price_type==1}}">¥{{item.goods_list[0].price/100}}</view>
  47. <view class="cover" wx:if="{{item.goods_list[0].price_type==2}}">¥{{item.goods_list[0].price/100}}~{{item.goods_list[0].price2/100}}</view>
  48. <view class="cover" wx:if="{{item.goods_list[0].price_type==3}}">¥{{item.goods_list[0].price2/100}}</view>
  49. </view>
  50. <view class="row" wx:if="{{item.goods_list.length>1}}">
  51. <image src="{{item.goods_list[1].cover_img}}"></image>
  52. <view class="cover br">
  53. <view>{{item.goods_list.length}}</view>
  54. <view>商品</view>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. </navigator>
  61. </view>
  62. <i-empty wx:if="{{noData}}">暂无内容~</i-empty>
  63. </view>
  64. <i-tabbar currentIdx='2' cartNum='{{cartNum}}' wx:if="{{showTabbar}}" class="tabbar {{isIpx?'pb20':''}}" />