From 9ef48d7b2da7c408b53f73be0f6eef3cbac1c84a Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期四, 19 十一月 2020 10:23:45 +0800 Subject: [PATCH] Evoyo.Home1.1.0120111601_Release --- ZigbeeApp/Shared/Phone/UserCenter/Abount/AbountForm.cs | 57 ++++++++++++++++++++++++++++----------------------------- 1 files changed, 28 insertions(+), 29 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Abount/AbountForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Abount/AbountForm.cs index d261ffd..e03b27b 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Abount/AbountForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Abount/AbountForm.cs @@ -72,20 +72,15 @@ frameLogo.Height = Application.GetRealHeight(484); frameLogo.BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; bodyFrameLayout.AddChidren(frameLogo); - //鍥炬爣鐨勫鍣� - var frameLogoBackground = new FrameLayoutBase(); - frameLogoBackground.Y = Application.GetRealHeight(104); - frameLogoBackground.Width = this.GetPictrueRealSize(167); - frameLogoBackground.Height = this.GetPictrueRealSize(167); - frameLogoBackground.Gravity = Gravity.CenterHorizontal; - frameLogoBackground.BackgroundColor = ZigbeeColor.Current.GXCButtonBlackSelectedColor; - frameLogoBackground.Radius = (uint)Application.GetRealHeight(37); - frameLogo.AddChidren(frameLogoBackground); //鍥炬爣 - var btnLogo = new IconViewControl(144); - btnLogo.UnSelectedImagePath = "Account/Logo_White.png"; - btnLogo.Gravity = Gravity.Center; - frameLogoBackground.AddChidren(btnLogo); + var btnLogo = new ImageView(); + btnLogo.Y = Application.GetRealHeight(104); + btnLogo.Width = this.GetPictrueRealSize(167); + btnLogo.Height = this.GetPictrueRealSize(167); + btnLogo.Radius = (uint)Application.GetRealHeight(37); + btnLogo.ImagePath = "Account/Logo_Evoyo.png"; + btnLogo.Gravity = Gravity.CenterHorizontal; + frameLogo.AddChidren(btnLogo); //Evoyo Home var btnName = new NormalViewControl(700, 60, true); btnName.Y = Application.GetRealHeight(294); @@ -111,11 +106,17 @@ listView.Height = Application.GetRealHeight(500); bodyFrameLayout.AddChidren(listView); //鏈嶅姟鍗忚 - //var rowService = new FrameRowControl(listView.rowSpace / 2); - //listView.AddChidren(rowService); - //rowService.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.SLA), 400); - //rowService.AddRightArrow(); - //rowService.AddBottomLine(); + var rowService = new FrameRowControl(listView.rowSpace / 2); + listView.AddChidren(rowService); + rowService.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.SLA), 400); + rowService.AddRightArrow(); + rowService.AddBottomLine(); + rowService.ButtonClickEvent += (sender, e) => + { + var form = new SLAForm(); + form.AddForm(); + }; + //鐗堟湰鏇存柊 this.rowUpdate = new FrameRowControl(listView.rowSpace / 2); listView.AddChidren(rowUpdate); @@ -224,7 +225,7 @@ { return false; } - if (int.Parse(versionResult.FirmwareVersion.Replace(".", "")) > int.Parse(CommonPage.CodeIDString.Replace(".", ""))) + if (versionResult.FirmwareVersion.CompareTo(CommonPage.CodeIDString) > 0) { distributedMark = versionResult.DistributedMark; return true; @@ -300,7 +301,7 @@ try { var webClient = new WebClient { }; - var result = await webClient.DownloadDataTaskAsync("https://itunes.apple.com/lookup?id=1461693569"); + var result = await webClient.DownloadDataTaskAsync("https://itunes.apple.com/lookup?id=1528702586"); if (result == null) { return null; @@ -317,7 +318,7 @@ /// </summary> public void OpenUrl() { - Uri url = new Uri("https://itunes.apple.com/cn/app/hdl-home/id1461693569?mt=8"); + Uri url = new Uri("https://itunes.apple.com/cn/app/hdl-home/id1528702586?mt=8"); UIKit.UIApplication.SharedApplication.OpenUrl(url); } #elif Android @@ -338,7 +339,7 @@ if (Android.OS.BuildVersionCodes.M < Android.OS.Build.VERSION.SdkInt) { //鍙傛暟1 涓婁笅鏂�, 鍙傛暟2 Provider涓绘満鍦板潃 鍜岄厤缃枃浠朵腑淇濇寔涓�鑷� 鍙傛暟3 鍏变韩鐨勬枃浠� - var apkUri = Android.Support.V4.Content.FileProvider.GetUriForFile(context, "com.hdl.home.fileProvider", file); + var apkUri = Android.Support.V4.Content.FileProvider.GetUriForFile(context, "com.evoyo.home.fileProvider", file); //娣诲姞杩欎竴鍙ヨ〃绀哄鐩爣搴旂敤涓存椂鎺堟潈璇ri鎵�浠h〃鐨勬枃浠� intent.AddFlags(Android.Content.ActivityFlags.GrantReadUriPermission); intent.SetDataAndType(apkUri, "application/vnd.android.package-archive"); @@ -381,19 +382,17 @@ { return null; } - int MaxIndex = 0; - int NewVersion = 0; + + Common.ResponseEntity.ApkInfoOBJ apkInfoOBJ = null; for (int i = 0; i < responeData.pageData.Count; i++) { var apkInfo = responeData.pageData[i]; - var version = int.Parse(apkInfo.FirmwareVersion.Replace(".", "")); - if (version > NewVersion) + if (apkInfoOBJ == null || apkInfoOBJ.FirmwareVersion.CompareTo(apkInfo.FirmwareVersion) > 0) { - NewVersion = version; - MaxIndex = i; + apkInfoOBJ = apkInfo; } } - return responeData.pageData[MaxIndex]; + return apkInfoOBJ; } return null; } -- Gitblit v1.8.0