From 4cb034bd628af1ec98b35b39cb25a49cd19fe048 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期五, 16 一月 2026 10:44:32 +0800
Subject: [PATCH] url

---
 utils/config.js                      |    4 +++-
 pages/index/index.vue                |    2 +-
 subpackage/flowable/task-process.vue |   29 +++++++++++++++--------------
 3 files changed, 19 insertions(+), 16 deletions(-)

diff --git a/pages/index/index.vue b/pages/index/index.vue
index a178814..87e9d47 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -35,7 +35,7 @@
       </view>
       <view class="stats-item">
         <text class="stats-num text-orange">{{ count.red }}</text>
-        <text class="stats-label">宸茶繃鏈�</text>
+        <text class="stats-label">宸查�炬湡</text>
       </view>
     </view>
     <!-- 椤圭洰杩涘害鏌辩姸鍥� -->
diff --git a/subpackage/flowable/task-process.vue b/subpackage/flowable/task-process.vue
index 8c585cc..d91d7d3 100644
--- a/subpackage/flowable/task-process.vue
+++ b/subpackage/flowable/task-process.vue
@@ -2,14 +2,14 @@
   <view class="content"> 
 
     <BottomTabBar active="progress" />
-     <web-view :src="url"></web-view>
+    <web-view v-if="url" :src="url"></web-view>
   </view>
 </template>
 
 <script>
 import BottomTabBar from '@/components/BottomTabBar.vue'
 import LogTimeLine from '@/components/log-time-line.vue'
-
+import config from '@/utils/config.js'
 export default {
   name: 'TaskProcess',
   components: { BottomTabBar, LogTimeLine },
@@ -33,24 +33,25 @@
     let token = uni.getStorageSync('token') || '';
     const isView = query.isView === 'true' || query.isView === true;
     const pageName = isView ? 'web-view-entry' : 'web-view-send';
-    this.url = `http://192.168.0.2/${pageName}?token=${token}`;
-
-
-    let deployId = 'deployId=' + decodeValue(query.deployId)
-
-    let taskId = 'taskId=' + decodeValue(query.taskId)
-
-    let procInsId = 'procInsId=' + decodeValue(query.procInsId)
     
+    let deployId = 'deployId=' + decodeValue(query.deployId)
+    let taskId = 'taskId=' + decodeValue(query.taskId)
+    let procInsId = 'procInsId=' + decodeValue(query.procInsId)
     let projectName = 'projectName=' + decodeValue(query.projectName)
-
     let flowName = 'flowName=' + decodeValue(query.flowName)
-   
     let processName = 'processName=' + decodeValue(query.processName)
 
     console.log(deployId, taskId, procInsId, projectName, flowName, processName)
-    this.url += '&'+ deployId + '&' + taskId + '&' + procInsId + '&' + projectName + '&' + flowName + '&' + processName;
-    console.log(this.url)
+    
+    // 涓�娆℃�ф瀯寤哄畬鏁寸殑 URL锛岄伩鍏嶅娆¤Е鍙� web-view 鍔犺浇
+    const fullUrl = `${config.webViewUrl}${pageName}?token=${token}&${deployId}&${taskId}&${procInsId}&${projectName}&${flowName}&${processName}`;
+    
+    console.log('Final WebView URL:', fullUrl)
+    
+    // 寤惰繜涓�灏忔鏃堕棿璧嬪�硷紝纭繚椤甸潰娓叉煋瀹屾垚鍚庡啀鍔犺浇 web-view锛岃В鍐崇涓�娆″姞杞戒笉鍑烘潵鐨勯棶棰�
+    setTimeout(() => {
+      this.url = fullUrl;
+    }, 100);
   },
   methods: {
 
diff --git a/utils/config.js b/utils/config.js
index 8131770..611793f 100644
--- a/utils/config.js
+++ b/utils/config.js
@@ -1,5 +1,7 @@
 export default{
 	env:'dev',
 	appName: 'nongtou-uni',
-	apiBaseUrl: 'http://127.0.0.1:10076'
+	apiBaseUrl: 'http://127.0.0.1:10076',
+	webViewUrl: 'http://192.168.0.2/',
+
 }
\ No newline at end of file

--
Gitblit v1.8.0