123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- .container {
- background-color: #fafafa;
- min-height: 100vh;
- padding-bottom: 20rpx;
- }
- .sort-bar {
- display: flex;
- background-color: #fff;
- padding: 0 20rpx;
- height: 88rpx;
- align-items: center;
- position: sticky;
- top: 0;
- z-index: 10;
- border-bottom: 1rpx solid #eee;
- }
- .sort-item {
- flex: 1;
- text-align: center;
- font-size: 28rpx;
- color: #666;
- position: relative;
- height: 88rpx;
- line-height: 88rpx;
- }
- .sort-item.active {
- color: #ff4d4f;
- font-weight: bold;
- }
- .sort-item.active::after {
- content: "";
- position: absolute;
- bottom: 0;
- left: 50%;
- transform: translateX(-50%);
- width: 40rpx;
- height: 4rpx;
- background-color: #ff4d4f;
- }
- .goods-list {
- display: flex;
- flex-wrap: wrap;
- margin: 0 -8rpx;
- padding: 20rpx;
- }
- .goods-item {
- width: calc(50% - 16rpx);
- margin: 8rpx;
- background: #fff;
- border-radius: 12rpx;
- overflow: hidden;
- box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.04);
- transition: all 0.3s ease;
- }
- .goods-item:active {
- transform: scale(0.98);
- }
- .goods-img {
- width: 100%;
- height: 280rpx;
- background: #f5f5f5;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .goods-img image {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- .goods-info {
- padding: 16rpx 20rpx 20rpx;
- }
- .goods-name {
- font-size: 26rpx;
- color: #262626;
- line-height: 1.4;
- margin-bottom: 16rpx;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- overflow: hidden;
- }
- .price-box {
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .price-group {
- display: flex;
- align-items: baseline;
- }
- .price-symbol {
- font-size: 24rpx;
- color: #262626;
- margin-right: 2rpx;
- font-weight: 500;
- }
- .price {
- font-size: 34rpx;
- color: #262626;
- font-weight: 500;
- font-family: "DIN Alternate", -apple-system, BlinkMacSystemFont, "Segoe UI",
- Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
- }
- .commission-group {
- display: flex;
- align-items: center;
- background-color: rgba(255, 77, 79, 0.1);
- padding: 4rpx 8rpx;
- border-radius: 4rpx;
- }
- .icon-share {
- font-size: 22rpx;
- color: #ff4d4f;
- margin-right: 4rpx;
- }
- .commission {
- font-size: 22rpx;
- color: #ff4d4f;
- font-family: "DIN Alternate", -apple-system, BlinkMacSystemFont, "Segoe UI",
- Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
- }
- .loading-state,
- .no-more,
- .empty-state {
- text-align: center;
- color: #999;
- padding: 30rpx;
- font-size: 24rpx;
- }
- .loading-state::before {
- content: "";
- display: inline-block;
- width: 30rpx;
- height: 30rpx;
- margin-right: 10rpx;
- border: 2rpx solid #999;
- border-top-color: transparent;
- border-radius: 50%;
- animation: loading 0.8s linear infinite;
- }
- @keyframes loading {
- from {
- transform: rotate(0deg);
- }
- to {
- transform: rotate(360deg);
- }
- }
|