From 2a2af01097e95668e62f0bc53831d756399ccc49 Mon Sep 17 00:00:00 2001
From: ISFP_T <68358856@qq.com>
Date: Fri, 8 May 2026 09:20:05 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
env/.env.development | 4 +-
.../tabbar-home/components/class-bullet.vue | 340 ++++++++++--------
2 files changed, 184 insertions(+), 160 deletions(-)
diff --git a/env/.env.development b/env/.env.development
index 8d364d2..f1635d4 100644
--- a/env/.env.development
+++ b/env/.env.development
@@ -4,7 +4,7 @@ NODE_ENV=development
VITE_DELETE_CONSOLE=false
#本地环境
-#VITE_SERVER_BASEURL=https://howhowfresh.com/prod-api
-VITE_SERVER_BASEURL=http://192.168.5.11:8080
+VITE_SERVER_BASEURL=https://howhowfresh.com/prod-api
+#VITE_SERVER_BASEURL=http://192.168.5.11:8080
#VITE_SERVER_BASEURL=http://192.168.0.148:8888
#VITE_SERVER_BASEURL=http://liuyao.nat100.top/meiguowaimai
\ No newline at end of file
diff --git a/src/pages/home/components/tabbar-home/components/class-bullet.vue b/src/pages/home/components/tabbar-home/components/class-bullet.vue
index 3b3ffd1..7022464 100644
--- a/src/pages/home/components/tabbar-home/components/class-bullet.vue
+++ b/src/pages/home/components/tabbar-home/components/class-bullet.vue
@@ -1,57 +1,54 @@
-
-
-
-
-
-
-
- {{ item.categoryName || item.name }}
+
+
+
+
+
+
+
+ {{ item.categoryName || item.name }}
+
-
-
-
- {{ item.categoryName || item.name }}
+
+
+
+ {{ item.categoryName || item.name }}
+
-
+
-
-
-
-
+
+
+
+
+
{{ item.categoryName || item.name }}
+
{{ item.categoryName || item.name }}
-
+
-
@@ -279,7 +298,7 @@ onUnmounted(() => {
overflow: hidden;
.scroll-row {
- margin-bottom: 20rpx;
+ margin-bottom: 12rpx;
overflow: hidden;
&:last-child {
@@ -287,15 +306,21 @@ onUnmounted(() => {
}
}
- .ab-scroll {
+ .marquee-viewport {
width: 100%;
overflow: hidden;
}
- .sv-inner {
+ .marquee-track {
display: flex;
- flex-direction: row;
- gap: 20rpx;
+ flex-wrap: nowrap;
+ width: max-content;
+ will-change: transform;
+ }
+
+ .track-group {
+ display: flex;
+ flex-wrap: nowrap;
}
.category-item {
@@ -304,6 +329,7 @@ onUnmounted(() => {
justify-content: center;
min-width: 120rpx;
height: 60rpx;
+ margin-right: 20rpx;
padding: 0 20rpx;
background: #fff;
border: none;
@@ -331,6 +357,4 @@ onUnmounted(() => {
}
}
}
-
-// 取消 CSS 动画,由 JS 控制的 scroll-left 实现无缝滚动,避免与手势滚动冲突导致的抖动