From 1264aa6d4698b6a02b4d7d5a8bb8e4af7d9c299b Mon Sep 17 00:00:00 2001 From: linbin <495561397@qq.com> Date: Mon, 25 Aug 2025 02:24:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=BC=E8=BF=B0:=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E7=A6=8F=E5=88=A9=E4=B8=93=E5=8C=BA=E7=A7=AF=E5=88=86=E8=B4=AD?= =?UTF-8?q?=E7=89=A9=E5=8A=9F=E8=83=BD=EF=BC=8C=E5=A2=9E=E5=BC=BA=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 重构积分专区布局,新增标签页切换功能,分离积分换购和积分优惠购内容 - 新增悬浮购物车图标,支持商品数量统计和动画效果,提升购物体验 - 优化积分商品按钮功能,将"立即换购"改为"添加到积分购物车",支持购物车批量管理 - 新增商品添加成功提示功能,采用友好的toast通知方式,避免使用alert弹窗 - 完善积分专区交互逻辑,支持购物车数量实时更新和状态管理 - 优化页面加载提示,新增"下滑展示更多"引导文字,改善用户浏览体验 --- 用户端APP/福利专区.html | 263 +++++++++++++++++++++++++++++++++++----- 1 file changed, 236 insertions(+), 27 deletions(-) diff --git a/用户端APP/福利专区.html b/用户端APP/福利专区.html index 08e3dcf..5d63878 100644 --- a/用户端APP/福利专区.html +++ b/用户端APP/福利专区.html @@ -129,6 +129,56 @@ display: block; } + /* 积分专区tabs */ + .points-tabs { + display: flex; + justify-content: center; + gap: 20px; + margin-bottom: 20px; + background: white; + border-radius: 15px; + padding: 5px; + } + + .points-tab { + flex: 1; + text-align: center; + padding: 12px 0; + border-radius: 10px; + font-size: 14px; + font-weight: 500; + cursor: pointer; + transition: all 0.3s ease; + } + + .points-tab.active { + background: #ff6b35; + color: white; + } + + .points-tab:not(.active) { + color: #666; + } + + /* 积分内容区域 */ + .points-content { + display: none; + } + + .points-content.active { + display: block; + } + + /* 下拉提示 */ + .load-more-tip { + text-align: center; + color: #999; + font-size: 12px; + margin-top: 20px; + padding: 10px; + opacity: 0.7; + } + /* 积分专区样式 */ .points-section { background: white; @@ -566,6 +616,68 @@ justify-content: center; font-size: 18px; } + + /* 悬浮购物车图标 */ + .floating-cart { + position: fixed; + bottom: 90px; + right: 20px; + width: 60px; + height: 60px; + background: #ff6b35; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + font-size: 28px; + color: white; + box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4); + cursor: pointer; + z-index: 1000; + transition: all 0.3s ease; + } + + .floating-cart:hover { + transform: scale(1.1); + box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6); + } + + .floating-cart.bounce { + animation: bounce 0.6s ease; + } + + .cart-badge { + position: absolute; + top: -5px; + right: -5px; + background: #ff4444; + color: white; + width: 24px; + height: 24px; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + font-size: 12px; + font-weight: bold; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); + } + + .cart-badge.hidden { + display: none; + } + + @keyframes bounce { + 0%, 20%, 50%, 80%, 100% { + transform: translateY(0); + } + 40% { + transform: translateY(-10px); + } + 60% { + transform: translateY(-5px); + } + } @@ -598,12 +710,14 @@
- -
-
-
积分换购
-
查看更多 >
-
+ +
+
积分换购
+
积分优惠购
+
+ + +
🥛
@@ -611,7 +725,7 @@
500积分
原价 ¥8
华清市场/华清超市
- +
🍎
@@ -619,7 +733,7 @@
800积分
原价 ¥12
新鲜市场/新鲜果园
- +
🥖
@@ -627,7 +741,7 @@
600积分
原价 ¥10
烘焙市场/烘焙坊
- +
🍵
@@ -635,17 +749,14 @@
1200积分
原价 ¥25
茶叶市场/茶叶专营店
- +
+
下滑展示更多
- -
-
-
积分优惠购
-
查看更多 >
-
+ +
🥩
@@ -653,7 +764,7 @@
300积分+¥45
原价 ¥68
华清市场/华清肉店
- +
🍯
@@ -661,7 +772,7 @@
200积分+¥35
原价 ¥48
农家市场/农家特产
- +
🧀
@@ -669,7 +780,7 @@
500积分+¥25
原价 ¥45
进口市场/进口食品店
- +
🍫
@@ -677,9 +788,10 @@
400积分+¥18
原价 ¥32
甜品市场/甜品屋
- +
+
下滑展示更多
@@ -937,6 +1049,12 @@
+ +
+ + 🛒 +
+ - \ No newline at end of file +