From a3de9f93a189d831ad389a507ae3dee6d6d35be9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9C=E8=99=9E=E6=B8=A0=E6=88=90=E2=80=9D?= <“yuqucheng2006@qq.com”> Date: Mon, 31 Aug 2026 13:07:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(homepage):=20=E4=BF=AE=E5=A4=8D=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2UI=E5=B8=83=E5=B1=80=E4=B8=8E=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 修复无设备时loading不消失的问题 2. 修复首页部分UI显示不全的问题 --- Assets/Res/ui/homepage/homePage.prefab | 44 +++++++++---------- .../Scripts/UI/Pages/HomePage/HomePageCtrl.cs | 1 + 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/Assets/Res/ui/homepage/homePage.prefab b/Assets/Res/ui/homepage/homePage.prefab index c848902..2441ee1 100644 --- a/Assets/Res/ui/homepage/homePage.prefab +++ b/Assets/Res/ui/homepage/homePage.prefab @@ -9526,8 +9526,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 0} - m_AnchoredPosition: {x: -15, y: 10} - m_SizeDelta: {x: -70, y: 55} + m_AnchoredPosition: {x: -9, y: 10} + m_SizeDelta: {x: -58, y: 55} m_Pivot: {x: 0.5, y: 0} --- !u!222 &7123903637595035126 CanvasRenderer: @@ -9561,9 +9561,9 @@ MonoBehaviour: m_Font: {fileID: 12800000, guid: f4c31d68e7cd3454685bb4c132a52f58, type: 3} m_FontSize: 30 m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 3 - m_MaxSize: 40 + m_BestFit: 1 + m_MinSize: 20 + m_MaxSize: 30 m_Alignment: 6 m_AlignByGeometry: 0 m_RichText: 1 @@ -10503,8 +10503,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 0} - m_AnchoredPosition: {x: -15, y: 10} - m_SizeDelta: {x: -70, y: 55} + m_AnchoredPosition: {x: -9.000008, y: 10} + m_SizeDelta: {x: -57.999985, y: 55} m_Pivot: {x: 0.5, y: 0} --- !u!222 &1124205440138334032 CanvasRenderer: @@ -10538,16 +10538,16 @@ MonoBehaviour: m_Font: {fileID: 12800000, guid: f4c31d68e7cd3454685bb4c132a52f58, type: 3} m_FontSize: 30 m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 3 - m_MaxSize: 40 + m_BestFit: 1 + m_MinSize: 20 + m_MaxSize: 30 m_Alignment: 6 m_AlignByGeometry: 0 m_RichText: 1 - m_HorizontalOverflow: 0 + m_HorizontalOverflow: 1 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: Safe + m_Text: Safety --- !u!114 &1703986708597108745 MonoBehaviour: m_ObjectHideFlags: 0 @@ -15688,8 +15688,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 0} - m_AnchoredPosition: {x: -15, y: 10} - m_SizeDelta: {x: -70, y: 55} + m_AnchoredPosition: {x: -9, y: 10} + m_SizeDelta: {x: -58, y: 55} m_Pivot: {x: 0.5, y: 0} --- !u!222 &8669842775260531347 CanvasRenderer: @@ -15723,9 +15723,9 @@ MonoBehaviour: m_Font: {fileID: 12800000, guid: f4c31d68e7cd3454685bb4c132a52f58, type: 3} m_FontSize: 30 m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 3 - m_MaxSize: 40 + m_BestFit: 1 + m_MinSize: 20 + m_MaxSize: 30 m_Alignment: 6 m_AlignByGeometry: 0 m_RichText: 1 @@ -15843,8 +15843,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 0} - m_AnchoredPosition: {x: -15, y: 10} - m_SizeDelta: {x: -70, y: 55} + m_AnchoredPosition: {x: -9.000002, y: 10} + m_SizeDelta: {x: -57.999992, y: 55} m_Pivot: {x: 0.5, y: 0} --- !u!222 &3186938245855593830 CanvasRenderer: @@ -15878,9 +15878,9 @@ MonoBehaviour: m_Font: {fileID: 12800000, guid: f4c31d68e7cd3454685bb4c132a52f58, type: 3} m_FontSize: 30 m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 3 - m_MaxSize: 40 + m_BestFit: 1 + m_MinSize: 20 + m_MaxSize: 30 m_Alignment: 6 m_AlignByGeometry: 0 m_RichText: 1 diff --git a/Assets/Scripts/UI/Pages/HomePage/HomePageCtrl.cs b/Assets/Scripts/UI/Pages/HomePage/HomePageCtrl.cs index 8fd566e..dc23d38 100644 --- a/Assets/Scripts/UI/Pages/HomePage/HomePageCtrl.cs +++ b/Assets/Scripts/UI/Pages/HomePage/HomePageCtrl.cs @@ -872,6 +872,7 @@ namespace Kill.UI.Pages DataManager.Instance.OwnedDevices=new List(); DataManager.Instance.SharedDevices=new List(); DataManager.Instance.selectedDevice=null; + LoadingUI.Hide(); return; } else