<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
  <view class="panelTop FlexColumn">
    <view class="panelSearch FlexRow" wx:if="{{Search}}">
      <view class="panelSearch1 FlexRow" bindtap='onSearch'>
        <image class="universalpic_search_gray_30x30" src='../images/universalpic_search_gray_30x30.png' />
        <view class='input'>{{Search}}</view>
      </view>
    </view>
    <view class="panelTop0 FlexRow">
      <view class='panelTop1' wx:if='{{IsCollect || IsToday || CardType==1 || CardType==-1 || PrintID}}'>
      </view>
      <view class='panelTop1 FlexRow' bindtap='addCard' wx:if='{{!PrintID && !IsCollect && !IsToday && CardType!=1 && CardType!=-1}}'>
        <image class="universalpic_add_black_30x30" src='../images/universalpic_add_black_30x30.png' />
      </view>
      <view>{{Count}}张题卡</view>
      <view class='panelTop1 FlexRow' bindtap='showOrder' wx:if="{{List.length>0 && !IsCollect && !IsToday && !PrintID}}">
        <image class="universalpic_sequence_black_30x30" src='../images/universalpic_sequence_black_30x30.png' />
      </view>
      <view class='panelTop1 FlexRow' wx:if='{{List.length==0 || IsCollect || IsToday || PrintID}}'>
      </view>
    </view>
  </view>
  <block wx:if="{{List.length>0}}">
    <view style='width:100%;height:120rpx;margin-top:0rpx;' wx:if="{{!Search}}"></view>
    <view style='width:100%;height:250rpx;margin-top:0rpx;' wx:if="{{Search}}"></view>
    <view class="remind" wx:if="{{IsToday==1}}">内容仅供参考。任务由系统实时生成，题卡并不固定。</view>
    <block wx:for="{{List}}" wx:key="index">
      <view class="lineWidthAll FlexRow" wx:if="{{index>0}}">
        <view class="lineWidth720"></view>
      </view>
      <scroll-view class="ScrollView" scroll-left="{{item.ScrollLeft}}" scroll-x="true" data-index="{{index}}">
        <view class='CellItem'>
          <view class="panelItem FlexRow" bindtap='onPreview' data-id="{{item.MiaoguoCardID}}">
            <view class="panelItem1 FlexRow">
              <image class="ImageCSS" mode="aspectFill" src='{{item.ImageUrlTemp}}' wx:if="{{item.ImageUrlServer}}" binderror="onBindError" data-id="{{item.MiaoguoCardID}}" data-serverurl="{{item.ImageUrlServer}}" />
              <view class="panelItem11 FlexColumn">
                <view class='Text1'>{{item.Content[1].ContentStr}}</view>
                <view class='Text2'>{{item.Content[2].ContentStr}}</view>
              </view>
            </view>
            <view class="panelItem2 FlexColumn">
              <block wx:if="{{!PrintID}}">
                <view wx:if="{{OrderType==1}}">{{item.UpdateTimeStr}}</view>
                <view wx:if="{{OrderType==2 || OrderType==3}}">{{item.CreateTimeStr}}</view>
                <view wx:if="{{OrderType==4 || OrderType==5}}">{{item.LearnNumber}}次</view>
                <view wx:if="{{OrderType==6}}">{{item.LastTimeStr}}</view>
                <view wx:if="{{OrderType==7 || OrderType==8}}">{{item.LimitTimeStr}}</view>
                <view class='panelItem21'>
                  <image class="universalpic_fav_default_gray_26x24" src='../images/universalpic_fav_default_gray_26x24.png' wx:if="{{item.IsCollect==1}}" />
                </view>
              </block>
              <block wx:if="{{PrintID}}">
                <view>题目{{item.Number}}</view>
                <view class='panelItem21'>
                </view>
              </block>
            </view>
          </view>
        </view>
        <view class='CellDelete'>
          <view class='DeleteItem' catchtap='DeleteItem' data-id="{{item.MiaoguoCardID}}">
            <block wx:if="{{item.DeleteStr=='确认删除'}}">{{item.DeleteStr}}</block>
            <image class="universalpic_del_white_20x28" src='../images/universalpic_del_white_20x28.png' wx:if="{{item.DeleteStr=='删除'}}" />
          </view>
        </view>
      </scroll-view>
    </block>
    <view class="lineWidthAll FlexRow" wx:if="{{HasPage}}">
      <view class="lineWidth750"></view>
    </view>
    <view class='panelItem3' wx:if="{{HasPage}}" bindtap='gotoNextPage' data-id="{{List[List.length-1].MiaoguoCardID}}" data-iscollect="{{IsCollect}}">
      <view class="more">更多</view>
    </view>

    <view style='width:100%;height:100rpx;' wx:if="{{IsCollect!=1}}"></view>
    <view style='width:100%;height:200rpx;' wx:if="{{IsCollect==1}}"></view>

    <view class='panelFooter FlexRow' wx:if="{{IsCollect==1}}" bindtap='playPPT'>
      <view class="btn">播放幻灯片</view>
    </view>
  </block>

  <block wx:if="{{List.length==0}}">

    <view style="height:110rpx;" wx:if="{{Search}}"></view>
    <view class='panelNull FlexColumn' wx:if="{{!IsCollect && !IsToday}}">
      <view class='Text3'>无匹配</view>
      <view class='Text4' wx:if="{{CardType!=1 && CardType!=-1}}">从左上角按钮添加新题卡</view>
    </view>

    <view class='panelNull FlexColumn' wx:if="{{IsCollect}}">
      <view class='Text3'>没有题卡</view>
      <view class='Text4'>在“查看题卡、学习中”界面里，点爱心图标把题卡收藏到这里</view>
    </view>

    <view class='panelNull FlexColumn' wx:if="{{IsToday==1}}">
      <view class='Text3'>任务完成</view>
      <view class='Text4'>辛苦啦，明天见</view>
    </view>

    <view class='panelNull FlexColumn' wx:if="{{IsToday==2}}">
      <view class='Text3'>没有已练完的题卡</view>
      <view class='Text4'>有些题卡可能需要回想两次才算练完</view>
    </view>
  </block>
</view>

<!-- 更多功能 -->
<view wx:if="{{IsOrder}}" class="numberContainer FlexColumn" style='height:{{Containnerheight}}rpx;'>
  <view class="numberContainerFooter1 FlexColumn">
    <view class='lineFooter'></view>
    <view class='numberContainerFooter101 FlexRow'>
      <view>
      <image class="universalpic_sequence_black_30x30_2 universalpic_sequence_black_30x30" src='../images/universalpic_sequence_black_30x30.png' />
      </view>
      <view class='numberContainerFooter11 FlexColumn'>
        <view class='numberContainerFooter111'>调整排序</view>
        <view class='numberContainerFooter112 FlexRow'>
          <view class='{{item.CSS}} numberContainerFooter1121' wx:if="{{index>0}}" wx:for="{{ArrOrder}}" wx:key="index" catchtap='onOrder' data-value='{{index}}'>{{item.Name}}</view>
        </view>
      </view>
    </view>
  </view>
  <view class='lineFooter'></view>
  <view class="numberContaineFooter FlexRow" catchtap='closeOrder'>
    <view>关闭</view>
  </view>
</view>