From a9d97b150701e634bdb751eab277696abd136cca Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 16 六月 2026 14:39:47 +0800
Subject: [PATCH] 君歌app 1.依照web端功能修改

---
 src/pages/index.vue |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/pages/index.vue b/src/pages/index.vue
index 2d253b2..5aea74a 100644
--- a/src/pages/index.vue
+++ b/src/pages/index.vue
@@ -273,9 +273,13 @@
         console.log("鎵爜缁撴灉:", res);
         // 瑙f瀽鎵爜缁撴灉骞惰烦杞埌鐢熶骇鎶ュ伐椤甸潰
         try {
-          const scanResult = JSON.parse(res.result);
+          const scanRaw = res.result;
+          const scanResult =
+            typeof scanRaw === "string" ? JSON.parse(scanRaw) : scanRaw;
+          console.log("scanResult", scanResult);
           uni.navigateTo({
-            url: `/pages/productionManagement/productionReport/index?orderRow=${encodeURIComponent(JSON.stringify(scanResult))}`
+            // 浼犻�掓暣涓� orderRow 瀵硅薄锛堟壂鐮佸璞★級缁欐姤宸ラ〉
+            url: `/pages/productionManagement/productionReport/index?orderRow=${encodeURIComponent(JSON.stringify(scanResult))}`,
           });
         } catch (e) {
           console.error("鎵爜缁撴灉瑙f瀽澶辫触:", e);
@@ -284,7 +288,7 @@
       },
       fail: (err) => {
         console.error("鎵爜澶辫触:", err);
-      }
+      } 
     });
     return;
   }

--
Gitblit v1.9.3