+
+
+
+
{{ item.label }}
@@ -23,17 +13,14 @@
-
+
@@ -271,5 +258,15 @@ defineExpose({
diff --git a/src/pages/order/order/components/Tabs/propmt.md b/src/pages/order/order/components/Tabs/propmt.md
deleted file mode 100644
index e69de29..0000000
diff --git a/src/pages/order/order/components/Tabs/styles/index.scss b/src/pages/order/order/components/Tabs/styles/index.scss
deleted file mode 100644
index 2f1f06a..0000000
--- a/src/pages/order/order/components/Tabs/styles/index.scss
+++ /dev/null
@@ -1,101 +0,0 @@
-.tab-container {
- position: relative;
-}
-
-.tab-wrapper {
- display: flex;
- align-items: center;
- justify-content: center;
- height: 30px;
-}
-
-.tab-item {
- flex: 1;
- display: flex;
- align-items: center;
- justify-content: center;
- height: 100%;
- position: relative;
- transition: all 0.3s ease;
- padding: 0 8px;
-}
-
-.tab-text {
- font-size: 14px;
- color: #666;
- font-weight: 400;
- transition: all 0.3s ease;
- white-space: nowrap;
-}
-
-.tab-text-active {
- color: #333;
- font-size: 16px;
- font-weight: 600;
-}
-
-.tab-item-active {
- .tab-text {
- color: #333;
- font-weight: 600;
- }
-}
-
-.tab-indicator {
- position: absolute;
- bottom: 0;
- height: 3px;
- min-height: 3px; /* 确保最小高度 */
- background-color: #007aff;
- border-radius: 10px;
- transition:
- left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
- width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
- z-index: 1;
- transform: translateZ(0); /* 启用硬件加速 */
- will-change: left, width; /* 优化动画性能 */
-
- /* 初始状态:未初始化时隐藏 */
- opacity: 0;
- width: 15px; /* 默认宽度15px */
- left: 0;
-}
-
-/* 已初始化状态 */
-.tab-indicator.initialized {
- opacity: 1;
-}
-
-/* 点击效果 */
-.tab-item:active {
- opacity: 0.7;
-}
-
-/* 自定义主题色支持 */
-.tab-container[data-indicator-color="red"] .tab-indicator {
- background-color: #ff4d4f;
-}
-
-.tab-container[data-indicator-color="green"] .tab-indicator {
- background-color: #52c41a;
-}
-
-.tab-container[data-indicator-color="orange"] .tab-indicator {
- background-color: #fa8c16;
-}
-
-/* 动画增强 */
-@keyframes tabSwitch {
- 0% {
- transform: translateZ(0) scaleX(0.8);
- opacity: 0.6;
- }
- 100% {
- transform: translateZ(0) scaleX(1);
- opacity: 1;
- }
-}
-
-.tab-indicator.animating {
- animation: tabSwitch 0.3s ease-out;
-}
diff --git a/src/pages/order/order/components/Tabs/test.vue b/src/pages/order/order/components/Tabs/test.vue
deleted file mode 100644
index a2638f5..0000000
--- a/src/pages/order/order/components/Tabs/test.vue
+++ /dev/null
@@ -1,308 +0,0 @@
-
-
-
-
Tab组件测试
-
-
-
-
基础用法
-
-
- 当前选中: {{ currentTab.label }}
-
-
-
-
-
-
多标签测试
-
-
- 当前选中: {{ currentMultiTab.label }}
-
-
-
-
-
-
快速切换测试
-
-
- 当前选中: {{ currentFastTab.label }}
-
-
-
-
-
-
-
-
-
初始化测试
-
测试指示器的动态高度和宽度初始化及错误处理
-
-
- 当前选中: {{ currentInitTab.label }}
-
-
-
-
-
-
-
-
-
- 错误处理测试:组件现在能够安全处理实例为null的情况
-
-
-
-
-
-
-
-
-
diff --git a/src/pages/quick/components/Card/index.vue b/src/pages/quick/components/Card/index.vue
index 6e67487..67904cc 100644
--- a/src/pages/quick/components/Card/index.vue
+++ b/src/pages/quick/components/Card/index.vue
@@ -67,6 +67,7 @@ const navigateToPage = (commodityId, path) => {
router.push({ path, query: { commodityId } })
};
-const handleClick = ({ commodityId }) =>
- navigateToPage(commodityId, "/pages/goods/index");
+const handleClick = ({ commodityId }) => {
+ router.push({ name: "goods", query: { commodityId } })
+}