From f16fd06aa226e9f97a27858624d4ea7cf8975d25 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 07 五月 2024 17:24:38 +0800
Subject: [PATCH] 增加了萤石摄像头

---
 HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/iot_BindTipPage.cs |   54 ++++++++++++++----------------------------------------
 1 files changed, 14 insertions(+), 40 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/iot_BindTipPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/iot_BindTipPage.cs
index 2d0b819..e27e987 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/iot_BindTipPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/iot_BindTipPage.cs
@@ -27,15 +27,17 @@
         public void LoadPage(IntegratedBrand_Iot brand_Iot)
         {
 
-            new TopViewDiv(bodyView, brand_Iot.brandName).LoadTopView(CSS_Color.MainBackgroundColor);
+            var topView = new TopViewDiv(bodyView, brand_Iot.brandName);
+            topView.maginY = 10;
+            topView.LoadTopView(CSS_Color.MainBackgroundColor);
 
             bodyView.BackgroundColor = CSS_Color.MainBackgroundColor;
 
             var contentView = new VerticalScrolViewLayout()
             {
-                Y = Application.GetRealHeight(64),
+                Y = Application.GetRealHeight(64+10),
                 BackgroundColor = CSS_Color.BackgroundColor,
-                Height = Application.GetRealHeight(667 - 124)
+                Height = Application.GetRealHeight(667 - 124 - 10)
             };
             bodyView.AddChidren(contentView);
 
@@ -59,13 +61,9 @@
                 TextSize = 21,
                 TextAlignment = TextAlignment.CenterLeft,
                 IsBold = true,
-                Text = "鍏充簬璐﹀彿缁戝畾鐨勫0鏄�"
+                TextID = StringId.AboutBindAcountTip,
             };
             contentView.AddChidren(btnTipTitle);
