From 0d9f64668fd7350d6a21fd157e32009a96d98134 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期三, 16 十二月 2020 13:09:08 +0800 Subject: [PATCH] 新云端代码Ver1.2 --- ZigbeeApp/Shared/Phone/UserView/UserPage.cs | 20 +++++++------------- 1 files changed, 7 insertions(+), 13 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserView/UserPage.cs b/ZigbeeApp/Shared/Phone/UserView/UserPage.cs index 09ae903..4ef083c 100755 --- a/ZigbeeApp/Shared/Phone/UserView/UserPage.cs +++ b/ZigbeeApp/Shared/Phone/UserView/UserPage.cs @@ -72,14 +72,8 @@ public UserPage() { BackgroundColor = Shared.Common.ZigbeeColor.Current.MainColor; - Shared.Application.LocationAction += (lon, lat) => - { - //GPS鍧愭爣杞垚楂樺痉鍧愭爣 - double out_lng, out_lat; - HdlGpsLocationConvertLogic.Current.WGS84_to_GCJ02(lon, lat, out out_lng, out out_lat); - //涓婃姤缁忕含搴� - Login.AccountLogic.Instance.ReceiveAppLatAndLon(out_lng.ToString(), out_lat.ToString()); - }; + //娣诲姞App鐨勭粡绾害涓婃姤浜嬩欢 + HdlOtherFunctionLogic.Current.AddAppLatAndLonEvent(); } /// <summary> @@ -100,18 +94,18 @@ #endif //鐢ㄦ埛涓讳綋鐣岄潰锛堜腑闂撮儴鍒嗭級 this.bodyFrameView = new NormalFrameLayout(); - bodyFrameView.Height = this.Height - UserCenter.ControlCommonResourse.BottomFrameHeight; + bodyFrameView.Height = this.Height - HdlControlResourse.BottomFrameHeight; bodyFrameView.BackgroundColor = Shared.Common.ZigbeeColor.Current.MainColor; this.AddChidren(bodyFrameView); //鐢ㄦ埛鑿滃崟鐣岄潰锛堝簳閮ㄩ儴鍒嗭級 var bottomMenuFrame = new FrameLayout(); bottomMenuFrame.Gravity = Gravity.BottomCenter; - bottomMenuFrame.Height = ControlCommonResourse.BottomFrameHeight; + bottomMenuFrame.Height = HdlControlResourse.BottomFrameHeight; bottomMenuFrame.BackgroundColor = Shared.Common.ZigbeeColor.Current.GXCBottomColor; this.AddChidren(bottomMenuFrame); //搴曢儴鑿滃崟鐨勫ご閮ㄧ嚎 - var bottomLine = new NormalViewControl(bottomMenuFrame.Width, ControlCommonResourse.BottomLineHeight, false); + var bottomLine = new NormalViewControl(bottomMenuFrame.Width, HdlControlResourse.BottomLineHeight, false); bottomLine.BackgroundColor = 0xffc8c8c9; bottomMenuFrame.AddChidren(bottomLine); @@ -353,9 +347,9 @@ public void ShowCategoryAutoListForm() { //鍏抽棴鍏ㄩ儴鐣岄潰,鐩村埌涓婚〉涓烘 - UserCenterLogic.CloseAllOpenForm(null, false); + HdlFormLogic.Current.CloseAllOpenForm(null, false); //寮哄埗鏄剧ず鑷姩鍖栧垪琛ㄧ晫闈� - UserCenterResourse.ResidenceOption.CategoryPageSwitchIndex = 2; + HdlUserCenterResourse.ResidenceOption.CategoryPageSwitchIndex = 2; this.nowSelectMenu = MenuSelectEnum.A鍒嗙被; -- Gitblit v1.8.0