ProductIntroSkeleton.uvue
1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<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>