diff --git a/pagesCoin/beerCoin.vue b/pagesCoin/beerCoin.vue index 30962f3..aee2747 100644 --- a/pagesCoin/beerCoin.vue +++ b/pagesCoin/beerCoin.vue @@ -1,326 +1,545 @@ - - - \ No newline at end of file +} + +/* 标签栏样式 */ +.tab-section { + display: flex; + margin-bottom: 28rpx; + padding: 24rpx; + background: #FFFFFF; + z-index: 99; + width: 100%; + box-sizing: border-box; + + /* 固定定位状态样式 */ + &.fixed { + position: fixed; + left: 0; + right: 0; + top: 0; + margin-bottom: 0; + box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.04); + } + + /* 标签项样式 */ + .tab-item { + width: 144rpx; + height: 64rpx; + line-height: 64rpx; + font-size: 24rpx; + font-weight: 500; + text-align: center; + color: #666666; + background: #F9F9F9; + border-radius: 12rpx; + margin-right: 16rpx; + + /* 激活状态样式 */ + &.active { + color: #FFFFFF; + background: #D42E78; + } + + &:last-child { + margin-right: 0; + } + } +} + +/* 商品列表样式 */ +.goods-list { + display: flex; + flex-wrap: wrap; + justify-content: space-between; + margin-top: v-bind('isTabFixed ? "112rpx" : "0"'); + + /* 商品项样式 */ + .goods-item { + width: 336rpx; + background: #FFFFFF; + border-radius: 16rpx; + margin-bottom: 24rpx; + overflow: hidden; + box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.04); // 简化阴影 + + /* 商品图片样式 */ + .goods-image { + width: 100%; + height: 258rpx; + background: #F5F5F5; + } + + /* 商品标题样式 */ + .goods-title { + padding: 16rpx; + font-size: 24rpx; + color: #1A1A1A; + font-weight: 600; + } + + /* 商品价格区域样式 */ + .goods-price { + padding: 16rpx; + display: flex; + justify-content: space-between; + align-items: center; + + /* 价格左侧区域 */ + .price-left { + display: flex; + align-items: center; + + /* 价格数字样式 */ + .price-num { + font-size: 32rpx; + color: #1A1A1A; + font-weight: bold; + } + + /* 价格图标样式 */ + .coin-icon { + color: #FFD700; + font-size: 24rpx; + margin-left: 12rpx; + } + } + + /* 品牌名称样式 */ + .brand-name { + font-size: 20rpx; + color: #808080; + background: #F6F7FB; + padding: 4rpx 12rpx; + border-radius: 20rpx; + } + } + } +} + +/* 加载更多提示样式 */ +.load-more { + text-align: center; + padding: 24rpx; + color: #999999; + font-size: 24rpx; + + .loading { + display: flex; + align-items: center; + justify-content: center; + + .iconfont-spin { + animation: loading-rotate 1s linear infinite; + margin-right: 8rpx; + } + + .loading-text { + color: #666666; + } + } + + .no-more { + color: #999999; + } + + .pull-tip { + color: #666666; + } + + .empty { + color: #999999; + font-size: 28rpx; + } +} + +@keyframes loading-rotate { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +} + +/* 文本截断样式 */ +.text-cut { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} + + + \ No newline at end of file