<navbar home back text="直播列表" background="#fff"></navbar>
<view style="height:{{navigationBarHeight}} "></view>
<view class="market" >
	<view style='padding-top:20rpx;'>
		<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}}">
				<view class='detail_top'>
					<view>
						<!-- <image wx:if="{{item.orderStatus == 6 || item.orderStatus == 7 || item.orderStatus == 8 || item.orderStatus == 9}}" src="{{wmdiscount}}" class="discount" mode="widthFix"></image>      -->
						<!-- <image wx:if="{{item.orderStatus == 1&& item.type == 8}}" src="{{wmdiscount}}" class="discount" mode="widthFix"></image>     -->
						<text>{{item.name}}</text>
						<text wx:if="{{item.liveStatus==101}}" class='wait01'>{{item.statusName}}</text>
						<text wx:if="{{item.liveStatus==102}}" class='wait02'>{{item.statusName}}</text>
						<text wx:if="{{item.liveStatus!==101&&item.liveStatus!==102}}" class='wait'>{{item.statusName}}</text>
					</view>
				</view>
				<view class='detail_msg'>
					<view class='logo'>
						<image mode="aspectFill" src='{{item.coverImg}}'></image>
					</view>
					<view class='info'>
						<view class="sub">主播：{{item.anchorName}}</view>
						<view class="value">
							商品：<text wx:if="{{item.goods.length>0}}" wx:for="{{item.goods}}" wx:for-item="professionitem" wx:key="{{professionitem}}" wx:for-index='index02'>{{index02==(item.goods.length-1)?professionitem.name:(professionitem.name+',')}}</text>
							<text wx:if="{{item.goods.length==0}}">无</text>
						</view>

						<view class="value">开始时间：<text>{{item.startTimeStr}}</text></view>
						<view class="value">结束时间：<text>{{item.endTimeStr}}</text></view>
					</view>
				</view>
			</navigator>
		</view>
		<view class="dingdan" wx:if="{{roomInfos.length==0&&loading}}">
			<image src="{{noOrdersUrl}}" mode="widthFix"></image>
			<text>加载中...</text>
			<text>再忙，也要记得买点什么犒赏自己～</text>
		</view>
		<view class="dingdan" wx:if="{{roomInfos.length==0&&!loading}}">
			<image src="{{noOrdersUrl}}" mode="widthFix"></image>
			<text>未找到相关直播信息</text>
			<text>换个频道寻找乐趣吧！</text>
		</view>
	</view>
	<view class="loading" wx:if="{{loading}}">
		<image src="{{loadingUrl}}" mode="widthFix"></image>{{content}}
	</view>
</view>