<wxs src="../../../wxs/util-fun.wxs" module="util"></wxs>
<scroll-view scroll-y class="scrollPage">

  <view class='searchbar'>
    <view class='search-input-group'>
      <input class='search-input' placeholder="搜一搜" bindinput="onInputEvent"></input>
    </view>
  </view>
  <view class="mt120">
    <view wx:for="{{articalList}}" wx:key="articalId" wx:for-index="index" bindtap="getDetail" class="mt10">
      <i-card title="{{item.department}}" extra="{{util.getCategory(item.category)}}">
        <view slot="content">{{item.title}}</view>
        <view slot="footer">创建时间: {{util.getDatetime(item.createAt)}}</view>
      </i-card>
    </view>
  </view>

  <view wx:if="{{from==-1}}" class="flex-sub text-center">
    <view class="padding">没有更多了</view>
    <view class='cu-tabbar-height'></view>
  </view>
  <view class='cu-tabbar-height'></view>
</scroll-view>


<view class='cu-load load-modal' wx:if="{{loadModal}}">
  <view class='cuIcon-emojifill text-orange'></view>
  <view class='gray-text'>加载中...</view>
</view>