ProductIntroSkeleton.uvue 1.67 KB
<template>
    <view class="product-intro-skeleton">
        <!-- 标题占位 -->
        <view class="skeleton-header">
            <view class="skeleton-title"></view>
        </view>
        <!-- 内容区占位(模拟轮播图) -->
        <view class="skeleton-content">
            <view class="skeleton-swiper">
                <view class="skeleton-slide">
                    <view class="skeleton-image"></view>
                    <view class="skeleton-caption"></view>
                </view>
            </view>
        </view>
    </view>
</template>

<script setup lang="uts">
// 产品介绍模块骨架屏
</script>

<style scoped lang="scss">
.product-intro-skeleton {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.skeleton-header {
    padding: 12px 16px 8px;
}

.skeleton-title {
    width: 80px;
    height: 18px;
    border-radius: 4px;
    background-color: #f0f0f0; /* ✅ UVUE 不支持 animation,使用静态背景 */
}

.skeleton-content {
    padding: 0 16px 16px;
}

.skeleton-swiper {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.skeleton-slide {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    box-sizing: border-box;
}

.skeleton-image {
    flex: 1;
    width: 100%;
    border-radius: 8px;
    background-color: #f0f0f0; /* ✅ UVUE 不支持 animation,使用静态背景 */
    margin-bottom: 12px;
}

.skeleton-caption {
    width: 60%;
    height: 14px;
    border-radius: 4px;
    background-color: #f0f0f0; /* ✅ UVUE 不支持 animation,使用静态背景 */
}

</style>