123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221 |
- /* pages/search/result.wxss */
- .container {
- min-height: 100vh;
- background: #ffffff;
- }
- /* 搜索头部 */
- .search-header {
- padding: 24rpx 32rpx;
- background: #ffffff;
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- z-index: 100;
- border-bottom: 1rpx solid #f5f5f5;
- }
- .search-box {
- height: 72rpx;
- background: #f5f5f5;
- border-radius: 36rpx;
- display: flex;
- align-items: center;
- padding: 0 24rpx;
- }
- .search-text {
- flex: 1;
- font-size: 28rpx;
- color: #262626;
- margin-left: 16rpx;
- }
- /* 排序栏 */
- .sort-bar {
- display: flex;
- background: #ffffff;
- padding: 0 32rpx;
- height: 88rpx;
- position: fixed;
- top: 120rpx;
- left: 0;
- right: 0;
- z-index: 90;
- border-bottom: 1rpx solid #f5f5f5;
- }
- .sort-item {
- flex: 1;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 28rpx;
- color: #666666;
- position: relative;
- }
- .sort-item.active {
- color: #ff4d4f;
- font-weight: 500;
- }
- .sort-icon {
- display: flex;
- flex-direction: column;
- margin-left: 8rpx;
- height: 24rpx;
- }
- .sort-icon .iconfont {
- font-size: 20rpx;
- color: #bfbfbf;
- line-height: 1;
- }
- .sort-icon .iconfont.active {
- color: #ff4d4f;
- }
- /* 商品列表 */
- .goods-list {
- position: fixed;
- top: 208rpx;
- left: 0;
- right: 0;
- bottom: 0;
- background: #f5f5f5;
- padding: 24rpx 32rpx;
- }
- .goods-grid {
- display: flex;
- flex-wrap: wrap;
- margin: 0 -8rpx;
- }
- .goods-item {
- width: calc(50% - 16rpx);
- margin: 8rpx;
- background: #ffffff;
- 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: #ff4d4f;
- margin-right: 2rpx;
- }
- .price {
- font-size: 32rpx;
- color: #ff4d4f;
- font-weight: 500;
- font-family: "DIN Alternate", -apple-system, BlinkMacSystemFont, "Segoe UI",
- Roboto, sans-serif;
- }
- .commission-group {
- display: flex;
- align-items: center;
- background: rgba(255, 77, 79, 0.1);
- padding: 4rpx 8rpx;
- border-radius: 4rpx;
- }
- .commission-group .iconfont {
- font-size: 24rpx;
- color: #ff4d4f;
- margin-right: 4rpx;
- }
- .commission {
- font-size: 24rpx;
- color: #ff4d4f;
- }
- /* 加载状态 */
- .loading-status {
- text-align: center;
- padding: 32rpx 0;
- }
- .loading,
- .no-more {
- font-size: 24rpx;
- color: #999999;
- }
- /* 空状态 */
- .empty-state {
- position: fixed;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- .empty-state text {
- font-size: 28rpx;
- color: #999999;
- margin-top: 32rpx;
- }
- /* 图标字体 */
- @font-face {
- font-family: "iconfont";
- src: url("data:font/woff2;charset=utf-8;base64,d09GMgABAAAAAAO0AAsAAAAACFwAAANlAAEAAAAAAAAAAAAAAAAAAAAAAAA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