<!--pages/guide/index.wxml-->
<view class='v-page'>
  <!-- 搜索 -->
  <form class="search_out">
    <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>
  </form>

  <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>