From 66c72ee19b9e3543537621b8dd25685c9b5c03c4 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 02 八月 2022 14:05:30 +0800
Subject: [PATCH] RGB色盘优化,第三方平台对接功能

---
 HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/iot_BindTipPage.cs |   30 ++++++++++++++++++++++--------
 1 files changed, 22 insertions(+), 8 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 668e511..601da76 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/iot_BindTipPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/iot_BindTipPage.cs
@@ -139,14 +139,23 @@
             {
                 btnComfirm.MouseUpEventHandler = (sender, e) =>
                 {
-                    brand_Iot.hasAuthorization = true;
-                    boundAction?.Invoke();
-                    this.RemoveFromParent();
-                    var page = new Iot_BrandFunctionListPage(brand_Iot);
-                    page.unboundAction = unboundAction;
-                    MainPage.BasePageView.AddChidren(page);
-                    page.LoadPage();
-                    MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+
+                    Action action = () => {
+                        brand_Iot.hasAuthorization = true;
+                        boundAction?.Invoke();
+                        this.RemoveFromParent();
+                        var page = new Iot_BrandFunctionListPage(brand_Iot);
+                        page.unboundAction = unboundAction;
+                        MainPage.BasePageView.AddChidren(page);
+                        page.LoadPage();
+                        MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+                    };
+
+                    var page = new Iot_AuthorizedPage(brand_Iot,action);
+                    page.LoadView();
+
+
+
                 };
             }
             else
@@ -239,6 +248,11 @@
                                         });
                                     }
                                 }
+                                else
+                                {
+                                    dialog.Close();
+                                    new Alert("", "鎿嶄綔澶辫触", "").Show();
+                                }
                             }
                             catch { }
                             finally

--
Gitblit v1.8.0