From 60deadf038123d057c38f3ba8da48f8e2517806c Mon Sep 17 00:00:00 2001
From: 曹睿 <360930172@qq.com>
Date: 星期五, 18 四月 2025 15:39:55 +0800
Subject: [PATCH] fix: 修复路径错误

---
 src/pages/production/index.vue |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/pages/production/index.vue b/src/pages/production/index.vue
index d82c8d7..cc33983 100644
--- a/src/pages/production/index.vue
+++ b/src/pages/production/index.vue
@@ -15,7 +15,7 @@
         <wd-tab :title="item.label">
           <view class="card_box">
             <Statistics class="statistics_box" />
-            <ProductCard v-for="item in 10" @click="toDetail" />
+            <ProductCard v-for="(item, index) in 10" @click="toDetail(index)" />
             <wd-loadmore custom-class="loadmore" state="loading" />
           </view>
         </wd-tab>
@@ -38,10 +38,16 @@
   },
 ]);
 
-const toDetail = () => {
-  uni.navigateTo({
-    url: "/pages/production/detail/wireDetail",
-  });
+const toDetail = (type: number) => {
+  if (Math.floor(type) % 2 === 0) {
+    uni.navigateTo({
+      url: "/pages/production/detail/wireDetail",
+    });
+  } else {
+    uni.navigateTo({
+      url: "/pages/production/detail/twistDetail",
+    });
+  }
 };
 </script>
 

--
Gitblit v1.9.3