<wxs module="filters" src="../../utils/toFixed.wxs" />
<view class="top_bg">
      <image mode="widthFix" src="../../xiao/titlebg@2x.png"></image>
      <view class="top_title">短 线 百 科 <text>吃瓜群众</text></view>
</view>
<view class="tab">
  <view wx:for="{{cat}}" bindtap="tab"   data-id='{{item.id}}' class="{{cur==item.id?'act':''}}">{{item.name}}</view>
</view>
<scroll-view scroll-y="{{true}}" bindscrolltolower='next'>
  <navigator wx:for="{{list}}" class="list" bind:tap="pushArticle" data-id="{{item.category_id}}">
    <view>{{item.name}}</view>
    <view class="info">
      <image wx:if='{{item.img}}' mode="aspectFill" src="{{item.img}}"></image>
      <image wx:else mode="aspectFill" src="../../xiao/default_img@2x.png"></image>
      <text>{{item.intro}}</text>
    </view>
  </navigator>
  <block wx:if='{{total >= 20}}'>
      <view class='loading' wx:if='{{list.length < total}}'>加载更多...</view>
  </block>
</scroll-view>