From 166c81e63cd1d0a1649823e4299daeaaf1ea0987 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期六, 29 七月 2023 11:11:01 +0800 Subject: [PATCH] 2.0bug修复 --- HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/UnlockSettingPage.cs | 72 ++++++++++++++++++++++++----------- 1 files changed, 49 insertions(+), 23 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/UnlockSettingPage.cs b/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/UnlockSettingPage.cs index 0e082c7..b7ef627 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/UnlockSettingPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/UnlockSettingPage.cs @@ -338,6 +338,10 @@ { if (!string.IsNullOrEmpty(pack.message)) { + if (string.IsNullOrEmpty(pack.message)) + { + pack.message = Language.StringByID(StringId.OperationFailed); + } var tip = new Tip() { MaxWidth = Application.GetRealWidth(300), @@ -366,17 +370,18 @@ //澶辫触鎻愮ず Application.RunOnMainThread(() => { - if (!string.IsNullOrEmpty(pack.message)) + if (string.IsNullOrEmpty(pack.message)) { - var tip = new Tip() - { - MaxWidth = Application.GetRealWidth(300), - Text = $"{pack.message}({pack.Code})", - CloseTime = 3, - Direction = AMPopTipDirection.None - }; - tip.Show(MainPage.BaseView); + pack.message = Language.StringByID(StringId.OperationFailed); } + var tip = new Tip() + { + MaxWidth = Application.GetRealWidth(300), + Text = $"{pack.message}({pack.Code})", + CloseTime = 3, + Direction = AMPopTipDirection.None + }; + tip.Show(MainPage.BaseView); }); } #endregion @@ -403,17 +408,18 @@ //澶辫触鎻愮ず Application.RunOnMainThread(() => { - if (!string.IsNullOrEmpty(pack.message)) + if (string.IsNullOrEmpty(pack.message)) { - var tip = new Tip() - { - MaxWidth = Application.GetRealWidth(300), - Text = $"{pack.message}({pack.Code})", - CloseTime = 3, - Direction = AMPopTipDirection.None - }; - tip.Show(MainPage.BaseView); + pack.message = Language.StringByID(StringId.OperationFailed); } + var tip = new Tip() + { + MaxWidth = Application.GetRealWidth(300), + Text = $"{pack.message}({pack.Code})", + CloseTime = 3, + Direction = AMPopTipDirection.None + }; + tip.Show(MainPage.BaseView); }); } #endregion @@ -436,7 +442,11 @@ //澶辫触鎻愮ず Application.RunOnMainThread(() => { - if (!string.IsNullOrEmpty(pack.message)) + + if (string.IsNullOrEmpty(pack.message)) + { + pack.message = Language.StringByID(StringId.OperationFailed); + } { var tip = new Tip() { @@ -493,7 +503,11 @@ //澶辫触鎻愮ず Application.RunOnMainThread(() => { - if (!string.IsNullOrEmpty(pack.message)) + + if (string.IsNullOrEmpty(pack.message)) + { + pack.message = Language.StringByID(StringId.OperationFailed); + } { var tip = new Tip() { @@ -545,7 +559,11 @@ //澶辫触鎻愮ず Application.RunOnMainThread(() => { - if (!string.IsNullOrEmpty(pack.message)) + + if (string.IsNullOrEmpty(pack.message)) + { + pack.message = Language.StringByID(StringId.OperationFailed); + } { var tip = new Tip() { @@ -599,7 +617,11 @@ //澶辫触鎻愮ず Application.RunOnMainThread(() => { - if (!string.IsNullOrEmpty(pack.message)) + + if (string.IsNullOrEmpty(pack.message)) + { + pack.message = Language.StringByID(StringId.OperationFailed); + } { var tip = new Tip() { @@ -652,7 +674,11 @@ //澶辫触鎻愮ず Application.RunOnMainThread(() => { - if (!string.IsNullOrEmpty(pack.message)) + + if (string.IsNullOrEmpty(pack.message)) + { + pack.message = Language.StringByID(StringId.OperationFailed); + } { var tip = new Tip() { -- Gitblit v1.8.0