This commit is contained in:
2025-10-27 15:55:29 +08:00
commit 6632080b83
513 changed files with 117442 additions and 0 deletions

View File

@@ -0,0 +1,647 @@
.container {
width: 100vw;
height: 100vh;;
display: flex;
flex-direction: column;
}
.scroll-view {
flex: 1;
height: 0;
transform: translateX(0);
}
.cart-header {
padding: 20rpx 0;
display: flex;
align-items: center;
justify-content: space-between;
line-height: 36rpx;
background: #f7f7f7;
.num-wrap {
margin-left: $margin-both;
color: #666666;
font-size: 26rpx;
}
.cart-action {
line-height: inherit;
margin-right: $margin-both;
color: #666666;
font-size: 26rpx;
}
&.invalid {
margin-left: $margin-both;
margin-top: $margin-updown;
flex: 1;
line-height: inherit;
}
}
.cart-wrap {
margin: 0 24rpx 24rpx;
border-radius: 16rpx;
overflow: hidden;
.fixed-wrap {
height: 116rpx;
}
.cart-goods {
background: #fff;
box-sizing: border-box;
position: relative;
padding: 30rpx 0 30rpx 30rpx;
&::after {
content: '';
position: absolute;
left: 20rpx;
right: 20rpx;
height: 2rpx;
bottom: 0;
background-color: #f2f2f2;
}
&:last-of-type::after {
height: 0;
}
.goods-wrap {
display: flex;
position: relative;
padding-left: 64rpx;
transition: all 0.1s;
& > .iconfont {
font-size: 40rpx;
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
transition: all 0.2s;
}
& > .icon-yuan_checkbox {
color: $color-disabled;
}
&.edit {
transform: translateX(-70rpx);
> .iconfont {
opacity: 0;
}
}
.goods-img {
width: 180rpx;
height: 180rpx;
image {
width: 100%;
height: 100%;
border-radius: 8rpx;
}
}
.goods-info {
flex: 1;
width: 0;
padding: 0 30rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
.goods-name {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
line-height: 1.5;
font-size: $font-size-base;
}
.sku-wrap {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
width: 100%;
.sku {
line-height: 1;
margin: 10rpx 0 18rpx 0;
display: inline-flex;
align-items: center;
background: #f4f4f4;
border-radius: 8rpx;
padding: 0 10rpx 0 20rpx;
.goods-spec {
color: #666666;
font-size: 24rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.iconfont {
font-size: 28rpx;
padding-left: 10rpx;
color: #666666;
}
}
}
.goods-sub-section {
display: flex;
justify-content: space-between;
width: 100%;
align-items: center;
.unit {
font-size: $font-size-tag;
margin-right: 4rpx;
}
.goods-price {
display: flex;
flex-direction: row;
font-weight: bold;
color: var(--price-color);
.bottom-price {
width: 100%;
font-size: $font-size-toolbar;
line-height: 1;
color: var(--price-color);
image {
width: 56rpx;
height: 22rpx;
margin-left: 6rpx;
}
}
}
/deep/ .decrease {
width: 52rpx;
height: 52rpx;
line-height: 48rpx;
font-size: 40rpx;
border-radius: 10rpx 0px 0px 10rpx;
}
/deep/ input {
height: 52rpx;
line-height: 52rpx;
}
/deep/ .increase {
width: 52rpx;
height: 52rpx;
line-height: 48rpx;
font-size: 40rpx;
border-radius: 0px 10rpx 10rpx 0px;
}
}
}
}
.item-del {
position: absolute;
width: 0;
height: 99%;
color: #fff;
right: 0;
top: 0;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s;
overflow: hidden;
white-space: nowrap;
font-size: $font-size-tag;
&.show {
width: 90rpx;
}
}
&:first-child {
padding-top: 30rpx;
}
&:last-child {
.goods-info {
border-bottom: none;
padding-bottom: 0;
}
}
.discount-wrap {
line-height: 1.5;
font-size: 24rpx;
margin-top: 20rpx;
display: flex;
.discount-tag {
color: $base-color;
line-height: 1;
padding: 0 10rpx;
border-radius: $border-radius;
border: 1.5px solid $base-color;
margin-right: 10rpx;
white-space: nowrap;
line-height: 32rpx;
background: var(--main-color-shallow);
}
.interval {
height: 20rpx;
margin: 0 10rpx;
border-left: 2rpx solid #ddd;
white-space: nowrap;
margin-top: 10rpx;
&:last-child {
display: none;
}
}
.scroll-view {
flex: 1;
width: 0;
height: 100%;
white-space: nowrap;
}
}
}
.invalid-goods {
.invalid-mark {
color: $color-tip;
padding: 6rpx 16rpx;
display: inline-block;
font-size: $font-size-goods-tag;
}
}
}
.invalid .cart-header {
padding-top: 0;
}
.invalid .cart-header + .cart-goods {
padding-top: 30rpx;
}
.cart-bottom-block {
height: 100rpx;
margin-top: 20rpx;
}
.cart-bottom {
width: 100vw;
height: 100rpx;
position: fixed;
left: 0;
bottom: var(--tab-bar-height, 0);
background: #fff;
overflow: hidden;
display: flex;
z-index: 9;
.all-election {
height: 100rpx;
position: relative;
display: inline-block;
& > .iconfont {
font-size: 40rpx;
position: absolute;
top: 50%;
left: 30rpx;
transform: translateY(-50%);
}
& > .icon-yuan_checkbox {
color: $color-disabled;
}
& > text {
margin-left: 56rpx;
line-height: 100rpx;
padding-left: 30rpx;
}
}
.settlement-info {
flex: 1;
width: 0;
padding-right: 10rpx;
display: flex;
flex-direction: column;
justify-content: center;
text-align: right;
.money {
line-height: 1;
font-size: 32rpx;
.value {
font-weight: bold;
color: var(--price-color);
}
.unit {
font-size: $font-size-tag;
margin-right: 4rpx;
color: var(--price-color);
font-weight: bold;
}
}
.detail {
line-height: 1;
font-size: 22rpx;
color: #666666;
margin-top: 10rpx;
.iconfont {
font-size: 28rpx;
margin-left: 6rpx;
transition: all 0.1s;
display: inline-block;
&.open {
transform: rotate(180deg);
}
}
}
}
.action-btn {
// width: 200rpx;
height: 100rpx;
line-height: 100rpx;
border-radius: 0;
margin: 0;
display: flex;
justify-content: flex-end;
align-items: center;
margin-right: 30rpx;
white-space: nowrap;
button {
padding: 0 30rpx;
height: 70rpx;
line-height: 70rpx;
font-size: $font-size-base;
font-weight: bold;
border-radius: 50rpx;
&.delete {
height: 50rpx;
line-height: 46rpx;
}
}
}
}
.cart-bottom.active {
bottom: calc(constant(safe-area-inset-bottom) + 110rpx) !important;
bottom: calc(env(safe-area-inset-bottom) + 110rpx) !important;
}
.cart-empty {
text-align: center;
padding: 140rpx $padding 80rpx $padding;
image {
width: 380rpx;
}
button {
min-width: 300rpx;
margin-top: 100rpx;
height: 70rpx;
line-height: 70rpx !important;
font-size: $font-size-base;
border-radius: 50rpx;
&.visit-the {
font-weight: bold;
}
}
}
.popup {
width: 100vw;
background: #fff;
border-top-left-radius: 24rpx;
border-top-right-radius: 24rpx;
.popup-header {
display: flex;
position: relative;
padding: 40rpx;
.tit {
flex: 1;
font-size: $font-size-toolbar;
line-height: 1;
text-align: center;
}
.iconfont {
line-height: 1;
position: absolute;
right: 30rpx;
top: 50%;
transform: translate(0, -50%);
color: $color-tip;
font-size: $font-size-toolbar;
}
}
.popup-body {
}
}
.discount-popup {
.popup-body {
min-height: 300rpx;
}
.detail-item {
height: 60rpx;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 30rpx;
.money {
font-weight: bold;
}
.reduce {
color: var(--price-color);
}
}
.total {
margin-top: 20rpx;
.title {
font-size: 36rpx;
font-weight: bold;
}
}
}
.coupon-use-tips {
padding: 30rpx;
line-height: 1;
background: #fff;
border-bottom: 2rpx solid #eee;
display: flex;
justify-content: space-between;
align-items: center;
& view {
line-height: 1;
}
.iconfont {
font-size: 28rpx;
margin-left: 4rpx;
}
.title {
font-size: 28rpx;
font-weight: 600;
}
.desc {
font-size: 26rpx;
margin-left: 24rpx;
}
}
.coupon-item {
margin: $margin-updown $margin-both;
border-radius: 4rpx;
padding: 0;
position: relative;
background-color: #fff2f0;
&:before,
&:after {
position: absolute;
content: '';
background-color: #fff;
top: 50%;
width: 30rpx;
height: 30rpx;
border-radius: 50%;
z-index: 5;
}
&:before {
left: 0;
transform: translate(-50%, -50%);
}
&:after {
right: 0;
transform: translate(50%, -50%);
}
.coupon-info {
height: 190rpx;
display: flex;
width: 100%;
position: relative;
.info-wrap {
width: 220rpx;
height: 190rpx;
display: flex;
justify-content: center;
align-items: center;
margin-right: 20rpx;
background-repeat: no-repeat;
background-size: 100% 100%;
background: linear-gradient(to left, var(--bg-color), var(--bg-color-shallow));
position: relative;
.coupon-line {
position: absolute;
right: 0;
top: 0;
height: 100%;
}
.coupon-money {
color: #fff;
text-align: center;
line-height: 1;
.unit {
font-size: 30rpx;
}
.money {
font-size: 60rpx;
}
}
.at-least {
font-size: $font-size-tag;
color: #fff;
text-align: center;
margin-top: 20rpx;
}
}
.desc-wrap {
flex: 1;
max-width: calc(100% - 400rpx);
view {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.coupon-name {
margin-top: 10rpx;
margin-bottom: 4rpx;
font-size: $font-size-base;
}
.limit {
font-size: $font-size-activity-tag;
}
.time {
border-top: 2rpx dashed $color-disabled;
position: absolute;
bottom: 30rpx;
color: $color-tip;
padding-top: 10rpx;
line-height: 1.5;
font-size: $font-size-activity-tag;
}
}
button {
font-size: $font-size-tag;
position: absolute;
top: 50%;
right: 20rpx;
transform: translate(0, -50%);
margin: 0;
height: 50rpx;
line-height: 50rpx;
width: 100rpx;
padding: 0;
&[disabled] {
background-color: #dedede !important;
}
}
}
&.disabled {
background-color: #f2f2f2;
.coupon-money {
color: $color-tip !important;
}
.at-least {
color: $color-tip !important;
}
}
}
.uni-popup-discount {
z-index: 5;
}
.store-wrap {
display: flex;
align-items: center;
background-color: #fff;
padding: 26rpx 30rpx 0;
font-weight: bold;
line-height: 1;
.name {
font-size: $font-size-base;
margin-left: 10rpx;
}
}

View File

@@ -0,0 +1,585 @@
// 优惠券弹出层
.goods-coupon-popup-layer {
height: 800rpx;
.coupon-body {
position: absolute;
left: 0;
right: 0;
height: 65%;
.coupon-item {
margin: $margin-updown $margin-both;
border-radius: 4rpx;
padding: 0;
position: relative;
background-color: #fff2f0;
&:before,
&:after {
position: absolute;
content: '';
background-color: #fff;
top: 50%;
width: 30rpx;
height: 30rpx;
border-radius: 50%;
z-index: 5;
}
&:before {
left: 0;
transform: translate(-50%, -50%);
}
&:after {
right: 0;
transform: translate(50%, -50%);
}
.coupon-info {
height: 190rpx;
display: flex;
width: 100%;
position: relative;
.info-wrap {
width: 220rpx;
height: 190rpx;
display: flex;
justify-content: center;
align-items: center;
margin-right: 20rpx;
background-repeat: no-repeat;
background-size: 100% 100%;
background: linear-gradient(to left, var(--bg-color), var(--bg-color-shallow));
position: relative;
&.disabled {
background: #dedede;
}
.coupon-line {
position: absolute;
right: 0;
top: 0;
height: 100%;
}
.coupon-money {
color: #fff;
text-align: center;
line-height: 1;
.unit {
font-size: 30rpx;
}
.money {
font-size: 60rpx;
}
}
.at-least {
font-size: $font-size-tag;
color: #fff;
text-align: center;
margin-top: 20rpx;
}
}
.desc-wrap {
flex: 1;
max-width: calc(100% - 400rpx);
position: relative;
view {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.coupon-name {
margin-top: 10rpx;
margin-bottom: 4rpx;
font-size: $font-size-base;
}
.limit {
font-size: $font-size-activity-tag;
}
.time {
width: 100%;
border-top: 2rpx dashed $color-disabled;
position: absolute;
bottom: 30rpx;
color: $color-tip;
padding-top: 10rpx;
line-height: 1.5;
font-size: $font-size-activity-tag;
}
}
button {
font-size: $font-size-tag;
position: absolute;
top: 50%;
right: 20rpx;
transform: translate(0, -50%);
margin: 0;
height: 50rpx;
line-height: 50rpx;
width: 100rpx;
padding: 0;
&[disabled] {
background-color: #dedede !important;
}
}
}
&.disabled {
background-color: #f2f2f2;
.coupon-money {
color: $color-tip !important;
}
.at-least {
color: $color-tip !important;
}
}
}
}
}
// 满减
.manjian-popup-layer {
height: 660rpx;
.free-tip {
min-width: 72rpx;
height: 36rpx;
line-height: 36rpx;
text-align: center;
border: none;
padding: 8rpx 8rpx;
border-radius: $border-radius;
margin-right: 20rpx;
font-size: $font-size-activity-tag;
display: inline-block;
font-weight: bold;
color: var(--main-color);
background-color: var(--main-color-shallow);
}
.manjian-body {
position: absolute;
left: 0;
right: 0;
height: 60%;
.item {
padding: $padding 0;
margin: 0 30rpx;
border-bottom: 1px solid $color-line;
.value {
margin-left: 20rpx;
}
&:last-child {
border-bottom: 0;
}
}
}
}
// 组合套餐
.combo-goods-wrap {
display: flex;
// width: calc(100% - 40rpx);
white-space: nowrap;
align-items: center;
padding: 20rpx 0;
.goods-wrap {
display: flex;
align-items: center;
.goods-item {
width: 25%;
display: inline-block;
margin-right: 30rpx;
position: relative;
vertical-align: middle;
.combo-img {
height: 160rpx;
width: 160rpx;
overflow: hidden;
border-radius: $border-radius;
position: relative;
image {
width: 100%;
height: 100%;
}
.price-wrap {
position: absolute;
bottom: 0;
background: rgba(0, 0, 0, 0.4);
color: #fff;
left: 0;
width: 100%;
font-weight: bold;
.unit {
font-size: $font-size-tag;
margin-left: 10rpx;
}
.price {
font-size: $font-size-base;
}
}
}
.name {
display: block;
height: 40rpx;
line-height: 40rpx;
font-size: $font-size-tag;
margin-top: 10rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
}
}
// 组合套餐
.bundling-popup-layer {
height: 600rpx;
.bundling-body {
position: absolute;
left: 0;
right: 0;
height: 83%;
background-color: $color-bg;
.bundling-view {
margin: 20rpx 30rpx;
border-radius: $border-radius;
.bundling-item {
padding: $padding 30rpx;
background-color: #fff;
margin-bottom: 20rpx;
.title {
margin-bottom: 20rpx;
display: flex;
justify-content: space-between;
align-items: center;
.icon-right {
position: initial;
}
}
&:last-child {
margin-bottom: 0;
}
scroll-view {
width: 100%;
white-space: nowrap;
box-sizing: border-box;
.goods-wrap {
display: flex;
align-items: center;
.goods-item {
width: 25%;
display: inline-block;
margin-right: 30rpx;
position: relative;
vertical-align: middle;
.combo-img {
height: 160rpx;
width: 160rpx;
overflow: hidden;
border-radius: $border-radius;
position: relative;
image {
width: 100%;
height: 100%;
}
.price-wrap {
position: absolute;
bottom: 0;
background: rgba(0, 0, 0, 0.4);
color: #fff;
left: 0;
width: 100%;
font-weight: bold;
.unit {
font-size: $font-size-tag;
margin-left: 10rpx;
}
.price {
font-size: $font-size-base;
}
}
}
.name {
display: block;
height: 40rpx;
line-height: 40rpx;
font-size: $font-size-tag;
margin-top: 10rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
}
}
.bundling-price-wrap {
text-align: right;
margin-top: 20rpx;
.label {
font-size: $font-size-base;
vertical-align: middle;
margin-right: 20rpx;
}
.unit {
font-size: $font-size-tag;
vertical-align: middle;
margin-right: 4rpx;
font-weight: bold;
}
.price {
font-size: $font-size-toolbar;
vertical-align: middle;
font-weight: bold;
margin-right: 20rpx;
}
button {
vertical-align: middle;
background-color: var(--goods-btn-color);
}
}
}
}
}
}
.newdetail {
.item {
&.coupon {
.coupon-list {
flex: 1;
overflow: hidden;
line-height: 1;
height: 60rpx;
// line-height: 40rpx;
max-width: 84%;
box-sizing: border-box;
}
.coupon-item {
margin-top: 8rpx;
margin-bottom: 10rpx;
padding: 3rpx 16rpx;
margin-right: 20rpx;
position: relative;
border: 1.5px solid;
background-size: cover;
border-radius: 6rpx;
display: inline-block;
// height: 40rpx;
// line-height: 34rpx;
box-sizing: border-box;
// &:nth-child(2) {
// margin-left: 0;
// }
border-color: var(--goods-coupon);
&::after,
&::before {
content: '';
width: 12rpx;
height: 12rpx;
position: absolute;
top: 50%;
border-radius: $border-radius;
background: #fff;
border: 1px solid var(--goods-coupon) !important;
}
&::after {
left: -10rpx;
transform: translateY(-50%) rotate(-45deg);
border-top-color: transparent !important;
border-left-color: transparent !important;
}
&::before {
right: -10rpx;
transform: translateY(-50%) rotate(-45deg);
border-bottom-color: transparent !important;
border-right-color: transparent !important;
}
&:first-child {
margin-left: 0;
}
&:last-child {
margin-right: 0;
}
view {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 24rpx;
text-align: center;
line-height: 1.5;
// height: 36rpx;
// height: 36rpx;
// line-height: 34rpx;
color: var(--goods-coupon);
font-weight: bold;
}
}
}
}
}
.more-img-wrap {
width: 38rpx;
height: 38rpx;
position: absolute;
right: 30rpx;
image {
width: 100%;
height: 100%;
}
}
// 会员卡
.member-card-wrap {
margin-top: 20rpx;
height: 80rpx;
border-radius: 10rpx;
background: linear-gradient(to right, var(--goods-card-bg), var(--goods-card-bg-shallow));
display: flex;
align-items: center;
padding: 0 20rpx;
color: var(--goods-card-color);
.icon-huiyuan {
margin-right: 10rpx;
line-height: 1;
font-size: 32rpx;
}
.info {
flex: 1;
color: #e5ce75;
font-size: $font-size-tag;
}
.btn {
text-align: center;
line-height: 50rpx;
height: 50rpx;
border-radius: 6rpx;
width: 160rpx;
font-size: $font-size-tag;
color: #222;
font-weight: bold;
background: var(--goods-card-color);
}
}
.goods-promotion {
background: var(--promotion-color);
height: 75px;
.price-info {
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
.icon-box {
margin-right: 20rpx;
.iconfont {
font-size: 60rpx;
color: #ffffff;
}
}
.price-box {
display: flex;
align-items: flex-start;
flex-direction: column;
height: 100%;
justify-content: center;
.promotion-text {
font-size: 36rpx;
color: #fff;
line-height: 1;
}
.sale-num {
display: flex;
align-items: center;
margin-top: 18rpx;
view {
color: #ffffff;
line-height: 1;
}
}
}
}
}
.countdown {
width: 220rpx;
background: var(--promotion-aux-color);
.txt {
color: #ffffff !important;
font-size: 28rpx !important;
}
.clockrun {
margin-top: 16rpx !important;
}
&:after {
position: absolute;
content: '';
top: calc(50% - 15rpx);
z-index: 5;
left: -15rpx;
width: 0;
height: 0;
border-style: solid;
border-width: 15rpx 15rpx 15rpx 0;
border-color: transparent var(--promotion-aux-color) transparent transparent;
}
}
.fenxiao-detail {
padding-top: 20rpx;
.title {
font-weight: 600;
font-size: $font-size-base;
}
.commission-ratio {
margin-top: 10rpx;
border-radius: $border-radius;
.item {
display: flex;
border-bottom: 2rpx solid $color-line;
height: 80rpx;
align-items: center;
&:last-child {
border-bottom: none;
}
view {
flex: 1;
&:first-child {
font-size: $font-size-base;
}
&:last-child {
text-align: right;
font-weight: bold;
.unit {
font-size: $font-size-tag;
margin-right: 4rpx;
}
.money {
font-size: $font-size-base;
}
}
}
}
}
}

View File

@@ -0,0 +1,647 @@
.head-wrap {
background: #fff;
position: fixed;
width: 100%;
left: 0;
z-index: 1;
.search-wrap {
flex: 0.5;
padding: 30rpx 30rpx 0;
font-size: $font-size-tag;
display: flex;
align-items: center;
.iconfont {
margin-left: 16rpx;
font-size: 36rpx;
}
.input-wrap {
flex: 1;
display: flex;
justify-content: space-between;
align-items: center;
background: $color-bg;
height: 64rpx;
padding-left: 10rpx;
border-radius: 70rpx;
input {
width: 90%;
background: $color-bg;
font-size: $font-size-tag;
height: 100%;
padding: 0 25rpx 0 40rpx;
line-height: 50rpx;
border-radius: 40rpx;
}
text {
font-size: $font-size-toolbar;
color: $color-tip;
width: 80rpx;
text-align: center;
margin-right: 20rpx;
}
}
.category-wrap,
.list-style {
display: flex;
justify-content: center;
align-items: center;
.iconfont {
font-size: 50rpx;
color: $color-tip;
}
text {
display: block;
margin-top: 60rpx;
}
}
}
.sort-wrap {
display: flex;
padding: 10rpx 20rpx 10rpx 0;
> view {
flex: 1;
text-align: center;
font-size: $font-size-base;
height: 60rpx;
line-height: 60rpx;
font-weight: bold;
}
.comprehensive-wrap {
display: flex;
justify-content: center;
align-items: center;
.iconfont-wrap {
display: inline-block;
margin-left: 10rpx;
width: 40rpx;
.iconfont {
font-size: $font-size-toolbar;
line-height: 1;
margin-bottom: 5rpx;
}
}
}
.price-wrap {
display: flex;
justify-content: center;
align-items: center;
.iconfont-wrap {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
width: 40rpx;
.iconfont {
position: relative;
float: left;
font-size: 32rpx;
line-height: 1;
height: 20rpx;
color: #909399;
&.asc {
top: -2rpx;
}
&.desc {
top: -6rpx;
}
}
}
}
.screen-wrap {
display: flex;
justify-content: center;
align-items: center;
.iconfont-wrap {
display: inline-block;
margin-left: 10rpx;
width: 40rpx;
.iconfont {
font-size: $font-size-toolbar;
line-height: 1;
}
}
}
}
}
.category-list-wrap {
height: 100%;
.class-box {
display: flex;
flex-wrap: wrap;
padding: 0 $padding;
view {
width: calc((100% - 60rpx) / 3);
font-size: $font-size-goods-tag;
margin-right: 20rpx;
height: 60rpx;
line-height: 60rpx;
text-align: center;
margin-bottom: 12rpx;
flex-shrink: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
background: rgba(245, 245, 245, 1);
border-radius: 5rpx;
&:nth-of-type(3n) {
margin-right: 0;
}
}
}
.first {
font-size: $font-size-tag;
display: block;
// background: $page-color-base;
padding: 20rpx;
}
.second {
border-bottom: 2rpx solid $color-line;
padding: 20rpx;
display: block;
font-size: $font-size-tag;
}
.third {
padding: 0 20rpx 20rpx;
overflow: hidden;
font-size: $font-size-tag;
> view {
display: inline-block;
margin-right: 20rpx;
margin-top: 20rpx;
}
.uni-tag {
padding: 0 20rpx;
}
}
}
.screen-wrap {
.title {
font-size: $font-size-tag;
padding: $padding;
background: #f6f4f5;
}
scroll-view {
height: 85%;
.item-wrap {
border-bottom: 1px solid #f0f0f0;
.label {
font-size: $font-size-tag;
padding: $padding;
view {
display: inline-block;
font-size: 60rpx;
height: 40rpx;
vertical-align: middle;
line-height: 40rpx;
}
}
.list {
margin: $margin-updown $margin-both;
overflow: hidden;
> view {
display: inline-block;
margin-right: 25rpx;
margin-bottom: 25rpx;
}
.uni-tag {
padding: 0 $padding;
font-size: $font-size-goods-tag;
background: #f5f5f5;
height: 52rpx;
line-height: 52rpx;
border: 0;
}
}
.price-wrap {
display: flex;
justify-content: center;
align-items: center;
padding: $padding;
input {
flex: 1;
background: #f5f5f5;
height: 52rpx;
width: 182rpx;
line-height: 50rpx;
font-size: $font-size-goods-tag;
border-radius: 50rpx;
text-align: center;
&:first-child {
margin-right: 10rpx;
}
&:last-child {
margin-left: 10rpx;
}
}
}
}
}
.footer {
height: 90rpx;
display: flex;
justify-content: center;
align-items: flex-start;
display: flex;
//position: absolute;
bottom: 0;
width: 100%;
.footer-box {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
margin: 0;
width: 40%;
}
.footer-box1 {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
margin: 0;
width: 40%;
}
}
}
.safe-area {
bottom: 68rpx !important;
}
.empty {
margin-top: 100rpx;
}
.buy-num {
font-size: $font-size-activity-tag;
}
.icon {
width: 34rpx;
height: 30rpx;
}
.list-style-new {
display: flex;
align-items: center;
.line {
width: 4rpx;
height: 28rpx;
background-color: rgba(227, 227, 227, 1);
margin-right: 60rpx;
}
}
.h-line {
width: 37rpx;
height: 2rpx;
background-color: $color-tip;
}
.lineheight-clear {
}
// 商品列表单列样式
.goods-list.single-column {
display: none;
&.show {
display: block;
}
.goods-item {
padding: 26rpx;
background: #fff;
margin: $margin-updown $margin-both;
border-radius: $border-radius;
display: flex;
position: relative;
.goods-img {
position: relative;
width: 200rpx;
height: 200rpx;
// overflow: hidden;
border-radius: $border-radius;
margin-right: 20rpx;
overflow: hidden;
image {
width: 200rpx;
height: 200rpx;
}
}
.goods-tag {
color: #fff;
line-height: 1;
padding: 8rpx 12rpx;
position: absolute;
border-top-left-radius: $border-radius;
border-bottom-right-radius: $border-radius;
top: 0;
left: 0;
font-size: $font-size-goods-tag;
}
.goods-tag-img {
position: absolute;
border-top-left-radius: $border-radius;
width: 80rpx;
height: 80rpx;
top: 26rpx;
left: 26rpx;
z-index: 5;
overflow: hidden;
image {
width: 100%;
height: 100%;
}
}
.info-wrap {
flex: 1;
display: flex;
flex-direction: column;
}
.name-wrap {
flex: 1;
}
.goods-name {
font-size: $font-size-base;
line-height: 1.3;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.introduction {
line-height: 1;
margin-top: 10rpx;
}
.discount-price {
display: inline-block;
font-weight: bold;
line-height: 1;
margin-top: 16rpx;
.unit {
margin-right: 6rpx;
color: var(--price-color);
}
.price {
color: var(--price-color);
}
}
.pro-info {
display: flex;
margin-top: auto;
align-items: center;
position: relative;
.delete-price {
text-decoration: line-through;
font-size: $font-size-tag !important;
flex: 1;
.unit {
margin-right: 0;
}
}
.block-wrap {
flex: 1;
line-height: 1;
margin-right: 20rpx;
.sale {
font-size: $font-size-tag !important;
}
}
}
.member-price-tag {
display: inline-block;
width: 60rpx;
line-height: 1;
margin-left: 6rpx;
image {
width: 100%;
display: flex;
max-height: 30rpx;
}
}
.sell-out{
position: absolute;
z-index: 1;
width: 100%;
height: 100%;
top: 0;
left: 0;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.5);
text{
color: #fff;
font-size: 150rpx;
}
}
}
}
// 商品列表双列样式
.goods-list.double-column {
display: none;
margin: 0 24rpx;
padding-top: $margin-updown;
position: relative;
flex-wrap: wrap;
justify-content: space-between;
&.show {
display: flex;
}
.goods-item {
display: flex;
flex-direction: column;
width: calc(50% - 10rpx);
border-radius: $border-radius;
overflow: hidden;
background-color: #fff;
&:nth-child(2n + 2) {
margin-right: 0;
}
.goods-img {
position: relative;
overflow: hidden;
padding-top: 100%;
border-top-left-radius: $border-radius;
border-top-right-radius: $border-radius;
image {
width: 100%;
position: absolute !important;
top: 50%;
left: 0;
transform: translateY(-50%);
}
}
.goods-tag {
color: #fff;
line-height: 1;
padding: 8rpx 16rpx;
position: absolute;
border-bottom-right-radius: $border-radius;
top: 0;
left: 0;
font-size: $font-size-goods-tag;
}
.goods-tag-img {
position: absolute;
border-top-left-radius: $border-radius;
width: 80rpx;
height: 80rpx;
top: 0;
left: 0;
z-index: 5;
overflow: hidden;
image {
width: 100%;
height: 100%;
}
}
.info-wrap {
padding: 20rpx;
display: flex;
flex-direction: column;
flex: 1;
}
.goods-name {
font-size: $font-size-base;
line-height: 1.3;
margin-top: 20rpx;
}
.lineheight-clear {
margin-top: 16rpx;
}
.discount-price {
display: inline-block;
font-weight: bold;
line-height: 1;
.unit {
margin-right: 6rpx;
color: var(--price-color);
}
.price {
color: var(--price-color);
}
}
.pro-info {
display: flex;
margin-top: auto;
align-items: center;
.block-wrap {
flex: 1;
line-height: 1;
margin-right: 20rpx;
.sale {
font-size: $font-size-tag !important;
}
}
}
.delete-price {
// display: inline-block;
// margin-left: 6rpx;
// float: right;
.unit {
margin-right: 6rpx;
}
text {
line-height: 1;
font-size: $font-size-tag !important;
}
}
.member-price-tag {
display: inline-block;
width: 60rpx;
line-height: 1;
margin-left: 6rpx;
image {
width: 100%;
}
}
.sell-out{
position: absolute;
z-index: 1;
width: 100%;
height: 100%;
top: 0;
left: 0;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.5);
text{
color: #fff;
font-size: 250rpx;
}
}
}
}
.cart-action-wrap {
position: relative;
.shopping-cart-btn {
font-size: 36rpx;
border: 2rpx solid $base-color;
border-radius: 50%;
padding: 10rpx;
color: $base-color;
width: 36rpx;
height: 36rpx;
text-align: center;
line-height: 36rpx;
}
.plus-sign-btn {
font-size: 36rpx;
border: 2rpx solid $base-color;
border-radius: 50%;
padding: 10rpx;
color: $base-color;
width: 36rpx;
height: 36rpx;
text-align: center;
line-height: 36rpx;
}
.buy-btn {
background-color: $base-color;
color: var(--btn-text-color);
border-radius: 50rpx;
font-size: $font-size-tag;
padding: 12rpx 30rpx;
line-height: 1;
}
.icon-diy {
font-size: 80rpx;
}
}