<view class="top-tab">
  <view class="type">
    <view class="tab-box {{!currentNewsDictionariesId ? 'active' : ''}}" bindtap="doClearCurrentNewsDictionariesId">
      <image src="../../images/selected-l.png" class="selected-l"></image>
      全部
      <image src="../../images/selected-r.png" class="selected-r"></image>
    </view>
    <view class="tab-box {{item.newsDirectoriesId == currentNewsDictionariesId ? 'active' : ''}}" wx:for="{{typeList}}" wx:key="index" bindtap="changeType" data-news-directories-id="{{item.newsDirectoriesId}}">
      <image src="../../images/selected-l.png" class="selected-l"></image>
      {{item.directoriesName}}
      <image src="../../images/selected-r.png" class="selected-r"></image>
    </view>
  </view>
</view>
<view class="news">
  <view class="news-box" bindtap="goNewsDetail" data-template-record-url="{{item.templateRecordUrl}}" data-content-link="{{item.newsContentLink}}" wx:for="{{trainList}}" wx:key="index">
    <view class="news-title">{{item.newsContentTitle}}</view>
    <view class="news-small-pic">
      <image src="{{newsUrl}}/route/file/downloadfile/true/{{item.newsContentCoverList}}"></image>
    </view>
    <view class="news-info">
      <text>{{item.newsContentPublishTime}}</text>
    </view>
  </view>
</view>