<!--pages/guide/index.wxml-->
<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.intro ? n.intro : ''}}</view>
        <view class='text-small text-hint'>
          <text class='tag' wx:for="{{n.tags}}" wx:for-index="idx" wx:key="idx" wx:for-item="t">{{t}}</text>
        </view>
      </view>
    </view>
  </view>
  <more hasMore="{{hasMore}}" loading="{{loading}}" page="{{currentPage}}" />
</view>