xm
2020-04-16 6fa9d69da922c8049f5acfcbb9ce9fd26811024c
ZigbeeApp/Shared/Phone/UserCenter/Abount/AbountForm.cs
@@ -45,7 +45,7 @@
        /// </summary>
        public AbountForm()
        {
        }
        /// <summary>
        /// 画面显示(底层会固定调用此方法,借以完成画面创建)
@@ -150,23 +150,25 @@
            var versionFL = new FrameLayout
            {
                Y = Application.GetRealHeight(510),
                Height = Application.GetRealHeight(300),
                //Height = Application.GetRealHeight(300),
                Height = Application.GetRealHeight(300-127-12),
                BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor
            };
            bodyFrameLayout.AddChidren(versionFL);
            var SLARow = new DeviceInfoRow(12);
            SLARow.Init();
            SLARow.SetTipTitle(R.MyInternationalizationString.SLA);
            SLARow.NameText.TextAlignment = TextAlignment.CenterRight;
            versionFL.AddChidren(SLARow);
            SLARow.ClickBtn.MouseUpEventHandler += (sender, e) =>
            {
                var slaForm = new SLAForm();
                slaForm.AddForm();
            };
            //var SLARow = new DeviceInfoRow(12);
            //SLARow.Init();
            //SLARow.SetTipTitle(R.MyInternationalizationString.SLA);
            //SLARow.NameText.TextAlignment = TextAlignment.CenterRight;
            //versionFL.AddChidren(SLARow);
            //SLARow.ClickBtn.MouseUpEventHandler += (sender, e) =>
            //{
            //    var slaForm = new SLAForm();
            //    slaForm.AddForm();
            //};
            updateRow = new DeviceInfoRow(12 + 127 + 12);
            //updateRow = new DeviceInfoRow(12 + 127 + 12);
            updateRow = new DeviceInfoRow(12);
            updateRow.Init();
            updateRow.SetTipTitle(R.MyInternationalizationString.UpdateVersion);
            updateRow.NameText.TextAlignment = TextAlignment.CenterRight;
@@ -180,7 +182,7 @@
                UpdateVersion();
            };
            updatingBtn = new Button()
            {
                Y = Application.GetRealHeight(994),
@@ -194,7 +196,7 @@
                Gravity=Gravity.CenterHorizontal
            };
            bodyFrameLayout.AddChidren(updatingBtn);
            SetDownLoadBtnNoVisible();
            CheckVersion();
        }
@@ -247,7 +249,6 @@
#if iOS
            try
            {
                    CommonPage.Loading.Start();
                    var versionResult = await RequestHttpsiOSAppVersionAsync();
                    if (versionResult == null || versionResult.Results == null)
                    {
@@ -264,14 +265,13 @@
                    {
                        return true;
                    }
                    retuun false;
                    return false;
                }
                catch
                {
            return false;
                   return false;
                }
#elif Android
            try
            {
@@ -300,7 +300,7 @@
        private async void UpdateVersion()
        {
#if iOS
            CommonPage.Instance.OpenUrl();
            OpenUrl();
#elif Android
            try
            {
@@ -351,7 +351,7 @@
        /// 获取iOS-APP版本信息
        /// </summary>
        /// <returns>The https app version async.</returns>
        public async System.Threading.Tasks.Task<ResponseEntity.ResultPack> RequestHttpsiOSAppVersionAsync()
        public async System.Threading.Tasks.Task<Common.ResponseEntity.ResultPack> RequestHttpsiOSAppVersionAsync()
        {
            try
            {
@@ -361,7 +361,7 @@
                {
                    return null;
                }
                return Newtonsoft.Json.JsonConvert.DeserializeObject<ResponseEntity.ResultPack>(Encoding.UTF8.GetString(result));
                return Newtonsoft.Json.JsonConvert.DeserializeObject<Common.ResponseEntity.ResultPack>(Encoding.UTF8.GetString(result));
            }
            catch
            {