EP-WachatApp/eaterplanet_ecommerce/pages/order/shopCart.wxss

668 lines
12 KiB
Plaintext
Raw Normal View History

2023-03-24 11:26:36 +08:00
@import "/eaterplanet_ecommerce/resource/css/vip.wxss";
page {
background: linear-gradient(180deg, #ffbad2 0%, #ffbad2c1 100%);
}
.empty {
padding: 50rpx 0 80rpx;
margin-bottom: 50rpx;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.empty.pos-a {
width: 100%;
height: 100%;
position: fixed;
left: 0;
top: 0;
padding: 0;
}
.empty image {
width: 218rpx;
height: 218rpx;
margin-bottom: 30rpx;
}
.empty .h1 {
color: #fff;
font-size: 30rpx;
line-height: 30rpx;
margin-bottom: 60rpx;
}
.empty .btn {
width: 310rpx;
height: 96rpx;
border-radius: 20rpx;
background: #fff;
line-height: 96rpx;
text-align: center;
color: #ffbad2;
font-size: 30rpx;
font-weight: bold;
}
.checkbox {
width: 50rpx;
height: 50rpx;
display: flex;
justify-content: center;
}
.checkbox .checkbox-checked {
width: 48rpx;
height: 48rpx;
font-size: 38rpx;
margin-top: 4rpx;
margin-left: 2rpx;
}
.checkbox .checkbox-disabled {
width: 48rpx;
height: 48rpx;
margin-top: 2rpx;
}
.shop-cart-content {
padding: 30rpx 20rpx 130rpx;
}
.pt80 {
padding-top: 114rpx;
}
.pb100 {
padding-bottom: 140rpx;
}
.shop-cart-content .card-group {
margin-bottom: 20rpx;
}
.shop-cart-content .card-group .card-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
padding: 28rpx 20rpx;
border-bottom: 2rpx solid #efefef;
}
.shop-cart-content .card-group .card-header .cart-header-left {
display: flex;
align-items: flex-start;
}
.shop-cart-content .card-group .card-header .tag {
font-size: 20rpx;
line-height: 28rpx;
padding: 0 8rpx;
background: #4facfe;
color: #fff;
border-radius: 28rpx;
white-space: nowrap;
margin-right: 10rpx;
font-weight: 500;
}
.shop-cart-content .card-group .card-header .active-msg {
font-size: 26rpx;
line-height: 32rpx;
color: #666;
margin-top: -1rpx;
}
.shop-cart-content .card-group .card-header .i-link {
display: flex;
align-items: center;
flex: 1;
font-size: 26rpx;
line-height: 26rpx;
margin-top: 4rpx;
color: #4facfe;
font-weight: 500;
white-space: nowrap;
}
.shop-cart-content .card-group .card-header .i-link .iconfont {
font-size: 18rpx;
margin-left: 6rpx;
}
.fixed-bar {
margin-left: 30rpx;
margin-right: 30rpx;
position: fixed;
left: 0;
right: 0;
bottom: 123rpx;
z-index: 96;
}
.cart-bar {
right: 30rpx;
border-radius: 30rpx 48rpx 48rpx 30rpx;
background-color: #36362D;
box-shadow: 0rpx 10rpx 20rpx 10rpx rgba(0,0,0,0.4);
height: 80rpx;
display: flex;
align-items: center;
justify-content: space-between;
padding-left: 20rpx;
}
.fixed-bar .cart-item-checkbox {
display: flex;
font-size: 26rpx;
align-items: center;
color: #fff;
white-space: nowrap;
}
.fixed-bar .cart-item-checkbox checkbox-group {
margin-right: 10rpx;
}
.fixed-bar .fixed-bar-center {
display: flex;
flex-direction: column;
align-items: flex-end;
justify-content: center;
width: 560rpx;
flex: 1;
margin: 20rpx;
}
.fixed-bar .fixed-bar-center .total {
display: flex;
text-align: right;
color: #fff;
font-size: 28rpx;
line-height: 30rpx;
white-space: nowrap;
}
.fixed-bar .fixed-bar-center .total span {
font-family: DIN;
font-size: 36rpx;
font-weight: bold;
color: #ff758c;
}
.fixed-bar .fixed-bar-center .total span.line-through {
text-decoration-color: #ff758c;
}
.fixed-bar .fixed-bar-center .total-detail {
margin-top: 12rpx;
color: #f6f6f6;
font-size: 22rpx;
line-height: 22rpx;
}
.fixed-bar .fixed-bar-center .total-detail span:last-child {
margin-left: 20rpx;
}
.fixed-bar .fixed-bar-btn {
width: 200rpx;
height: 80rpx;
text-align: center;
line-height: 80rpx;
color: #fff;
font-size: 30rpx;
background: #ffbad2;
font-weight: bold;
overflow: hidden;
border-radius: 0rpx 48rpx 48rpx 0rpx;
}
.fixed-bar button.fixed-bar-btn::after {
border: none;
}
.fixed-bar button[disabled].fixed-bar-btn {
background:#ececec;
color:#666;
font-size: 28rpx;
}
.i-card {
width: 710rpx;
border-radius: 20rpx;
background: #fff;
box-shadow: 0 0 40rpx 0 rgba(0, 0, 0, 0.05);
display: flex;
flex-direction: column;
overflow: hidden;
}
/**car item begin***/
.checkbox .checkbox-disabled {
width: 48rpx;
height: 48rpx;
margin-top: 2rpx;
}
.swiper-out-button-content {
height: 100%;
width: 140rpx;
border-bottom: 1rpx solid #efefef;
}
.swiper-out-button-content:last-child {
border: none;
}
.swiper-out-button-content .delete-btn {
padding: 0;
margin: 0;
height: 100%;
background: #4facfe;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 28rpx;
}
.cart-item {
display: flex;
align-items: center;
flex-wrap: wrap;
padding: 40rpx 0;
border-bottom: 1rpx solid #efefef;
}
.cart-item .cart-item-checkbox {
width: 90rpx;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.cart-item-img {
width: 180rpx;
height: 180rpx;
margin-right: 30rpx;
position: relative;
}
.cart-item-img .i-class {
width: 180rpx;
height: 180rpx;
}
.cart-item-img .tip {
width: 180rpx;
height: 34rpx;
color: #fff;
font-size: 22rpx;
line-height: 34rpx;
text-align: center;
position: absolute;
bottom: 0;
left: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 100;
}
.cart-item-content {
width: 380rpx;
height: 180rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.cart-item-content .title {
font-size: 26rpx;
color: #444;
line-height: 32rpx;
margin-bottom: 10rpx;
font-weight: bold;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
text-overflow: initial;
white-space: normal;
}
.cart-item-content .title .tag {
font-size: 18rpx;
padding: 2rpx 4rpx;
line-height: 1;
background: #ff758c;
color: #fff;
border-radius: 5rpx;
white-space: nowrap;
margin-right: 5rpx;
}
.cart-item-content .cart-item-content-bottom {
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
}
.cart-item-content .cart-item-content-bottom .input-class {
position: absolute;
right: 0;
bottom: 0;
}
.cart-item-content .spec {
font-size: 22rpx;
color: #aaa;
line-height: 22rpx;
margin-bottom: 10rpx;
}
.cart-item-content .sale-price {
font-family: DIN;
color: #ff758c;
font-size: 26rpx;
line-height: 26rpx;
}
.cart-item-content .sale-price span {
font-size: 44rpx;
line-height: 44rpx;
margin-left: 4rpx;
font-weight: bold;
}
.cart-item-content .delete-icon {
position: absolute;
right: 0;
top: -10rpx;
display: flex;
align-items: center;
font-size: 24rpx;
line-height: 24rpx;
color: #00f2fe;
padding: 20rpx;
}
.cart-item-content .delete-icon image {
width: 18rpx;
height: 18rpx;
margin-right: 12rpx;
}
/**car item end**/
.fixed-bar.isIpx {
padding-bottom: calc(constant(safe-area-inset-bottom) + 45rpx);
padding-bottom: calc(env(safe-area-inset-bottom) + 45rpx);
}
/* 满减 */
.cart-item .piece-reduce {
width: 650rpx;
display: flex;
align-items: flex-start;
padding: 20rpx;
box-sizing: border-box;
background: #f9f9f9;
border-radius: 64rpx;
margin: 30rpx auto 0;
font-size: 24rpx;
line-height: 32rpx;
color: #666;
white-space: normal;
}
.cart-item .piece-reduce .tag-content {
height: 32rpx;
display: flex;
align-items: center;
}
.cart-item .piece-reduce .tag {
border-radius: 26rpx;
height: 22rpx;
padding: 0 8rpx;
border: 1rpx solid #00f2fe;
font-size: 20rpx;
line-height: 22rpx;
color: #4facfe;
margin-right: 16rpx;
white-space: nowrap;
margin-top: 3rpx;
font-weight: bold;
}
.diff-money {
margin-right: 10rpx;
color: #fff;
}
.diff-money text {
font-family: DIN;
color: #ff758c;
}
.reduce-item+.normal-item {
border-top: 30rpx solid #f6f6f6;
}
/* 20190306 */
.fullreductionInfo {
box-shadow: 10rpx 10rpx 20rpx 0rpx #4571a1a1;
border-radius: 48rpx 48rpx 48rpx 48rpx;
width: 450rpx;
max-width: 500rpx;
display: flex;
justify-content: space-between;
align-items: flex-start;
padding: 12rpx 25rpx;
margin-bottom: 5rpx;
background-color: #36362D;
z-index: 100;
}
.fullreductionInfo .fr-left {
display: flex;
align-items: flex-start;
}
.fullreductionInfo .fr-left .tag {
font-size: 20rpx;
line-height: 28rpx;
padding: 0 8rpx;
background: linear-gradient(90deg, #40A48E 0%, #6ab8a7 100%);
color: #fff;
border-radius: 6rpx;
white-space: nowrap;
margin-right: 10rpx;
font-weight: 500;
}
.fullreductionInfo .fr-left .active-msg {
font-size: 24rpx;
line-height: 32rpx;
color: #fff;
margin-top: -1rpx;
}
.fullreductionInfo .i-link {
display: flex;
align-items: center;
flex: 1;
font-size: 24rpx;
line-height: 24rpx;
color: #40A48E;
font-weight: 500;
white-space: nowrap;
}
.fullreductionInfo .i-link .iconfont {
font-size: 18rpx;
margin-left: 6rpx;
}
.cart-item-img .tag {
position: absolute;
left: 0;
bottom: 0;
background: linear-gradient(to right,#4facfe,#00f2fe);
border-radius: 0 14rpx 14rpx 0;
padding: 0 12rpx;
height: 30rpx;
font-size: 22rpx;
line-height: 30rpx;
color: #fff;
display: inline-block;
align-items: center;
justify-content: center;
width: auto;
max-width: 180rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.cart-item-img .tag.pos-top {
top: 0;
bottom: initial;
}
.cart-tabs {
display: flex;
align-items: center;
text-align: center;
height: 88rpx;
line-height: 88rpx;
background: #fff;
box-shadow: 0 0 3px 0px #ccc;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 105;
}
.cart-tabs.hasVip {
top: 130rpx;
}
.cart-tabs-item {
position: relative;
flex: 1;
}
.cart-tabs-item.active {
color: #4facfe;
font-weight: bold;
}
.cart-tabs-item.active::after {
content: "";
position: absolute;
left: 20%;
right: 20%;
bottom: 0;
border-bottom: 2px solid #4facfe;
border-radius: 2px;
}
.h88 {
height: 88rpx;
}
.h72 {
height: 72rpx;
}
.vipprice {
color: #964c00;
font-size: 20rpx;
padding: 2rpx 8rpx;
border-radius: 6rpx;
font-weight: bold;
margin-left: 10rpx;
background: linear-gradient(to right, #ffeea2, #ffe689);
}
.fixed-vip {
position: fixed;
/**background:linear-gradient(90deg, #40A48E 0%, #6ab8a7 100%);**/
left: 0;
right: 0;
padding: 10rpx 20rpx 20rpx;
z-index: 10;
}
.fixed-vip.hasVip {
box-shadow: none;
padding-bottom: 0;
}
.fixed-vip .vip {
margin-top: 0;
}
/* 失效处理 */
.invalid-head {
padding: 0 30rpx;
line-height: 90rpx;
color: #999;
border-bottom: 1rpx solid #efefef;
font-size: 26rpx;
}
.invalid-card-group {
box-shadow: none!important;
}
.invalid-head .iconfont {
font-size: 28rpx;
}
.invalid-card-group .cart-item-content .title {
color: #b0b0b0;
}
.invalid-tip {
background: #c6c6c6;
font-size: 20rpx;
padding: 4rpx 8rpx;
color: #fff;
line-height: 1;
border-radius: 6rpx;
}
.scroll-full {
position: relative;
overflow-x: auto;
overflow-y: hidden;
white-space:nowrap;
margin-right: 5rpx;
line-height: 34rpx;
}
::-webkit-scrollbar {
width: 0;
height: 0;
color: transparent;
}
.theader {
padding: 28rpx 20rpx;
border-bottom: 2rpx solid #efefef;
}