From cfe81826b788332b3de89b92148d53f64377f2f6 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 08 一月 2026 15:22:31 +0800
Subject: [PATCH] 军泰伟业app: 1.部署修改

---
 src/pages/index.vue |  209 ++++++++++++++++++++++++++--------------------------
 1 files changed, 104 insertions(+), 105 deletions(-)

diff --git a/src/pages/index.vue b/src/pages/index.vue
index 1ba9c8b..f1e1f22 100644
--- a/src/pages/index.vue
+++ b/src/pages/index.vue
@@ -18,7 +18,7 @@
     <view class="hero-section">
       <view class="bg-img">
         <view class="hero-content">
-          <text class="hero-title">娑︽嘲鐢熺墿绉戞妧</text>
+          <text class="hero-title">鍐涙嘲浼熶笟</text>
         </view>
         <view class="hero-wave"></view>
       </view>
@@ -38,77 +38,77 @@
     <!--			</view>-->
     <!--		</view>-->
     <!-- 钀ラ攢绠$悊妯″潡 -->
-    <view class="common-module marketing-module">
-      <view class="module-header">
-        <view class="module-title-container">
-          <text class="module-title">钀ラ攢绠$悊</text>
-        </view>
-      </view>
-      <view class="module-content">
-        <up-grid :border="false"
-                 col="4">
-          <up-grid-item v-for="(item, index) in marketingItems"
-                        :key="index"
-                        @click="handleCommonItemClick(item)">
-            <view class="icon-container"
-                  :style="{ background: item.bgColor }">
-              <up-icon :name="item.icon"
-                       :size="58"
-                       color="#ffffff"></up-icon>
-            </view>
-            <text class="item-label">{{item.label}}</text>
-          </up-grid-item>
-        </up-grid>
-      </view>
-    </view>
-    <!-- 閲囪喘绠$悊妯″潡 -->
-    <view class="common-module purchase-module">
-      <view class="module-header">
-        <view class="module-title-container">
-          <text class="module-title">閲囪喘绠$悊</text>
-        </view>
-      </view>
-      <view class="module-content">
-        <up-grid :border="false"
-                 col="4">
-          <up-grid-item v-for="(item, index) in purchaseItems"
-                        :key="index"
-                        @click="handleCommonItemClick(item)">
-            <view class="icon-container"
-                  :style="{ background: item.bgColor }">
-              <up-icon :name="item.icon"
-                       :size="58"
-                       color="#ffffff"></up-icon>
-            </view>
-            <text class="item-label">{{item.label}}</text>
-          </up-grid-item>
-        </up-grid>
-      </view>
-    </view>
-    <!-- 鍗忓悓鍔炲叕妯″潡 -->
-    <view class="common-module collaboration-module">
-      <view class="module-header">
-        <view class="module-title-container">
-          <text class="module-title">鍗忓悓鍔炲叕</text>
-        </view>
-      </view>
-      <view class="module-content">
-        <up-grid :border="false"
-                 col="4">
-          <up-grid-item v-for="(item, index) in collaborationItems"
-                        :key="index"
-                        @click="handleCommonItemClick(item)">
-            <view class="icon-container"
-                  :style="{ background: item.bgColor }">
-              <up-icon :name="item.icon"
-                       :size="58"
-                       color="#ffffff"></up-icon>
-            </view>
-            <text class="item-label">{{item.label}}</text>
-          </up-grid-item>
-        </up-grid>
-      </view>
-    </view>
+<!--    <view class="common-module marketing-module">-->
+<!--      <view class="module-header">-->
+<!--        <view class="module-title-container">-->
+<!--          <text class="module-title">钀ラ攢绠$悊</text>-->
+<!--        </view>-->
+<!--      </view>-->
+<!--      <view class="module-content">-->
+<!--        <up-grid :border="false"-->
+<!--                 col="4">-->
+<!--          <up-grid-item v-for="(item, index) in marketingItems"-->
+<!--                        :key="index"-->
+<!--                        @click="handleCommonItemClick(item)">-->
+<!--            <view class="icon-container"-->
+<!--                  :style="{ background: item.bgColor }">-->
+<!--              <up-icon :name="item.icon"-->
+<!--                       :size="58"-->
+<!--                       color="#ffffff"></up-icon>-->
+<!--            </view>-->
+<!--            <text class="item-label">{{item.label}}</text>-->
+<!--          </up-grid-item>-->
+<!--        </up-grid>-->
+<!--      </view>-->
+<!--    </view>-->
+<!--    &lt;!&ndash; 閲囪喘绠$悊妯″潡 &ndash;&gt;-->
+<!--    <view class="common-module purchase-module">-->
+<!--      <view class="module-header">-->
+<!--        <view class="module-title-container">-->
+<!--          <text class="module-title">閲囪喘绠$悊</text>-->
+<!--        </view>-->
+<!--      </view>-->
+<!--      <view class="module-content">-->
+<!--        <up-grid :border="false"-->
+<!--                 col="4">-->
+<!--          <up-grid-item v-for="(item, index) in purchaseItems"-->
+<!--                        :key="index"-->
+<!--                        @click="handleCommonItemClick(item)">-->
+<!--            <view class="icon-container"-->
+<!--                  :style="{ background: item.bgColor }">-->
+<!--              <up-icon :name="item.icon"-->
+<!--                       :size="58"-->
+<!--                       color="#ffffff"></up-icon>-->
+<!--            </view>-->
+<!--            <text class="item-label">{{item.label}}</text>-->
+<!--          </up-grid-item>-->
+<!--        </up-grid>-->
+<!--      </view>-->
+<!--    </view>-->
+<!--    &lt;!&ndash; 鍗忓悓鍔炲叕妯″潡 &ndash;&gt;-->
+<!--    <view class="common-module collaboration-module">-->
+<!--      <view class="module-header">-->
+<!--        <view class="module-title-container">-->
+<!--          <text class="module-title">鍗忓悓鍔炲叕</text>-->
+<!--        </view>-->
+<!--      </view>-->
+<!--      <view class="module-content">-->
+<!--        <up-grid :border="false"-->
+<!--                 col="4">-->
+<!--          <up-grid-item v-for="(item, index) in collaborationItems"-->
+<!--                        :key="index"-->
+<!--                        @click="handleCommonItemClick(item)">-->
+<!--            <view class="icon-container"-->
+<!--                  :style="{ background: item.bgColor }">-->
+<!--              <up-icon :name="item.icon"-->
+<!--                       :size="58"-->
+<!--                       color="#ffffff"></up-icon>-->
+<!--            </view>-->
+<!--            <text class="item-label">{{item.label}}</text>-->
+<!--          </up-grid-item>-->
+<!--        </up-grid>-->
+<!--      </view>-->
+<!--    </view>-->
     <!-- 鐢熶骇绠℃帶妯″潡 -->
     <!--		<view class="common-module production-module">-->
     <!--			<view class="module-header">-->
