From 08fcc710d0a2acb185b3477d72fe32aff6f2e29a Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Mon, 01 Dec 2025 16:23:03 +0800
Subject: [PATCH] feat:增加ws连接状态
---
src/pages.json | 221 ++++++++++++++++++++++++++++++++++++++----------------
1 files changed, 155 insertions(+), 66 deletions(-)
diff --git a/src/pages.json b/src/pages.json
index d251f2d..49e545b 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -9,48 +9,45 @@
},
"pages": [
{
- "path": "pages/tab/home/index",
+ "path": "pages/map/index",
"style": {
- "navigationBarTitleText": "首页"
- }
- },
- {
- "path": "pages/tab/map/index",
- "style": {
- "navigationBarTitleText": "地图"
- }
- },
- {
- "path": "pages/tab/list/index",
- "style": {
- "navigationBarTitleText": "列表"
- }
- },
- {
- "path": "pages/tab/user/index",
- "style": {
+ "navigationBarTitleText": "地图",
"navigationStyle": "custom"
- },
- "needLogin": true
+ }
+ },
+ {
+ "path": "pages/inspectionTask/index",
+ "style": {
+ "navigationBarTitleText": "巡检任务",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/work/index",
+ "style": {
+ "navigationBarTitleText": "事件工单",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/user/index",
+ "style": {
+ "navigationBarTitleText": "我的",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/login/index",
+ "style": {
+ "navigationBarTitleText": "登录页",
+ "navigationStyle": "custom"
+ }
}
],
"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 +60,136 @@
"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/add.png",
+ "pagePath": "subPackages/taskDetail/addTask/index"
+ },
+ {
+ "iconPath": "static/images/tabbar/drone.png",
+ "visible": "true"
+ },
+ {
+ "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",
--
Gitblit v1.9.3