From 1e5646aadae902d9f9043cc0d79395bf6b06a38c Mon Sep 17 00:00:00 2001
From: 曹睿 <360930172@qq.com>
Date: 星期一, 21 四月 2025 14:46:59 +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