<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
  <view class="panelTop FlexRow">
    <view class="panelLeft FlexRow">
      <view class="panelTopSearch FlexRow">
        <image class="universalpic_magnifier_gray_30x30" src='../images/universalpic_magnifier_gray_30x30.png' />
        <input class='input'  always-embed="true"  maxlength='50' focus='{{Focus}}' bindinput="onKeyInput" value="{{SearchInfo}}"
          placeholder="字词、成语、诗词、单词" confirm-type="search" bindconfirm="searchResult" />
        <view class="clearData FlexRow" catchtap="clearInput" wx:if="{{SearchInfo}}">
          <view class="clearData0 FlexRow">
            <image class="universalpic_close_black_16x16" src='../images/universalpic_close_black_16x16.png' />
          </view>
        </view>

      </view>
    </view>
    <view class="panelRight FlexRow">
      <view class='panelTop1 FlexRow' bindtap="close">
        <view class="panelTop3">取消</view>
      </view>
    </view>
  </view>
  <view class="panelTopNull"></view>

  <block wx:if="{{!IsStart}}">
    <view class="panel1 FlexColumn">
      <view class="panel11 FlexRow">
        <view class="panel11Left">
          搜过的关键词
        </view>
        <view class="panel11Right FlexRow" bindtap='deleteItem'>
          <image class="universalpic_dustbin_black_24x30" src='../images/universalpic_dustbin_black_24x30.png' />
        </view>
      </view>
    </view>
    <view class="lineWidthAll FlexRow">
      <view class="lineWidth720"></view>
    </view>
    <view class='panelItemSearch0 FlexRow'>
      <scroll-view wx:if="{{SearchTextList.length>0}}" scroll-x="true" class="panelBtnSmall">
        <view class="btn0"></view>
        <view class="btn" catchtap="searchResult" wx:for="{{SearchTextList}}" wx:key="index" data-search="{{item}}">
          {{item}}
        </view>
      </scroll-view>
      <view class="panelItemSearchNull" wx:if="{{SearchTextList.length==0}}">暂无内容，搜一次就有了</view>
    </view>

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

      <view class="panel10 panel1 FlexColumn">
        <view class="panel11 FlexRow">
          <view class="panel11Left">
            看过的资料
          </view>
          <view>
          </view>
        </view>
      </view>
      <view class="lineWidthAll FlexRow">
        <view class="lineWidth720"></view>
      </view>
      <view class="panelSearchData FlexRow" wx:for="{{SearchWord3}}" wx:key="index">
        <view class="panelSearchDataImage{{item.TypeName}} panelSearchDataImage FlexColumn" bindtap='onSearchHistory'
          data-index="{{index}}" data-type="SearchWord3">
          <image wx:if="{{item.TypeName=='Z'}}" class="universalpic_dictionary_hanzi_black_54x26"
            src='../images/universalpic_dictionary_hanzi_black_54x26.png' />
          <image wx:if="{{item.TypeName=='C'}}" class="universalpic_dictionary_ciyu_black_55x23"
            src='../images/universalpic_dictionary_ciyu_black_55x23.png' />
          <image wx:if="{{item.TypeName=='S'}}" class="universalpic_dictionary_shici_black_53x27"
            src='../images/universalpic_dictionary_shici_black_53x27.png' />
          <image wx:if="{{item.TypeName=='D'}}" class="universalpic_dictionary_danci_black_53x28"
            src='../images/universalpic_dictionary_danci_black_53x28.png' />
        </view>
        <view class="panelSearchData1 FlexColumn" bindtap='onSearchHistory' data-index="{{index}}"
          data-type="SearchWord3">
          <view class="panelSearchDataText1">{{item.Key}}</view>
          <view class="panelSearchDataText2">{{item.Remark}}</view>
          <view class="panelSearchDataText3">{{item.Content}}</view>
        </view>
        <view class="panelSearchData2 FlexColumn" bindtap="deleteItem2" data-index="{{index}}">
          <image class="universalpic_dustbin_black_24x30" src='../images/universalpic_dustbin_black_24x30.png' />
        </view>
      </view>
    </block>
  </block>
  <block wx:if="{{IsStart}}">

    <view class="panelNull FlexColumn" wx:if="{{SearchList.length==0}}">
      <image class="universalpic_dictionary_gray_90x84" src='../images/universalpic_dictionary_gray_90x84.png' />
      <view class="panelNullText">没有资料</view>
    </view>
    <view class="panelNullLine" wx:if="{{SearchList.length==0}}"></view>
    <view class="panelSearchData0 FlexColumn" wx:if="{{SearchList.length>0}}">
      <view class="panelSearchDataOther FlexColumn">
        <view class="panelSearchDataOther2 FlexRow"  wx:for="{{SearchList}}" wx:key="index"
          bindtap='searchResult' data-search="{{item.Key}}" data-type="SearchList" data-author="{{item.Author}}"
          data-searchtype="{{item.Type}}" data-shiciurl="{{item.Url}}" wx:if="{{(IsMore && index<4) || (!IsMore)}}">
          <view class="panelSearchDataImage{{item.TypeName}} panelSearchDataImage FlexColumn">
            <image wx:if="{{item.TypeName=='Z'}}" class="universalpic_dictionary_hanzi_black_54x26"
              src='../images/universalpic_dictionary_hanzi_black_54x26.png' />
            <image wx:if="{{item.TypeName=='C'}}" class="universalpic_dictionary_ciyu_black_55x23"
              src='../images/universalpic_dictionary_ciyu_black_55x23.png' />
            <image wx:if="{{item.TypeName=='S'}}" class="universalpic_dictionary_shici_black_53x27"
              src='../images/universalpic_dictionary_shici_black_53x27.png' />
            <image wx:if="{{item.TypeName=='D'}}" class="universalpic_dictionary_danci_black_53x28"
              src='../images/universalpic_dictionary_danci_black_53x28.png' />
          </view>
          <view class="panelSearchDataOther21 FlexColumn">
            <view class="panelSearchDataText1">{{item.Key}}</view>
            <view class="panelSearchDataText2">{{item.Remark}}</view>
            <view class="panelSearchDataText3">{{item.Content}}</view>
          </view>
          <view>
          </view>
        </view>

        <view class="panelSearchMore" wx:if="{{SearchList.length>4 && IsMore}}" bindtap="setMoreHide">更多</view>

      </view>
    </view>

    <view class="panelSearchNull FlexColumn">
      <view class="panelSearchNull1">相关题卡</view>
      <view class="panelSearchNull2">为避免用资料重复新建题卡，可检查清单加以判断</view>
    </view>

    <view class="panelSearching FlexRow" wx:if="{{Searching}}">
      <view class="panelSearching1">正在搜索…</view>
    </view>

    <block wx:if="{{!Searching}}">
      <view class="panelSearchNull FlexColumn" wx:if="{{SearchCardList.length==0}}">
        <view class="panelSearchNull1">没有相符的题卡</view>
      </view>

      <view class="panelSearchNull FlexColumn" wx:if="{{SearchCardList.length>0}}">
        <view class="panelSearchNull10 panelSearchNull1">您有 {{SearchCardList.length}} 张有关“{{SearchInfo}}”的题卡</view>
        <view class="panelSearchData3 FlexRow" wx:for="{{SearchCardList}}" wx:key="index" bindtap="goto"
          data-url="./preview?type=preview&id={{item.MiaoguoCardID}}">
          <image class="universalpic_card_gray_22x22" src='../images/universalpic_card_gray_22x22.png' />

          <view class="panelListItem FlexRow">
            <image class="panelListItem1Image" mode="aspectFill" src='{{item.ImageUrlTemp}}'
              wx:if="{{item.ImageUrlServer}}" binderror="onBindError" data-id="{{item.MiaoguoCardID}}"
              data-serverurl="{{item.ImageUrlServer}}" />
            <view class="panelListItem11 FlexColumn">
              <view class="panelListItem11Name1">
                {{item.Content[1].ContentStr}}
              </view>
              <view class="panelListItem11Name2">
                {{item.Content[2].ContentStr}}
              </view>
            </view>
          </view>
        </view>
        <view class="panelHeight60"></view>
      </view>
    </block>
  </block>

  <view class="panelHeight60"></view>
</view>