From 2fdbba6fa0c125c667080f070530d2d96c6df301 Mon Sep 17 00:00:00 2001 From: davy Date: Fri, 4 Apr 2025 14:25:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96beerCoin=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=8A=A0=E8=BD=BD=E6=9B=B4=E5=A4=9A=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=8C=E6=8F=90=E5=8D=87=E7=94=A8=E6=88=B7=E4=BD=93=E9=AA=8C?= =?UTF-8?q?=20-=20=E4=BC=98=E5=8C=96=E6=A0=87=E7=AD=BE=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E6=97=B6=E7=9A=84=E5=8A=A0=E8=BD=BD=E6=95=88=E6=9E=9C=EF=BC=8C?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E9=97=AA=E5=8A=A8=20-=20=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E6=9B=B4=E5=A4=9A=E5=8A=9F=E8=83=BD=E5=92=8C?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=B1=95=E7=A4=BA=20-=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E5=8A=A8=E7=94=BB=E5=92=8C=E5=8F=8B=E5=A5=BD?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=20-=20=E4=BC=98=E5=8C=96=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=95=B4=E4=BD=93=E6=A0=B7=E5=BC=8F=E5=92=8C=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagesCoin/beerCoin.vue | 833 ++++++++++++++++++++++++++--------------- 1 file changed, 526 insertions(+), 307 deletions(-) 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