Compare commits

..

No commits in common. "7d74af82e997758b2e1e8513a0a6ff0cd937e47e" and "efb7d5b7cd75431f2782ce2d35ab6f1d20b8e64b" have entirely different histories.

1 changed files with 101 additions and 48 deletions

View File

@ -176,81 +176,54 @@ export default {
flex-direction: column; flex-direction: column;
} }
// Tab - // Tab
.tab-container { .tab-container {
// background: #ffffff; background: #ffffff;
padding: 0; padding: 20rpx 24rpx 0;
position: relative; position: relative;
z-index: 4; z-index: 4;
// 线
&::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3rpx;
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}
.tab-wrapper { .tab-wrapper {
display: flex; display: flex;
justify-content: center;
position: relative; position: relative;
// background: #ffffff;
// padding: 32rpx 24rpx 24rpx;
.tab-item { .tab-item {
flex: 1; flex: none;
position: relative; position: relative;
cursor: pointer; cursor: pointer;
padding: 24rpx 32rpx; margin: 0 32rpx;
text-align: center; padding: 16rpx 0;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
.tab-text { .tab-text {
font-size: 32rpx; font-size: 30rpx;
font-weight: 500; font-weight: 500;
color: #64748b; color: #9ca3af;
transition: all 0.3s ease; transition: all 0.3s ease;
position: relative;
z-index: 2;
} }
.tab-line { .tab-line {
display: none; position: absolute;
} bottom: 0;
left: 0;
// right: 0;
&:hover:not(.tab-active) { height: 3rpx;
.tab-text { background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
color: #475569; border-radius: 2rpx;
transform: translateY(-1rpx); animation: slideIn 0.3s ease;
}
} }
&.tab-active { &.tab-active {
background: rgba(102, 126, 234, 0.08);
.tab-text { .tab-text {
color: #667eea; color: #1f2937;
font-weight: 600; font-weight: 600;
} }
// - 线
&::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 3rpx;
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}
} }
&:active { &:active {
transform: scale(0.98); .tab-text {
transform: scale(0.95);
}
} }
} }
} }
@ -634,4 +607,84 @@ export default {
.goodList_i:nth-child(n + 6) { .goodList_i:nth-child(n + 6) {
animation-delay: 0.6s; animation-delay: 0.6s;
} }
//
@media (max-width: 750rpx) {
.tab-container {
padding: 24rpx 16rpx 0;
.tab-wrapper {
.tab-item {
margin: 0 24rpx;
padding: 12rpx 0;
.tab-text {
font-size: 28rpx;
}
}
}
}
.goodList {
.goodList_i {
padding: 24rpx;
.cover {
width: 200rpx;
height: 200rpx;
}
.goodList_ir {
margin-left: 20rpx;
.tit1 {
font-size: 28rpx;
}
.goodList_ib {
.price-container {
.price {
font-size: 32rpx;
}
}
}
.quantity-section {
.quantity-control {
.quantity-btn {
width: 50rpx;
height: 50rpx;
.quantity-icon {
font-size: 28rpx;
}
}
.quantity-display {
min-width: 70rpx;
height: 50rpx;
.quantity-text {
font-size: 24rpx;
}
}
}
}
.toBuy {
padding: 14rpx 20rpx;
font-size: 22rpx;
min-width: 100rpx;
}
.sold-out-section {
.sold-out-btn {
padding: 14rpx 28rpx;
font-size: 22rpx;
}
}
}
}
}
}
</style> </style>