<!-- index.wxml -->
<view class="container">
  <!-- 顶部轮播图 -->
  <view class="swiper-container">
    <swiper class="swiper" indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" circular="{{circular}}">
      <swiper-item wx:for="{{swiperList}}" wx:key="index">
        <view class="swiper-item">
          <image src="{{item.imageUrl}}" mode="aspectFill" class="slide-image" bindtap="goToDetail" data-id="{{item.id}}"></image>
          <view class="swiper-info">
            <view class="swiper-title">{{item.title}}</view>
            <view class="swiper-date">{{item.date}} · {{item.source}}</view>
          </view>
        </view>
      </swiper-item>
    </swiper>
  </view>
  
  <!-- 最新上传标题 -->
  <view class="section-title">最新上传</view>
  
  <!-- 最新上传列表 -->
  <view class="latest-uploads">
    <view class="upload-grid">
      <view class="upload-item" wx:for="{{latestUploads}}" wx:key="index" bindtap="goToDetail" data-id="{{item.id}}">
        <image src="{{item.imageUrl}}" mode="aspectFill" class="upload-image"></image>
      </view>
    </view>
  </view>
  
  <!-- 加载更多提示 -->
  <view class="loading" wx:if="{{loading}}">
    <view class="weui-loading"></view>
    <view class="loading-text">正在加载</view>
  </view>
</view>