<!--miniprogram/pages/interList/interList.wxml-->
<view class="interList">
  <van-tabs swipeable ellipsis="{{false}}" active="{{ 0 }}" offset-top="{{0}}" bind:change="onChange">
    <van-tab title="{{v.name + '(' + v.c + ')'}}" wx:for-item="v" wx:for-index="o" wx:key="_id" wx:for="{{tabList}}">
      <scroll-view bindscrolltolower="atBottom" scroll-y="{{true}}" style="{{'height:' + mainHeight + 'px'}}">
        <view style="height: 10px"></view>
        <view wx:for="{{newsListAll[v.id] || []}}" style="margin-bottom: 20rpx" wx:key="_id">
          <!-- <view bindtap="toDetail"  data-newsUrl="{{item.news_url}}" data-title="{{item.news_title}}"> -->
          <view>
            <view class="newList">
              <image mode="aspectFit" class="newsImg" src="{{item.news_img}}" wx:if="{{item.news_img}}"></image>
              <view class="newsTitle" style="{{item.news_img ? 'margin-top: -240rpx' : 'padding-left: 10rpx'}}">
                <text wx:if="{{item.news_title}}" class="top">{{item.news_title}}</text>
                <text wx:if="{{item.nick_name}}" class="subTitle">{{item.nick_name}}·</text>
                <text wx:if="{{item.news_posttime}}" class="subTitle">发布日期 {{item.news_posttime}}</text>
              </view>
            </view>
          </view>
        </view>
      </scroll-view>
    </van-tab>
  </van-tabs>

</view>