186 lines
5.0 KiB
SCSS
186 lines
5.0 KiB
SCSS
.shopping-cart-page {
|
|
padding-top: 80rpx;
|
|
padding-bottom: 160rpx;
|
|
|
|
.shopping-cart__header {
|
|
font-size: 36rpx;
|
|
padding-left: 32rpx;
|
|
|
|
.header__manege {
|
|
margin-left: 30rpx;
|
|
font-size: 28rpx;
|
|
}
|
|
}
|
|
|
|
.shopping-cart__container {
|
|
height: 100vh;
|
|
background: #f5f5f5;
|
|
|
|
.shopping-cart__item {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
max-width: 100%;
|
|
background: #fff;
|
|
padding: 16rpx 24rpx;
|
|
left: 0;
|
|
transition: all 0.3s ease;
|
|
&.active{
|
|
left: -90rpx;
|
|
}
|
|
|
|
&+.shopping-cart__item {
|
|
margin-top: 20rpx;
|
|
}
|
|
|
|
.item__image {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
.image__icon {
|
|
width: 160rpx;
|
|
height: 160rpx;
|
|
background: #ddd;
|
|
border-radius: 16rpx;
|
|
}
|
|
}
|
|
|
|
.item__texts {
|
|
margin-left: 24rpx;
|
|
flex: 1;
|
|
width: 0;
|
|
font-size: 28rpx;
|
|
|
|
.item__title {
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.item__attribute {
|
|
margin-top: 12rpx;
|
|
color: #888;
|
|
}
|
|
|
|
.item__line {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
|
|
.line__price {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
|
|
.line__price__actual {
|
|
color: #FD6301;
|
|
|
|
text {
|
|
font-size: 40rpx;
|
|
}
|
|
}
|
|
|
|
.line__price__origin {
|
|
font-size: 24rpx;
|
|
margin-left: 12rpx;
|
|
margin-bottom: 6rpx;
|
|
text-decoration-line: line-through;
|
|
color: #999;
|
|
}
|
|
}
|
|
|
|
.line__num {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 28rpx;
|
|
border: 2rpx solid #ddd;
|
|
border-radius: 8rpx;
|
|
|
|
.num__number {
|
|
padding: 4rpx 0;
|
|
width: 72rpx;
|
|
text-align: center;
|
|
border-left: 2rpx solid #ddd;
|
|
border-right: 2rpx solid #ddd;
|
|
}
|
|
|
|
.van-icon {
|
|
padding: 12rpx 8rpx 8rpx;
|
|
font-size: 28rpx;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.item__btns{
|
|
position: absolute;
|
|
right: -90rpx;
|
|
top: 0;
|
|
height: 100%;
|
|
.item__btns__wrap{
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 90rpx;
|
|
height: 100%;
|
|
background: #fd3301;
|
|
color: #fff;
|
|
font-size: 22rpx;
|
|
text{
|
|
margin-top: 8rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.shopping-cart__footer {
|
|
position: fixed;
|
|
left: 0;
|
|
bottom: 100rpx;
|
|
padding: 16rpx 16rpx 16rpx 32rpx;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
background: #fff;
|
|
|
|
.footer__center {
|
|
font-size: 32rpx;
|
|
flex: 1;
|
|
|
|
.footer__center__line {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
flex-direction: row-reverse;
|
|
|
|
.footer__center__price {
|
|
font-weight: bold;
|
|
color: #FD6301;
|
|
|
|
text {
|
|
font-size: 48rpx;
|
|
}
|
|
}
|
|
|
|
&+.footer__center__line {
|
|
color: #FD6301;
|
|
|
|
.van-icon {
|
|
font-size: 24rpx;
|
|
margin-bottom: 10rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.van-button {
|
|
margin-left: 16rpx;
|
|
color: #fff;
|
|
background: #01cf24;
|
|
border-radius: 40rpx;
|
|
padding: 8rpx 60rpx;
|
|
height: 80rpx;
|
|
}
|
|
}
|
|
} |