From 452e8cef1c740d18ee398be6971d9952e41dbd4a Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 12 四月 2023 16:11:50 +0800
Subject: [PATCH] 1
---
HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_AuthorizedPage.cs | 110 +++++++++++++++++++++++++++++++++++++++++++++++++------
1 files changed, 98 insertions(+), 12 deletions(-)
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_AuthorizedPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_AuthorizedPage.cs
index e3c0244..b736d08 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_AuthorizedPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_AuthorizedPage.cs
@@ -2,6 +2,7 @@
using Shared;
using HDL_ON.Entity;
using HDL_ON.DAL.Server;
+using HDL_ON.UI.CSS;
namespace HDL_ON.UI
{
@@ -32,9 +33,95 @@
UnsubscribeAsync3tyIotbind();
Application.RunOnMainThread(() =>
{
- http.Search3tyIotDevice(brand_Iot.companyId);
+ //http.Search3tyIotDevice(brand_Iot.companyId);
boudedAction?.Invoke();
dd.Close();
+
+
+
+ {
+ Dialog dialog = new Dialog()
+ {
+ BackgroundColor = CSS_Color.DialogTransparentColor1,
+ };
+
+ FrameLayout contentView = new FrameLayout()
+ {
+ Gravity = Gravity.Center,
+ Width = Application.GetRealWidth(305),
+ Height = Application.GetRealHeight(180),
+ BackgroundColor = CSS.CSS_Color.MainBackgroundColor,
+ BorderColor = 0x00000000,
+ BorderWidth = 0,
+ Radius = (uint)Application.GetMinRealAverage(10),
+ };
+ dialog.AddChidren(contentView);
+
+ Button btnTitle = new Button()
+ {
+ Gravity = Gravity.CenterHorizontal,
+ Y = Application.GetRealHeight(10),
+ Height = Application.GetRealHeight(38),
+ TextAlignment = TextAlignment.Center,
+ IsBold = true,
+ TextColor = 0xFF222222,
+ TextSize = CSS_FontSize.SubheadingFontSize,
+ TextID = StringId.Tip
+ };
+ contentView.AddChidren(btnTitle);
+
+ Button btnMsg = new Button()
+ {
+ Gravity = Gravity.CenterHorizontal,
+ Height = Application.GetRealHeight(70),
+ Y = Application.GetRealHeight(55),
+ TextAlignment = TextAlignment.TopCenter,
+ TextColor = CSS_Color.FirstLevelTitleColor,
+ TextSize = CSS_FontSize.SubheadingFontSize,
+ Padding = new Padding(0, Application.GetRealWidth(16), 0, Application.GetRealWidth(16)),
+ TextID = StringId.BindIotAccountTip,
+ IsMoreLines = true,
+ };
+ contentView.AddChidren(btnMsg);
+
+ Button btnLine = new Button()
+ {
+ Y = Application.GetRealHeight(125),
+ Height = Application.GetRealHeight(1),
+ BackgroundColor = CSS.CSS_Color.DividingLineColor,
+ };
+ contentView.AddChidren(btnLine);
+
+ Button btnConfirm = new Button()
+ {
+ Y = btnLine.Bottom,
+ Height = Application.GetRealHeight(55),
+ TextAlignment = TextAlignment.Center,
+ TextColor = CSS_Color.MainColor,
+ TextSize = CSS_FontSize.SubheadingFontSize,
+ SelectedTextColor = CSS_Color.MainBackgroundColor,
+ SelectedBackgroundColor = CSS_Color.MainColor,
+ TextID = StringId.Confirm,
+ };
+ btnConfirm.SetCornerWithSameRadius(Application.GetMinRealAverage(10), HDLUtils.RectCornerBottomLeft);
+ btnConfirm.SetCornerWithSameRadius(Application.GetMinRealAverage(10), HDLUtils.RectCornerBottomRight);
+ contentView.AddChidren(btnConfirm);
+
+ dialog.Show();
+
+ btnConfirm.MouseDownEventHandler += (sender, e) =>
+ {
+ btnConfirm.IsSelected = true;
+ };
+ btnConfirm.MouseUpEventHandler += (sender, e) =>
+ {
+ dialog.Close();
+ };
+
+ }
+
+
+
});
};
SubscribeAsync3tyIotbind();
@@ -79,17 +166,16 @@
})
{ IsBackground = true }.Start();
}
- /// <summary>
- /// 鎼滅储绗笁鏂硅澶�
- /// </summary>
- private void SearchDevice()
- {
- var pack = http.Search3tyIotDevice(brand_Iot.companyId);
- if(pack!= null)
- {
-
- }
- }
+ ///// <summary>
+ ///// 鎼滅储绗笁鏂硅澶�
+ ///// </summary>
+ //private void SearchDevice()
+ //{
+ // var pack = http.Search3tyIotDevice(brand_Iot.companyId);
+ // if(pack!= null)
+ // {
+ // }
+ //}
/// <summary>
/// 鑾峰彇绗笁鏂瑰姛鑳藉垪琛�
--
Gitblit v1.8.0