|
|
@@ -409,19 +409,7 @@
|
|
|
<view v-if="hotProducts.length === 0" class="empty-state" style="padding: 40rpx 0;">
|
|
|
<text class="empty-text">暂无商品</text>
|
|
|
</view>
|
|
|
- <view class="product-list" v-else>
|
|
|
- <view class="product-card" v-for="prod in hotProducts" :key="prod.id" @click="goHotProduct(prod)">
|
|
|
- <image class="product-cover" :src="getImageUrl(prod.coverImage) || '/static/default-product.png'" mode="aspectFill" />
|
|
|
- <view class="product-info">
|
|
|
- <text class="product-name line-clamp-1">{{ prod.name }}</text>
|
|
|
- <text class="product-desc line-clamp-1">{{ prod.desc }}</text>
|
|
|
- <view class="product-bottom">
|
|
|
- <text class="product-fee" v-if="prod.price">¥{{ prod.price }}</text>
|
|
|
- <text class="product-fee" v-else>立即查看 ›</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ <DimensionProducts v-else :products="hotProducts" layout="mall" @productClick="goHotProduct" />
|
|
|
</view>
|
|
|
</view>
|
|
|
|