<view class="top-tab">
  <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="{{news.newsDictionaries}}" wx:for-index="index" wx:for-item="item" wx:key="newsDictionaries" bindtap="doClickDictionaries" 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 class="news">
  <view wx:for="{{news.newsList}}" wx:for-index="idx" wx:for-item="item" wx:key="newsList">
    <view class="news-box" bindtap="goNewsDetail" data-template-record-url="{{item.templateRecordUrl}}" wx:if="{{item.typesettingCode == 'key_1'}}">
      <view class="news-title">{{item.newsContentTitle}}</view>
      <view class="news-small-pic">
        <image src="{{news.newsUrl}}/route/file/downloadfile/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" wx:key="coverItem"></image>
      </view>
      <view class="news-info">
        <text>来源：{{item.newsContentResource}}</text>
        <text>{{item.newsContentPublishTime}}</text>
      </view>
    </view>
    <view class="news-box transverse-news" bindtap="goNewsDetail" data-template-record-url="{{item.templateRecordUrl}}" wx:if="{{item.typesettingCode == 'key_2'}}">
      <view class="news-row-img">
        <image src="{{news.newsUrl}}/route/file/downloadfile/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" wx:key="coverItem"></image>
      </view>
      <view class="news-row-info">
        <view class="news-title">{{item.newsContentTitle}}</view>
        <view class="news-info">
          <text>来源：{{item.newsContentResource}}</text>
          <text>{{item.newsContentPublishTime}}</text>
        </view>
      </view>
    </view>
    <view class="news-box transverse-news" bindtap="goNewsDetail" data-template-record-url="{{item.templateRecordUrl}}" wx:if="{{item.typesettingCode == 'key_3'}}">
      <view class="news-row-info">
        <view class="news-title">{{item.newsContentTitle}}</view>
        <view class="news-info">
          <text>来源：{{item.newsContentResource}}</text>
          <text>{{item.newsContentPublishTime}}</text>
        </view>
      </view>
      <view class="news-row-img">
        <image src="{{news.newsUrl}}/route/file/downloadfile/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" wx:key="coverItem"></image>
      </view>
    </view>
    <view class="news-box" bindtap="goNewsDetail" data-template-record-url="{{item.templateRecordUrl}}" wx:if="{{item.typesettingCode == 'key_4'}}">
      <view class="news-title">{{item.newsContentTitle}}</view>
      <view class="news-big-pic">
        <image src="{{news.newsUrl}}/route/file/downloadfile/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" wx:key="coverItem"></image>
      </view>
      <view class="news-info">
        <text>来源：{{item.newsContentResource}}</text>
        <text>{{item.newsContentPublishTime}}</text>
      </view>
    </view>
    <view class="news-box" bindtap="goNewsDetail" data-template-record-url="{{item.templateRecordUrl}}" wx:if="{{item.typesettingCode == 'key_5'}}">
      <view class="news-title">{{item.newsContentTitle}}</view>
      <view class="news-info">
        <text>来源：{{item.newsContentResource}}</text>
        <text>{{item.newsContentPublishTime}}</text>
      </view>
    </view>
  </view>
</view>