-            if (Language.CurrentLanguage != "Chinese")
-            {
-                btnTipTitle.Text = "Statement on account binding";
-            }
 
             var btnTipText = new Button()
             {
@@ -81,7 +79,7 @@
 
 "涓哄疄鐜拌澶囨帶鍒跺姛鑳斤紝鏈簲鐢ㄥ皢浠庣涓夋柟涓幏鍙栦互涓嬫暟鎹細" + "\r\n" + "\r\n" +
 
-"1.绗笁鏂瑰搧鐗屼笂娣诲姞鐨勯儴鍒嗚澶囧垪琛紝鐢ㄤ簬鍦ㄦ兂澶╂櫤鎺т腑杩涜鏅鸿兘鍖栨帶鍒讹紱" + "\r\n" + "\r\n" +
+"1.绗笁鏂瑰搧鐗屼笂娣诲姞鐨勯儴鍒嗚澶囧垪琛紝鐢ㄤ簬鍦�<鎯冲ぉ鏅烘帶>涓繘琛屾櫤鑳藉寲鎺у埗锛�" + "\r\n" + "\r\n" +
 
 "2.璁惧鍙婄綉缁滀俊鎭紝鍖呮嫭璁惧鏍囧織绗︺�丮AC鍦板潃銆佽澶囧簭鍒楀彿锛岀敤浜庤瘑鍒綋鍓嶅伐浣滅殑璁惧浠ュ強杩涜璁惧鎺у埗鍔熻兘銆�" + "\r\n" + "\r\n" +
 
@@ -93,9 +91,9 @@
             if (Language.CurrentLanguage != "Chinese")
             {
                 btnTipText.Text = $"account binding brand: {brand_Iot.brandName} (hereinafter referred to as the third party brand)" + "\r\n" + "\r\n" +
-"After you bind the account of the third-party brand, you will authorize '鎯冲ぉ鏅烘帶' to use your account of the third-party to jointly manage the device. App will also automatically synchronize the device you added in the third-party brand." + "\r\n" + "\r\n" +
+"After you bind the account of the third-party brand, you will authorize '鎯冲ぉ鏅烘帶' to use your account of the third-party to jointly manage the device. <鎯冲ぉ鏅烘帶> will also automatically synchronize the device you added in the third-party brand." + "\r\n" + "\r\n" +
 "To realize the device control function, this application will obtain the following data from a third party:" + "\r\n" + "\r\n" +
-"1. List of some devices added on the third-party brand for intelligent control in app;" + "\r\n" + "\r\n" +
+"1. List of some devices added on the third-party brand for intelligent control in 鎯冲ぉ鏅烘帶;" + "\r\n" + "\r\n" +
 "2. Equipment and network information, including equipment identifier, MAC address and equipment serial number, is used to identify the currently working equipment and perform equipment control functions." + "\r\n" + "\r\n" +
 "If you do not agree with our collection of the above information, you will not be able to manage third-party branded devices." + "\r\n" + "\r\n" +
 "To terminate the collection and processing of the above information, you can click my > bind third party account > cancel";
@@ -142,15 +140,10 @@
                 BackgroundColor= CSS_Color.MainColor,
                 TextColor = CSS_Color.MainBackgroundColor,
                 TextSize = CSS_FontSize.SubheadingFontSize,
-                Text = "鍚屾剰鎺堟潈",
+                TextID = StringId.Agree,
                 Radius = (uint)Application.GetRealHeight(22)
             };
             optionView.AddChidren(btnComfirm);
-            if (Language.CurrentLanguage != "Chinese")
-            {
-                btnComfirm.Text = "Consent authorization";
-            }
-
 
             if (!brand_Iot.hasAuthorization)
             {
@@ -177,11 +170,7 @@
             }
             else
             {
-                btnComfirm.Text = "瑙i櫎鎺堟潈";
-                if (Language.CurrentLanguage != "Chinese")
-                {
-                    btnComfirm.Text = "Cancel authorization";
-                }
+                btnComfirm.TextID = StringId.Cancel;
                 btnComfirm.MouseUpEventHandler = (sender, e) =>
                 {
                     Dialog dialog = new Dialog()
@@ -210,14 +199,10 @@
                         TextColor = CSS_Color.FirstLevelTitleColor,
                         TextSize = CSS_FontSize.SubheadingFontSize,
                         Padding = new Padding(0,Application.GetRealWidth(16),0,Application.GetRealWidth(16)),
-                        Text = "鎾ら攢鎺堟潈鍚庯紝璇ュ搧鐗屽叧鑱斿湪鎯冲ぉ鏅烘帶涓殑璁惧灏嗗叏閮ㄨ瑙g粦锛岀浉鍏充娇鐢ㄤ俊鎭悎璁惧鍊间篃灏嗗け鏁�",
+                        TextID = StringId.RevokeAuthorizationTip,
                         IsMoreLines = true,
                     };
                     contentView2.AddChidren(btnMsg);
-                    if (Language.CurrentLanguage != "Chinese")
-                    {
-                        btnMsg.Text = "After the authorization is revoked, all the devices associated with the brand in 鎯冲ぉ鏅烘帶 will be unbound, and the relevant use information and device value will also become invalid";
-                    }
 
                     Button btnLine = new Button()
                     {
@@ -236,12 +221,8 @@
                         TextSize = CSS_FontSize.SubheadingFontSize,
                         SelectedTextColor = CSS_Color.MainBackgroundColor,
                         SelectedBackgroundColor = CSS_Color.MainColor,
-                        Text = "纭畾鎾ゅ洖鎺堟潈",
+                        TextID = StringId.ConfirmRevocationOfAuthorization,
                     };
-                    if (Language.CurrentLanguage != "Chinese")
-                    {
-                        btnConfirm.Text = "Confirm to withdraw authorization";
-                    }
                     btnConfirm.SetCornerWithSameRadius(Application.GetMinRealAverage(10), HDLUtils.RectCornerBottomLeft);
                     btnConfirm.SetCornerWithSameRadius(Application.GetMinRealAverage(10), HDLUtils.RectCornerBottomRight);
                     contentView2.AddChidren(btnConfirm);
@@ -280,14 +261,7 @@
                                 }
                                 else
                                 {
-                                    if (Language.CurrentLanguage != "Chinese")
-                                    {
-                                        new Alert("", "Operation failed", "").Show();
-                                    }
-                                    else
-                                    {
-                                        new Alert("", "鎿嶄綔澶辫触", "").Show();
-                                    }
+                                    new Alert("", Language.StringByID(StringId.OperationFailed), "").Show();
                                 }
                             }
                             catch { }

--
Gitblit v1.8.0