index.wxml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <view class="activity-container">
  2. <!-- 返回按钮 -->
  3. <!-- <view class="back-button" bindtap="goBack">
  4. <image src="https://klmybwg.4dage.com/mini/wxImg/indexPage/icon_back.png" mode="aspectFit"></image>
  5. </view> -->
  6. <!-- 标题 -->
  7. <view class="section-title">线上展览</view>
  8. <!-- 活动列表 -->
  9. <view wx:if="{{loading}}" class="loading-container">
  10. <view class="loading-text">加载中...</view>
  11. </view>
  12. <view wx:else class="content-section">
  13. <view wx:if="{{exhibitionList && exhibitionList.length > 0}}">
  14. <view class="scroll-container">
  15. <view class="scroll-wrapper">
  16. <view class="exhibition-item" wx:for="{{exhibitionList}}" wx:key="exhibitId" bindtap="viewExhibition" data-item="{{item}}">
  17. <image src="{{urlImg + item.img}}" alt="展览" class="exhibition-img" mode="aspectFill"></image>
  18. <view class="exhibition-info">
  19. <text class="exhibition-title">{{item.title}}</text>
  20. </view>
  21. </view>
  22. </view>
  23. <!-- 加载更多提示 -->
  24. <view wx:if="{{loadingMore}}" class="loading-more">
  25. <view class="loading-text">加载中...</view>
  26. </view>
  27. <view wx:elif="{{!hasMore && exhibitionList.length > 0}}" class="no-more">
  28. <view class="no-more-text">没有更多数据了</view>
  29. </view>
  30. </view>
  31. </view>
  32. <!-- 空状态 -->
  33. <view wx:if="{{exhibitionList.length === 0}}" class="empty-state">
  34. <view class="empty-text">暂无展览数据</view>
  35. </view>
  36. </view>
  37. </view>