index.less
2.21 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
// 我的关注页面样式
.favorites-list {
.loading-container {
display: flex;
justify-content: center;
align-items: center;
padding: 32rpx 0;
.loading-text {
font-size: 28rpx;
color: #999;
}
}
.no-more-container {
display: flex;
justify-content: center;
align-items: center;
padding: 32rpx 0;
text {
font-size: 24rpx;
color: #ccc;
}
}
}
// 车辆卡片样式
.car-item {
background: white;
border-radius: 16rpx;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
overflow: hidden;
margin-bottom: 24rpx;
.car-image {
position: relative;
.follow-tag {
position: absolute;
top: 8rpx;
right: 8rpx;
background-color: #ef4444;
color: white;
font-size: 20rpx;
padding: 4rpx 8rpx;
border-radius: 8rpx;
z-index: 2;
}
}
.car-info {
padding: 24rpx;
.car-name {
font-size: 32rpx;
font-weight: 500;
color: #333;
margin-bottom: 8rpx;
}
.car-details {
font-size: 24rpx;
color: #666;
margin-bottom: 16rpx;
}
.price-section {
display: flex;
justify-content: space-between;
align-items: center;
.price-info {
.current-price {
font-size: 32rpx;
font-weight: bold;
color: #ff6b35;
}
.original-price {
font-size: 24rpx;
color: #999;
text-decoration: line-through;
margin-left: 16rpx;
}
}
.unfollow-btn {
padding: 12rpx 24rpx;
border: 2rpx solid #ddd;
border-radius: 32rpx;
font-size: 24rpx;
color: #666;
background: white;
&:active {
background: #f5f5f5;
}
}
}
}
}
// 空状态样式
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 400rpx;
.empty-text {
font-size: 28rpx;
color: #999;
}
}
// 通用样式
.text-center {
text-align: center;
}
.py-4 {
padding-top: 32rpx;
padding-bottom: 32rpx;
}
.mb-3 {
margin-bottom: 24rpx;
}
.space-y-4 > * + * {
margin-top: 32rpx;
}