|
|
@@ -78,15 +78,10 @@ v
|
|
|
<!-- 这里放详细内容 -->
|
|
|
<view class="item-detail" wx:if="{{item.expanded}}">
|
|
|
<!-- 轮播媒体容器 -->
|
|
|
- <view class="carousel-container" wx:if="{{item.carouselMediaList && item.carouselMediaList.length > 0}}">
|
|
|
- <!-- 加载状态覆盖层 -->
|
|
|
- <view class="loading-overlay" wx:if="{{!item._mediaLoaded}}">
|
|
|
- <view class="loading-spinner"></view>
|
|
|
- <text class="loading-text">加载中...</text>
|
|
|
- </view>
|
|
|
+ <view class="carousel-container" wx:if="{{(item.carouselMediaList && item.carouselMediaList.length > 0) || !item._mediaLoaded}}">
|
|
|
<!-- 轮播组件 -->
|
|
|
<media-carousel
|
|
|
- wx:else
|
|
|
+ wx:if="{{item.carouselMediaList && item.carouselMediaList.length > 0}}"
|
|
|
mediaList="{{item.carouselMediaList}}"
|
|
|
showIndicator="{{true}}"
|
|
|
autoplay="{{true}}"
|
|
|
@@ -97,7 +92,11 @@ v
|
|
|
bind:videoerror="onVideoError"
|
|
|
itemId="{{item.id}}"
|
|
|
/>
|
|
|
-
|
|
|
+ <!-- 加载状态覆盖层 -->
|
|
|
+ <view class="loading-overlay" wx:if="{{!item._mediaLoaded}}">
|
|
|
+ <view class="loading-spinner"></view>
|
|
|
+ <text class="loading-text">加载中...</text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<!-- <image src="{{item.photo}}" class="detail-image" wx:if="{{item.photo}}" /> -->
|
|
|
<view class="item-box">
|