yj
2024-12-05 ac3234c308e86f20cc63465573f321561ee00690
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
@charset "UTF-8";
/* 页面左右间距 */
/* 文字尺寸 */
/*文字颜色*/
/* 边框颜色 */
/* 图片加载中颜色 */
/* 行为相关颜色 */
.container {
  padding-bottom: 134rpx;
  /* 空白页 */
}
.container .empty {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  padding-bottom: 100rpx;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  background: #fff;
}
.container .empty image {
  width: 240rpx;
  height: 160rpx;
  margin-bottom: 30rpx;
}
.container .empty .empty-tips {
  display: flex;
  font-size: 26rpx;
  color: #C0C4CC;
}
.container .empty .empty-tips .navigator {
  color: #fa436a;
  margin-left: 16rpx;
}
/* 购物车列表项 */
.cart-item {
  display: flex;
  position: relative;
  padding: 30rpx 40rpx;
}
.cart-item .image-wrapper {
  width: 230rpx;
  height: 230rpx;
  flex-shrink: 0;
  position: relative;
}
.cart-item .image-wrapper image {
  border-radius: 8rpx;
}
.cart-item .checkbox {
  position: absolute;
  left: -16rpx;
  top: -16rpx;
  z-index: 8;
  font-size: 44rpx;
  line-height: 1;
  padding: 4rpx;
  color: #C0C4CC;
  background: #fff;
  border-radius: 50px;
}
.cart-item .item-right {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  position: relative;
  padding-left: 30rpx;
}
.cart-item .item-right .title, .cart-item .item-right .price {
  font-size: 30rpx;
  color: #303133;
  height: 40rpx;
  line-height: 40rpx;
}
.cart-item .item-right .attr {
  font-size: 26rpx;
  color: #909399;
  height: 50rpx;
  line-height: 50rpx;
}
.cart-item .item-right .price {
  height: 50rpx;
  line-height: 50rpx;
}
.cart-item .del-btn {
  padding: 4rpx 10rpx;
  font-size: 34rpx;
  height: 50rpx;
  color: #909399;
}
/* 底部栏 */
.action-section {
  position: fixed;
  left: 30rpx;
  bottom: 30rpx;
  z-index: 95;
  display: flex;
  align-items: center;
  width: 690rpx;
  height: 100rpx;
  padding: 0 30rpx;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 20rpx 0 rgba(0, 0, 0, 0.5);
  border-radius: 16rpx;
}
.action-section .checkbox {
  height: 52rpx;
  position: relative;
}
.action-section .checkbox image {
  width: 52rpx;
  height: 100%;
  position: relative;
  z-index: 5;
}
.action-section .clear-btn {
  position: absolute;
  left: 26rpx;
  top: 0;
  z-index: 4;
  width: 0;
  height: 52rpx;
  line-height: 52rpx;
  padding-left: 38rpx;
  font-size: 28rpx;
  color: #fff;
  background: #C0C4CC;
  border-radius: 0 50px 50px 0;
  opacity: 0;
  transition: .2s;
}
.action-section .clear-btn.show {
  opacity: 1;
  width: 120rpx;
}
.action-section .total-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: right;
  padding-right: 40rpx;
}
.action-section .total-box .price {
  font-size: 32rpx;
  color: #303133;
}
.action-section .total-box .coupon {
  font-size: 24rpx;
  color: #909399;
}
.action-section .total-box .coupon text {
  color: #303133;
}
.action-section .confirm-btn {
  padding: 0 38rpx;
  margin: 0;
  border-radius: 100px;
  height: 76rpx;
  line-height: 76rpx;
  font-size: 30rpx;
  background: #fa436a;
  box-shadow: 1px 2px 5px rgba(217, 60, 93, 0.72);
}
/* 复选框选中状态 */
.action-section .checkbox.checked,
.cart-item .checkbox.checked {
  color: #fa436a;
}