<!--pages/guide/index.wxml-->
<!-- 搜索 -->
  <form>
    <view class="search_out">
      <view class='input_box'>
        <icon class='icon-search' type='search' size='14' color="rgb(66, 66, 66)"></icon>
        <input 
          class="iptSearch" 
          placeholder="关键词如地名、游泳等" 
          value='{{keyword}}' 
          confirm-type="搜索"
          type='text'
          bindconfirm="searchFun"
          bindinput='getIptValue'
          bindinput='iconShow'
          />
        <icon class='icon-clear' type='clear' style="display: {{i_clear_show}}" size='14' bindtap='clearContent'></icon>
      </view>
      <text class='recoverBnt' style="display: {{recover}};" bindtap='recoverListData'>取消</text>
    </view>
  </form>


<view class='v-page'>
  <view class='guides-container'>
    <view class="guide-wrapper" wx:for="{{guides}}" wx:for-item="n" wx:key="n.id" catchtap='handleGuideDetail' data-content="{{n.type=='1'?n.id:n.content}}" data-type="{{n.type}}">
      <image class='image' src="{{n.poster}}" mode='aspectFill'></image>
      <view class='info'>
        <view class='text-small intro'>{{n.title ? n.title : ''}}</view>
        <view class='text-small text-hint'>
          {{n.intro}}
        </view>
      </view>
    </view>
  </view>
  <more hasMore="{{hasMore}}" loading="{{loading}}" page="{{currentPage}}" />
  <i-toast id="toast" />  
</view>