From 489d3bd60ad7dc2fecb398b09cf4c52df16f0fc2 Mon Sep 17 00:00:00 2001
From: Davin <591807572@qq.com>
Date: 星期三, 26 七月 2023 15:55:30 +0800
Subject: [PATCH] Merge branch 'Dev-Branch' of http://59.41.255.150:6688/r/~wxr/OnPro into Dev-Branch
---
HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/UnlockSettingPage.cs | 146 +++++++++++++++++++++++++++---------------------
1 files changed, 81 insertions(+), 65 deletions(-)
diff --git a/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/UnlockSettingPage.cs b/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/UnlockSettingPage.cs
index ce0d355..0e082c7 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/UnlockSettingPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/UnlockSettingPage.cs
@@ -92,7 +92,7 @@
faceUnlockSettingView.AddChidren(btnFaceText);
btnFaceText.MouseUpEventHandler = (sender, e) => {
- var page = new UnlockSettingFacePage();
+ var page = new UnlockSettingFacePage(device);
MainPage.BasePageView.AddChidren(page);
page.LoadPage();
MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
@@ -336,15 +336,17 @@
//澶辫触鎻愮ず
Application.RunOnMainThread(() =>
{
- //澶辫触鎻愮ず
- var tip = new Tip()
+ if (!string.IsNullOrEmpty(pack.message))
{
- MaxWidth = Application.GetRealWidth(300),
- Text = pack.message,
- CloseTime = 3,
- Direction = AMPopTipDirection.None
- };
- tip.Show(MainPage.BaseView);
+ var tip = new Tip()
+ {
+ MaxWidth = Application.GetRealWidth(300),
+ Text = $"{pack.message}({pack.Code})",
+ CloseTime = 3,
+ Direction = AMPopTipDirection.None
+ };
+ tip.Show(MainPage.BaseView);
+ }
});
}
@@ -364,15 +366,17 @@
//澶辫触鎻愮ず
Application.RunOnMainThread(() =>
{
- //澶辫触鎻愮ず
- var tip = new Tip()
+ if (!string.IsNullOrEmpty(pack.message))
{
- MaxWidth = Application.GetRealWidth(300),
- Text = pack.message,
- CloseTime = 3,
- Direction = AMPopTipDirection.None
- };
- tip.Show(MainPage.BaseView);
+ var tip = new Tip()
+ {
+ MaxWidth = Application.GetRealWidth(300),
+ Text = $"{pack.message}({pack.Code})",
+ CloseTime = 3,
+ Direction = AMPopTipDirection.None
+ };
+ tip.Show(MainPage.BaseView);
+ }
});
}
#endregion
@@ -399,15 +403,17 @@
//澶辫触鎻愮ず
Application.RunOnMainThread(() =>
{
- //澶辫触鎻愮ず
- var tip = new Tip()
+ if (!string.IsNullOrEmpty(pack.message))
{
- MaxWidth = Application.GetRealWidth(300),
- Text = pack.message,
- CloseTime = 3,
- Direction = AMPopTipDirection.None
- };
- tip.Show(MainPage.BaseView);
+ var tip = new Tip()
+ {
+ MaxWidth = Application.GetRealWidth(300),
+ Text = $"{pack.message}({pack.Code})",
+ CloseTime = 3,
+ Direction = AMPopTipDirection.None
+ };
+ tip.Show(MainPage.BaseView);
+ }
});
}
#endregion
@@ -430,15 +436,17 @@
//澶辫触鎻愮ず
Application.RunOnMainThread(() =>
{
- //澶辫触鎻愮ず
- var tip = new Tip()
+ if (!string.IsNullOrEmpty(pack.message))
{
- MaxWidth = Application.GetRealWidth(300),
- Text = pack.message,
- CloseTime = 3,
- Direction = AMPopTipDirection.None
- };
- tip.Show(MainPage.BaseView);
+ var tip = new Tip()
+ {
+ MaxWidth = Application.GetRealWidth(300),
+ Text = $"{pack.message}({pack.Code})",
+ CloseTime = 3,
+ Direction = AMPopTipDirection.None
+ };
+ tip.Show(MainPage.BaseView);
+ }
});
}
#endregion
@@ -485,15 +493,17 @@
//澶辫触鎻愮ず
Application.RunOnMainThread(() =>
{
- //澶辫触鎻愮ず
- var tip = new Tip()
+ if (!string.IsNullOrEmpty(pack.message))
{
- MaxWidth = Application.GetRealWidth(300),
- Text = pack.message,
- CloseTime = 3,
- Direction = AMPopTipDirection.None
- };
- tip.Show(MainPage.BaseView);
+ var tip = new Tip()
+ {
+ MaxWidth = Application.GetRealWidth(300),
+ Text = $"{pack.message}({pack.Code})",
+ CloseTime = 3,
+ Direction = AMPopTipDirection.None
+ };
+ tip.Show(MainPage.BaseView);
+ }
});
}
}
@@ -535,15 +545,17 @@
//澶辫触鎻愮ず
Application.RunOnMainThread(() =>
{
- //澶辫触鎻愮ず
- var tip = new Tip()
+ if (!string.IsNullOrEmpty(pack.message))
{
- MaxWidth = Application.GetRealWidth(300),
- Text = pack.message,
- CloseTime = 3,
- Direction = AMPopTipDirection.None
- };
- tip.Show(MainPage.BaseView);
+ var tip = new Tip()
+ {
+ MaxWidth = Application.GetRealWidth(300),
+ Text = $"{pack.message}({pack.Code})",
+ CloseTime = 3,
+ Direction = AMPopTipDirection.None
+ };
+ tip.Show(MainPage.BaseView);
+ }
});
}
}
@@ -587,15 +599,17 @@
//澶辫触鎻愮ず
Application.RunOnMainThread(() =>
{
- //澶辫触鎻愮ず
- var tip = new Tip()
+ if (!string.IsNullOrEmpty(pack.message))
{
- MaxWidth = Application.GetRealWidth(300),
- Text = pack.message,
- CloseTime = 3,
- Direction = AMPopTipDirection.None
- };
- tip.Show(MainPage.BaseView);
+ var tip = new Tip()
+ {
+ MaxWidth = Application.GetRealWidth(300),
+ Text = $"{pack.message}({pack.Code})",
+ CloseTime = 3,
+ Direction = AMPopTipDirection.None
+ };
+ tip.Show(MainPage.BaseView);
+ }
});
}
}
@@ -638,15 +652,17 @@
//澶辫触鎻愮ず
Application.RunOnMainThread(() =>
{
- //澶辫触鎻愮ず
- var tip = new Tip()
+ if (!string.IsNullOrEmpty(pack.message))
{
- MaxWidth = Application.GetRealWidth(300),
- Text = pack.message,
- CloseTime = 3,
- Direction = AMPopTipDirection.None
- };
- tip.Show(MainPage.BaseView);
+ var tip = new Tip()
+ {
+ MaxWidth = Application.GetRealWidth(300),
+ Text = $"{pack.message}({pack.Code})",
+ CloseTime = 3,
+ Direction = AMPopTipDirection.None
+ };
+ tip.Show(MainPage.BaseView);
+ }
});
}
}
--
Gitblit v1.8.0