From 3f6685c77beeb12baf840733fb890860f4c26e7c Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期四, 25 七月 2024 17:25:59 +0800
Subject: [PATCH] 2024年07月25日17:24:45

---
 HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs |   45 +++++++++++++++------------------------------
 1 files changed, 15 insertions(+), 30 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs
index c0a6841..d801642 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs
@@ -55,13 +55,15 @@
         public void LoadPage(VerticalRefreshLayout refreshView)
         {
 
-            new TopViewDiv(bodyView, Language.StringByID(StringId.AddDevice)).LoadTopView();
+            var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.AddDevice));
+            topView.maginY = 10;
+            topView.LoadTopView();
             bodyView.BackgroundColor = CSS_Color.BackgroundColor;
 
             contentView = new VerticalRefreshLayout()
             {
-                Y = Application.GetRealHeight(64),
-                Height = Application.GetRealHeight(667 - 64),
+                Y = Application.GetRealHeight(64+10),
+                Height = Application.GetRealHeight(667 - 64-10),
                 VerticalScrollBarEnabled = false,
             };
             bodyView.AddChidren(contentView);
@@ -252,24 +254,14 @@
                                                                     var bindResult = Newtonsoft.Json.JsonConvert.DeserializeObject<ResponsePackNew>(msg);
                                                                     if (bindResult != null)
                                                                     {
+                                                                        string tipTitle = Language.StringByID(StringId.Tip);
                                                                         if (bindResult.Code == "147021") {
-                                                                            string tipTitle = "鎻愮ず";
-                                                                            string tipMsg = "鏃犳硶缁戝畾璇ヨ澶囷紝璇蜂粠娌充笢娓犻亾璐拱璇ョ被鍨嬩骇鍝�";
-                                                                            if (Language.CurrentLanguage != "Chinese")
-                                                                            {
-                                                                                tipTitle = "Tip";
-                                                                                tipMsg = "Unable to bind this device. Please purchase this type of product from HDL";
-                                                                            }
+                                                                            string tipMsg = Language.StringByID(StringId.UnableToBindThisDeviceTip);
                                                                             new PublicAssmebly().TipMsg(tipTitle, tipMsg);
                                                                         }
                                                                         else
                                                                         {
-                                                                            string tipTitle = "鎻愮ず";
                                                                             string tipMsg = $"{bindResult.message}({bindResult.Code})";
-                                                                            if (Language.CurrentLanguage != "Chinese")
-                                                                            {
-                                                                                tipTitle = "Tip";
-                                                                            }
                                                                             new PublicAssmebly().TipMsg(tipTitle, tipMsg);
                                                                         }
                                                                     }
@@ -341,25 +333,15 @@
                                                 var bindResult = Newtonsoft.Json.JsonConvert.DeserializeObject<ResponsePackNew>(msg);
                                                 if (bindResult != null)
                                                 {
+                                                    string tipTitle = Language.StringByID(StringId.Tip);
                                                     if (bindResult.Code == "147021")
                                                     {
-                                                        string tipTitle = "鎻愮ず";
-                                                        string tipMsg = "鏃犳硶缁戝畾璇ヨ澶囷紝璇蜂粠娌充笢娓犻亾璐拱璇ョ被鍨嬩骇鍝�";
-                                                        if (Language.CurrentLanguage != "Chinese")
-                                                        {
-                                                            tipTitle = "Tip";
-                                                            tipMsg = "Unable to bind this device. Please purchase this type of product from HDL";
-                                                        }
+                                                        string tipMsg = Language.StringByID(StringId.UnableToBindThisDeviceTip);
                                                         new PublicAssmebly().TipMsg(tipTitle, tipMsg);
                                                     }
                                                     else
                                                     {
-                                                        string tipTitle = "鎻愮ず";
                                                         string tipMsg = $"{bindResult.message}({bindResult.Code})";
-                                                        if (Language.CurrentLanguage != "Chinese")
-                                                        {
-                                                            tipTitle = "Tip";
-                                                        }
                                                         new PublicAssmebly().TipMsg(tipTitle, tipMsg);
                                                     }
                                                 }
@@ -422,9 +404,12 @@
                                 this.RemoveFromParent();
                             };
                             break;
-                        case SPK.VideoDoorLock: {
-                                //璺宠浆鍒癮ndroid閭h竟鍘�
-                                HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.SkipAddDeviceActivity(SPK.VideoDoorLock);
+                        case SPK.Peephole:
+                        case SPK.VideoDoorLock:
+                        case SPK.Ev_Ipcam:
+                            {
+                                //璺宠浆鍒癮ndroid,ios閭h竟鍘�
+                                HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.SkipAddDeviceActivity(device.spk);
                             }
                             break;
                     }

--
Gitblit v1.8.0