@@ -163,29 +163,29 @@
       </view>
     </view>
     <!-- 璁惧绠$悊妯″潡 -->
-    <view class="common-module equipment-module">
-      <view class="module-header">
-        <view class="module-title-container">
-          <text class="module-title">璁惧绠$悊</text>
-        </view>
-      </view>
-      <view class="module-content">
-        <up-grid :border="false"
-                 col="4">
-          <up-grid-item v-for="(item, index) in equipmentItems"
-                        :key="index"
-                        @click="handleCommonItemClick(item)">
-            <view class="icon-container"
-                  :style="{ background: item.bgColor }">
-              <up-icon :name="item.icon"
-                       :size="58"
-                       color="#ffffff"></up-icon>
-            </view>
-            <text class="item-label">{{item.label}}</text>
-          </up-grid-item>
-        </up-grid>
-      </view>
-    </view>
+<!--    <view class="common-module equipment-module">-->
+<!--      <view class="module-header">-->
+<!--        <view class="module-title-container">-->
+<!--          <text class="module-title">璁惧绠$悊</text>-->
+<!--        </view>-->
+<!--      </view>-->
+<!--      <view class="module-content">-->
+<!--        <up-grid :border="false"-->
+<!--                 col="4">-->
+<!--          <up-grid-item v-for="(item, index) in equipmentItems"-->
+<!--                        :key="index"-->
+<!--                        @click="handleCommonItemClick(item)">-->
+<!--            <view class="icon-container"-->
+<!--                  :style="{ background: item.bgColor }">-->
+<!--              <up-icon :name="item.icon"-->
+<!--                       :size="58"-->
+<!--                       color="#ffffff"></up-icon>-->
+<!--            </view>-->
+<!--            <text class="item-label">{{item.label}}</text>-->
+<!--          </up-grid-item>-->
+<!--        </up-grid>-->
+<!--      </view>-->
+<!--    </view>-->
   </view>
 </template>
 
@@ -533,19 +533,18 @@
         let orderRow = "";
 
         // 灏濊瘯浠庢壂鐮佺粨鏋滀腑鎻愬彇orderRow鍙傛暟
-        // 鍋囪浜岀淮鐮佸唴瀹规槸JSON鏍煎紡鎴朥RL鍙傛暟鏍煎紡
         try {
-          // 妫�鏌ユ槸鍚︽槸JSON鏍煎紡
-          const parsedData = JSON.parse(scanResult);
-          if (parsedData.orderRow) {
-            orderRow = parsedData.orderRow;
-          }
+          // 澶勭悊娣峰悎鏍煎紡: http://...?orderRow={...}
+          const orderRowStart = scanResult.indexOf("orderRow={");
+          // 鎻愬彇浠巓rderRow={寮�濮嬬殑JSON鍐呭
+          const jsonPart = scanResult.substring(orderRowStart + 9); // 9鏄�"orderRow=".length
+          // 灏濊瘯鐩存帴浣跨敤杩欎釜JSON閮ㄥ垎
+          orderRow = jsonPart;
         } catch (e) {
-          // 妫�鏌ユ槸鍚︽槸URL鍙傛暟鏍煎紡锛屽 orderRow=12345
-          const params = new URLSearchParams(scanResult);
-          orderRow = params.get("orderRow") || "";
+          console.error(e, "瑙f瀽澶辫触====????=====");
+          orderRow = "";
         }
-
+        console.log(orderRow, "orderRow======@@@@@@@@");
         // 鎵爜鎴愬姛鍚庤烦杞埌鐢熶骇鎶ュ伐椤甸潰锛屽苟浼犻�抩rderRow鍙傛暟
         uni.navigateTo({
           url: `/pages/productionManagement/productionReport/index?orderRow=${orderRow}`,

--
Gitblit v1.9.3