HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2020-12-14 e90209beae6a4e822cecb18e6889f8bda23f630e
ZigbeeApp/Shared/Phone/UserView/UserPage.cs
@@ -72,8 +72,14 @@
        public UserPage()
        {
            BackgroundColor = Shared.Common.ZigbeeColor.Current.MainColor;
            //添加App的经纬度上报事件
            HdlOtherFunctionLogic.Current.AddAppLatAndLonEvent();
            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());
            };
        }
        /// <summary>
@@ -94,18 +100,18 @@
#endif
            //用户主体界面(中间部分)
            this.bodyFrameView = new NormalFrameLayout();
            bodyFrameView.Height = this.Height - HdlControlResourse.BottomFrameHeight;
            bodyFrameView.Height = this.Height - UserCenter.ControlCommonResourse.BottomFrameHeight;
            bodyFrameView.BackgroundColor = Shared.Common.ZigbeeColor.Current.MainColor;
            this.AddChidren(bodyFrameView);
            //用户菜单界面(底部部分)
            var bottomMenuFrame = new FrameLayout();
            bottomMenuFrame.Gravity = Gravity.BottomCenter;
            bottomMenuFrame.Height = HdlControlResourse.BottomFrameHeight;
            bottomMenuFrame.Height = ControlCommonResourse.BottomFrameHeight;
            bottomMenuFrame.BackgroundColor = Shared.Common.ZigbeeColor.Current.GXCBottomColor;
            this.AddChidren(bottomMenuFrame);
            //底部菜单的头部线
            var bottomLine = new NormalViewControl(bottomMenuFrame.Width, HdlControlResourse.BottomLineHeight, false);
            var bottomLine = new NormalViewControl(bottomMenuFrame.Width, ControlCommonResourse.BottomLineHeight, false);
            bottomLine.BackgroundColor = 0xffc8c8c9;
            bottomMenuFrame.AddChidren(bottomLine);
@@ -347,9 +353,9 @@
        public void ShowCategoryAutoListForm()
        {
            //关闭全部界面,直到主页为止
            HdlFormLogic.Current.CloseAllOpenForm(null, false);
            UserCenterLogic.CloseAllOpenForm(null, false);
            //强制显示自动化列表界面
            HdlUserCenterResourse.ResidenceOption.CategoryPageSwitchIndex = 2;
            UserCenterResourse.ResidenceOption.CategoryPageSwitchIndex = 2;
            this.nowSelectMenu = MenuSelectEnum.A分类;