wxr
2024-05-07 f16fd06aa226e9f97a27858624d4ea7cf8975d25
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 = "关于账号绑定的声明"
                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.设备及网络信息,包括设备标志符、MAC地址、设备序列号,用于识别当前工作的设备以及进行设备控制功能。" + "\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 = "解除授权";
                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 = "撤销授权后,该品牌关联在想天智控中的设备将全部被解绑,相关使用信息合设备值也将失效",
                        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 { }