From 912b764830b165ff3b92267570ea43ef9dad58bf Mon Sep 17 00:00:00 2001
From: 曹睿 <360930172@qq.com>
Date: 星期五, 18 四月 2025 14:25:03 +0800
Subject: [PATCH] feat: 拉丝
---
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