From 1265d531759b5565e9f641b17045896b52dfdba8 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期四, 03 十二月 2020 18:37:47 +0800
Subject: [PATCH] 2020-12-03 1.主页增加未读消息查询和提示处理。2.房间和场景背景上传和下载和读取方法修改处理。3.头像上传和下载方案修改处理。4.增加子账号头像下载。5.Loading 调用方法修复。6.封装ImageUtlis 图片上传和下载管理工具类 7.读取本地住宅增加判空处理。

---
 HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs |   24 ++++++++++++++++--------
 1 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
index 7bff1ae..2bb3b9b 100644
--- a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
+++ b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
@@ -224,7 +224,7 @@
                 {
                     Gravity = Gravity.CenterHorizontal,
                     Width = Application.GetRealWidth(343),
-                    Height = Application.GetRealHeight(184),
+                    Height = Application.GetRealWidth(192),//2020-12-01 鎴块棿鍥剧墖姣斾緥鏀瑰洖16:9
                     Radius = (uint)Application.GetRealWidth(12),
                     Tag = room.sid,
                 };
@@ -233,11 +233,14 @@
                 var roomViewbg = new ImageView()
                 {
                     Width = Application.GetRealWidth(343),
-                    Height = Application.GetRealHeight(184),
-                    ImagePath = room.backgroundImage,
+                    Height = Application.GetRealWidth(192),//2020-12-01 鎴块棿鍥剧墖姣斾緥鏀瑰洖16:9
+                    //ImagePath = room.backgroundImage,
                     Radius = (uint)Application.GetRealWidth(12),
                 };
                 roomView.AddChidren(roomViewbg);
+
+                //2020-12-03 淇敼鍥剧墖鍔犺浇鏂规硶
+                ImageUtlis.Current.LoadLocalOrNetworkImages(room.backgroundImage, roomViewbg);
 
                 var roomViewbgColor = new Button()
                 {
@@ -341,7 +344,7 @@
                 var btnAllClose = new Button()
                 {
                     X = Application.GetRealWidth(282),
-                    Y = Application.GetRealHeight(126),
+                    Y = Application.GetRealWidth(126),
                     Width = Application.GetMinRealAverage(58),
                     Height = Application.GetMinRealAverage(58),
                     UnSelectedImagePath = "Classification/Room/AllCloseIcon.png",
@@ -353,17 +356,22 @@
 
                 var btn = new Button()
                 {
-                    Height = Application.GetRealHeight(20),
+                    Height = Application.GetRealWidth(20),
                 };
                 roomListView.AddChidren(btn);
 
                 roomViewbgColor.MouseUpEventHandler += (sender, e) =>
                 {
-                    Action<Room > ReloadRoomName = (obj) => {
-                        btnFloorAndRoomName.Text = obj.floorName + obj.name;
+                    Action ReloadRoomName = () => {
+                        btnFloorAndRoomName.Text = room.floorName + room.name;
                     };
 
-                    var view = new RoomPage(room, ReloadRoomName);
+                    //鎴块棿鍒犻櫎浜嬩欢
+                    Action deleteAction = () => {
+                        roomView.RemoveFromParent();
+                    };
+
+                    var view = new RoomPage(room, ReloadRoomName, deleteAction);
                     MainPage.BasePageView.AddChidren(view);
                     view.LoadPage();
                     MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;

--
Gitblit v1.8.0