<!--packageI/newMedia/newMediaGuide/newMediaGuide.wxml-->
<van-search value="{{ searchText }}" shape="round" bind:search="searchConfirm" placeholder="请输入搜索关键词" />

<view class="tabs">
  <view class="tabItem {{tabsIndex==0 ? 'active' : ''}}" bindtap="setTabsIndex" data-index="0" data-name="tabsIndex">
    普通区
  </view>
  <view class="tabItem {{tabsIndex==1 ? 'active' : ''}}" bindtap="setTabsIndex" data-index="1" data-name="tabsIndex">
    广告专区
  </view>
</view>

<view wx:if="{{tabsIndex == 0}}">
  <view class="categories">
    <view wx:for="{{ordinaryArray}}" class="category-item {{ordinaryIndex==index ? 'category-item_active' : ''}}"
      data-index="{{index}}" data-name="ordinaryIndex" bindtap="setTabsIndex">{{item.name}}</view>
  </view>
</view>

<block wx:if="{{ordinaryIndex!=4 || tabsIndex==1}}">
  <block wx:if="{{networkLoading && listData.length > 0}}">
    <view class="ad-articles" wx:if="{{ordinaryIndex!=4 || tabsIndex==1}}">
      <block wx:for="{{listData}}" >
        <ad-article-item class="ad-article-item" item="{{item}}" wx:key="{{index}}" index="{{index}}" > </ad-article-item>
      </block>
      
    </view>
  </block>


  <view wx:if="{{!networkLoading}}" class="loadingimg">
    <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/video-loading.gif" mode='aspectFill' />
  </view>

  <view wx:if="{{ networkLoading && listData.length==0}}" class="blank">
    <image src='https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png' mode='widthFix' />
  </view>
</block>



<block wx:if="{{tabsIndex==0 && ordinaryIndex==4}}">
  <livestreaming class="livestreaming" id="livestreaming" live_search="{{searchText}}"></livestreaming>
</block>





<shortcut-menu path="guide" tabsIndex="{{tabsIndex}}" is_release="{{is_release}}" ordinaryIndex="{{ordinaryIndex}}"></shortcut-menu>