<view class="news-container">
  <!-- 返回按钮 -->
  <!-- <view class="back-button" bindtap="goBack">
    <image src="https://klmybwg.4dage.com/mini/wxImg/indexPage/icon_back.png" mode="aspectFit"></image>
  </view> -->

  <!-- 标题 -->
  <view class="section-title">展馆资讯</view>

  <!-- 资讯列表部分 -->
  <view wx:if="{{loading}}" class="loading-container">
    <view class="loading-text">加载中...</view>
  </view>
  <view wx:else class="scroll-container">
    <view class="scroll-wrapper">
      <view class="all-item" wx:for="{{newsList}}" wx:key="informationId">
        <view class="exhibition-item" bindtap="viewNews" data-item="{{item}}">
          <image src="{{urlImg + item.infoImg}}" class="exhibition-img" mode="aspectFill"></image>
          <image src="https://klmybwg.4dage.com/mini/wxImg/indexPage/Frame.png" class="bg-img" mode="aspectFit"></image>
          <view class="exhibition-info">
            <view class="exhibition-title">{{ item.title || '暂无标题' }}</view>
          </view>
        </view>
        <!-- 查看详情按钮 -->
        <view class="view-details-button" bindtap="viewNews" data-item="{{item}}">
          <text>查看详情</text>
          <image src="https://klmybwg.4dage.com/mini/wxImg/indexPage/news.png"></image>
        </view>
      </view>
    </view>
    <!-- 空状态 -->
    <view wx:if="{{newsList.length === 0}}" class="empty-state">
      <view class="empty-text">暂无资讯数据</view>
    </view>
  </view>
</view>