<!--pages/guide/index.wxml-->
<!-- 搜索 -->
  <form>
    <view class="search_out">
      <view class='input_box'>
        <icon class='icon-search' type='search' size='14'></icon>
        <input 
          class="iptSearch" 
          placeholder="关键词如地名、游泳等" 
          value='{{iptValue}}' 
          confirm-type="搜索"
          type='text'
          bindconfirm="searchFun"
          bindinput='getIptValue'
          />
        <icon class='icon-clear' type='clear' size='14' bindtap='clearContent'></icon>
      </view>
      <button class='recoverBnt' style="display: {{recover}};" bindtap='recoverListData'>取消</button>
    </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}}" />
</view>