From 8304eac2a45a32b00563c03a2f3fd303ecd5872a Mon Sep 17 00:00:00 2001
From: zhuguifei <zhuguifei@zhuguifeideiMac.local>
Date: 星期五, 22 八月 2025 13:54:36 +0800
Subject: [PATCH] 1.解决微信小程序真机MQTT无法连接问题

---
 pages.json |  245 +++++++++++++++++++++++++++----------------------
 1 files changed, 135 insertions(+), 110 deletions(-)

diff --git a/pages.json b/pages.json
index 557c06b..d67fbd5 100644
--- a/pages.json
+++ b/pages.json
@@ -2,7 +2,7 @@
 	"easycom": {
 		"^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
 	},
-	"pages": [ //pages鏁扮粍涓涓�椤硅〃绀哄簲鐢ㄥ惎鍔ㄩ〉锛屽弬鑰冿細https://uniapp.dcloud.io/collocation/pages
+	"pages": [ //pages鏁扮粍涓涓�椤硅〃绀哄簲鐢ㄥ惎鍔ㄩ〉锛屽弬鑰冿細https://uniapp.dcloud.io/collocation/pages
 		{
 			"path": "pages/login/login",
 			"style": {
@@ -14,35 +14,61 @@
 				"enablePullDownRefresh": false
 			}
 
+		},
+		{
+			"path": "pages/tabBar/general",
+			"style": {
+				"navigationStyle": "custom"
+			}
+		
+		},
+		{
+			"path": "pages/tabBar/device",
+			"style": {
+				"navigationStyle": "custom",
+				"app-plus": {
+					"titleNView": false
+				}
+			}
+		},
+		{
+			"path": "pages/tabBar/warning",
+			"style": {
+				"navigationStyle": "custom",
+				"app-plus": {
+					"titleNView": false
+				}
+			}
 		},
-		{
-			"path": "pages/index/index",
-			"style": {
-				"navigationBarTitleText": "uni-app"
-			}
-		},
-		{
-			"path": "pages/tabBar/main",
-			"style": {
-				"navigationStyle": "custom",
-				"app-plus": {
-					"titleNView": false
-				}
-
-			}
-		}, {
+		 {
 			"path": "pages/tabBar/formula",
 			"style": {
 				"navigationStyle": "custom"
 			}
 
-		}, {
-			"path": "pages/category/formulaDetail",
-			"style": {
-				"navigationStyle": "custom"
-			}
-
-		}, {
+		},
+		 {
+		 	"path": "pages/tabBar/me",
+		 	"style": {
+		 		"navigationStyle": "custom",
+		 		"app-plus": {
+		 			"titleNView": false
+		 		}
+		 	}
+		 
+		 }
+		 
+		/* {
+		 	"path": "pages/tabBar/main",
+		 	"style": {
+		 		"navigationStyle": "custom",
+		 		"app-plus": {
+		 			"titleNView": false
+		 		}
+		 
+		 	}
+		 },
+		{
 			"path": "pages/tabBar/monitor",
 			"style": {
 				"navigationStyle": "custom",
@@ -51,90 +77,89 @@
 				}
 			}
 
-		}, {
-			"path": "pages/tabBar/me",
-			"style": {
-				"navigationStyle": "custom",
-				"app-plus": {
-					"titleNView": false
-				}
-			}
+		}, */
+		 
 
-		}, {
-			"path": "pages/tabBar/general",
-			"style": {
-				"navigationStyle": "custom"
-			}
-
-		}
-
-		, {
-			"path": "pages/charts/charts",
-			"style": {
-				"navigationBarTitleText": "鍥捐〃",
-				"enablePullDownRefresh": false
-			}
-
-		}, {
-			"path": "pages/tabBar/analy",
-			"style": {
-				"navigationStyle": "custom"
-			}
-
-		}, {
-			"path": "pages/analy/analyList",
-			"style": {
-				"navigationBarTitleText": "鐢熶骇璁板綍鍒嗘瀽",
-				"enablePullDownRefresh": false
-			}
-
-		}, {
-			"path": "pages/tabBar/demo",
-			"style": {
-				"navigationBarTitleText": "娴嬭瘯",
-				"enablePullDownRefresh": false
-			}
-
-		}, {
-			"path": "pages/me/control",
-			"style": {
-				"navigationStyle": "custom",
-				"app-plus": {
-					"titleNView": false
-				}
-			}
-
-		}, {
-			"path": "pages/me/video",
-			"style": {
-				"navigationStyle": "custom",
-				"app-plus": {
-					"titleNView": false
-				}
-			}
-
-		},
+	],
+	"subPackages": [
 		{
-			"path" : "pages/tabBar/device",
-			"style" : 
-			{
-				"navigationStyle": "custom",
-				"app-plus": {
-					"titleNView": false
-				}
-			}
-		},
-		{
-			"path" : "pages/device/control",
-			"style" : 
-			{
-				"navigationStyle": "custom",
-				"app-plus": {
-					"titleNView": false
-				}
-			}
-		}
-	],
+		      "root": "packageA",
+		      "pages": [
+		       {
+		       	"path": "pages/category/formulaDetail",
+		       	"style": {
+		       		"navigationStyle": "custom"
+		       	}
+		       
+		       }, {
+		       	"path": "pages/charts/charts",
+		       	"style": {
+		       		"navigationBarTitleText": "鍥捐〃",
+		       		"enablePullDownRefresh": false
+		       	}
+		       
+		       }, {
+		       	"path": "pages/me/analy",
+		       	"style": {
+		       		"navigationStyle": "custom"
+		       	}
+		       
+		       }, {
+		       	"path": "pages/analy/analyList",
+		       	"style": {
+		       		"navigationBarTitleText": "鐢熶骇璁板綍鍒嗘瀽",
+		       		"enablePullDownRefresh": false
+		       	}
+		       
+		       }, 
+			   {
+		       	"path": "pages/me/control",
+		       	"style": {
+		       		"navigationStyle": "custom",
+		       		"app-plus": {
+		       			"titleNView": false
+		       		}
+		       	}
+		       
+		       },
+		       // {
+		       // 	"path": "pages/me/video",
+		       // 	"style": {
+		       // 		"navigationStyle": "custom",
+		       // 		"app-plus": {
+		       // 			"titleNView": false
+		       // 		}
+		       // 	}
+		       
+		       // },
+		       	
+		       {
+		       	"path": "pages/device/control",
+		       	"style": {
+		       		"navigationStyle": "custom",
+		       		"app-plus": {
+		       			"titleNView": false
+		       		}
+		       	}
+		       },
+		       {
+		       	"path": "pages/login/switchMode",
+		       	"style": {
+		       		"navigationStyle": "custom",
+		       		"app-plus": {
+		       			"titleNView": false
+		       		}
+		       	}
+		       }
+		      ]
+		    }
+	],
+	"preloadRule": {
+	    "packageA/pages/device/control": {
+	      "network": "all",
+	      "packages": ["packageA"]
+	    }
+	},
 	"globalStyle": {
 		"navigationBarTextStyle": "white",
 		"navigationBarTitleText": "鍏板疂鏅鸿兘",
@@ -156,17 +181,17 @@
 			"pagePath": "pages/tabBar/device",
 			"iconPath": "static/tabBar/shop.png",
 			"selectedIconPath": "static/tabBar/shop_cur.png",
-			"text": "鐩戞帶"
+			"text": "鏈哄彴鐩戞帶"
 		}, {
-			"pagePath": "pages/tabBar/analy",
+			"pagePath": "pages/tabBar/warning",
 			"iconPath": "static/tabBar/analy.png",
 			"selectedIconPath": "static/tabBar/analy_cur.png",
-			"text": "鍒嗘瀽"
+			"text": "鎶ヨ缁熻"
 		}, {
 			"pagePath": "pages/tabBar/formula",
 			"iconPath": "static/tabBar/order.png",
 			"selectedIconPath": "static/tabBar/order_cur.png",
-			"text": "閰嶆柟"
+			"text": "骞茬嚗閰嶆柟"
 		}, {
 			"pagePath": "pages/tabBar/me",
 			"iconPath": "static/tabBar/me.png",

--
Gitblit v1.9.3