From 32febb140d320b35d580c8d4e78a80ef846e75fc Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 19 Dec 2025 15:59:34 +0800
Subject: [PATCH] feat:webview通信处理

---
 src/pages.json |  209 ++++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 154 insertions(+), 55 deletions(-)

diff --git a/src/pages.json b/src/pages.json
index d251f2d..96aae35 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -9,48 +9,57 @@
   },
   "pages": [
     {
-      "path": "pages/tab/home/index",
+      "path": "pages/map/index",
       "style": {
-        "navigationBarTitleText": "首页"
+        "navigationBarTitleText": "地图",
+        "navigationStyle": "custom"
       }
     },
     {
-      "path": "pages/tab/map/index",
+      "path": "pages/inspectionTask/index",
       "style": {
-        "navigationBarTitleText": "地图"
+        "navigationBarTitleText": "巡检任务",
+        "navigationStyle": "custom"
       }
     },
     {
-      "path": "pages/tab/list/index",
+      "path": "pages/work/index",
       "style": {
-        "navigationBarTitleText": "列表"
+        "navigationBarTitleText": "事件工单",
+        "navigationStyle": "custom"
       }
     },
     {
-      "path": "pages/tab/user/index",
+      "path": "pages/user/index",
+      "style": {
+        "navigationBarTitleText": "我的",
+        "navigationStyle": "custom"
+      }
+    },
+    {
+      "path": "pages/login/index",
+      "style": {
+        "navigationBarTitleText": "登录页",
+        "navigationStyle": "custom"
+      }
+    },
+    {
+      "path": "pages/placeholder/placeholder",
+      "style": {
+        "navigationBarTitleText": "占位页面"
+      }
+    },
+    {
+      "path": "pages/dispatcher/index",
       "style": {
         "navigationStyle": "custom"
-      },
-      "needLogin": true
+      }
     }
   ],
   "subPackages": [
     {
-      "root": "pages/common",
+      "root": "subPackages",
       "pages": [
-        {
-          "path": "login/index",
-          "style": {
-            "navigationBarTitleText": "登录",
-            "navigationStyle": "custom"
-          }
-        },
-        {
-          "path": "webview/index",
-          "style": {
-            "navigationBarTitleText": "网页"
-          }
-        },
         {
           "path": "404/index",
           "style": {
@@ -63,44 +72,134 @@
           "style": {
             "navigationBarTitleText": "主题设置"
           }
+        },
+        {
+          "path": "taskDetail/index",
+          "style": {
+            "navigationBarTitleText": "任务详情"
+          }
+        },
+        {
+          "path": "inProgress/index",
+          "style": {
+            "navigationBarTitleText": "任务详情"
+          }
+        },
+        {
+          "path": "droneConsole/index",
+          "style": {
+            "navigationBarTitleText": "直播监控",
+            "navigationStyle": "custom"
+          }
+        },
+        {
+          "path": "taskDetail/addTask/index",
+          "style": {
+            "navigationBarTitleText": "新建任务"
+          }
+        },
+        {
+          "path": "taskDetail/execution/index",
+          "style": {
+            "navigationBarTitleText": "任务详情"
+          }
+        },
+        {
+          "path": "taskDetail/inExecution/index",
+          "style": {
+            "navigationBarTitleText": "执行中"
+          }
+        },
+        {
+          "path": "workDetail/index",
+          "style": {
+            "navigationBarTitleText": "工单详情"
+          }
+        },
+        {
+          "path": "workDetail/addWork/index",
+          "style": {
+            "navigationBarTitleText": "新建工单"
+          }
+        },
+        {
+          "path": "workDetail/mapWork/index",
+          "style": {
+            "navigationBarTitleText": "地图展示",
+            "navigationStyle": "custom"
+          }
+        },
+        {
+          "path": "workDetail/photoMagnify/index",
+          "style": {
+            "navigationBarTitleText": "照片放大"
+          }
+        },
+        {
+          "path": "userDetail/infos/index",
+          "style": {
+            "navigationBarTitleText": "个人资料"
+          }
+        },
+        {
+          "path": "userDetail/password/index",
+          "style": {
+            "navigationBarTitleText": "修改密码"
+          }
+        },
+        {
+          "path": "browser/index",
+          "style": {
+            "navigationBarTitleText": "地图"
+          }
+        },
+        {
+          "path": "qrCode/index",
+          "style": {
+            "navigationBarTitleText": "扫码",
+            "navigationBarTextStyle": "black"
+          }
         }
       ]
     }
   ],
-  "preloadRule": {
-    "pages/tab/home/index": {
-      "network": "all",
-      "packages": ["pages/common"]
-    }
-  },
   "tabBar": {
-    "color": "#1b233b",
-    "selectedColor": "#21d59d",
+    "color": "#8c8c8c",
+    "selectedColor": "#1D6FE9",
     "borderStyle": "black",
     "backgroundColor": "#ffffff",
-    "list": [{
-      "iconPath": "static/images/tabbar/icon_home.png",
-      "selectedIconPath": "static/images/tabbar/icon_home_selected.png",
-      "pagePath": "pages/tab/home/index",
-      "text": "首页"
-    },
-    {
-      "iconPath": "static/images/tabbar/icon_home.png",
-      "selectedIconPath": "static/images/tabbar/icon_home_selected.png",
-      "pagePath": "pages/tab/map/index",
-      "text": "地图"
-    },
-    {
-      "iconPath": "static/images/tabbar/icon_list.png",
-      "selectedIconPath": "static/images/tabbar/icon_list_selected.png",
-      "pagePath": "pages/tab/list/index",
-      "text": "列表"
-    }, {
-      "iconPath": "static/images/tabbar/icon_me.png",
-      "selectedIconPath": "static/images/tabbar/icon_me_selected.png",
-      "pagePath": "pages/tab/user/index",
-      "text": "我的"
-    }]
+    "list": [
+      {
+        "iconPath": "static/images/tabbar/icon_home1.png",
+        "selectedIconPath": "static/images/tabbar/icon_home_selected.png",
+        "pagePath": "pages/map/index",
+        "text": "地图"
+      },
+      {
+        "iconPath": "static/images/tabbar/icon_list.png",
+        "selectedIconPath": "static/images/tabbar/icon_list_selected.png",
+        "pagePath": "pages/inspectionTask/index",
+        "text": "任务"
+      },
+      {
+        "iconPath": "static/images/tabbar/drone.png",
+        "selectedIconPath": "static/images/tabbar/drone.png",
+        "pagePath": "pages/dispatcher/index",
+        "text": ""
+      },
+      {
+        "iconPath": "static/images/tabbar/icon_order.png",
+        "selectedIconPath": "static/images/tabbar/icon_order_selected.png",
+        "pagePath": "pages/work/index",
+        "text": "工单"
+      },
+      {
+        "iconPath": "static/images/tabbar/icon_me.png",
+        "selectedIconPath": "static/images/tabbar/icon_me_selected.png",
+        "pagePath": "pages/user/index",
+        "text": "我的"
+      }
+    ]
   },
   "globalStyle": {
     "navigationBarTextStyle": "black",
@@ -108,4 +207,4 @@
     "navigationBarBackgroundColor": "#F8F8F8",
     "backgroundColor": "#F8F8F8"
   }
-}
+}
\ No newline at end of file

--
Gitblit v1.9.3