Exemple #1
0
        private void OnRedPointHandler(MsgRes res)
        {
            //主界面红点消息
            view.HideAllRedPoint();
            GlobalData.DepartmentData.CanGetFriendsPower      = false;
            GlobalData.DepartmentData.CanGetSupporterActAward = false;

            if (res.Msgs != null)
            {
                for (int i = 0; i < res.Msgs.Count; i++)
                {
                    GlobalData.ActivityModel.SetActivityMissionRedDot(res.Msgs[i].MsgKey, res.Msgs[i].ExtI);
                    if (res.Msgs[i].MsgKey == Constants.FRIEND_MSG_KEY)
                    {
                        //应援会内的好友红点要知道状态
                        GlobalData.DepartmentData.CanGetFriendsPower = true;
                    }

                    if (res.Msgs[i].MsgKey == Constants.ENCOURAGE_ACT)
                    {
                        GlobalData.DepartmentData.CanGetSupporterActAward = true;
                    }



                    if (res.Msgs[i].MsgKey == Constants.PHONE_MSG_KEY)
                    {
                        continue;
                    }

                    if (res.Msgs[i].MsgKey == Constants.DAILY_PACKAGE_MSG_KEY)
                    {
                        GlobalData.PlayerModel.PlayerVo.ExtInfo.GotDailyPackageStatus = false;
                    }

                    if (res.Msgs[i].MsgKey == Constants.ACTIVITY_MISSION)
                    {
                        view.SetRedPoint(Constants.ACTIVITY_MSG_KEY);
                        continue;
                    }
                    view.SetRedPoint(res.Msgs[i].MsgKey);
                }
            }

            if (GlobalData.DepartmentData.CanLevelUpDepartment())
            {
                view.SetRedPoint(Constants.SUPPORTER_MSG_KEY);
            }

            //手机小红点不走后端
            if (Util.GetIsRedPoint(Constants.REDPOINT_PHONE_BGVIEW_SMS) ||
                Util.GetIsRedPoint(Constants.REDPOINT_PHONE_BGVIEW_CALL) ||
                Util.GetIsRedPoint(Constants.REDPOINT_PHONE_BGVIEW_FC) ||
                Util.GetIsRedPoint(Constants.REDPOINT_PHONE_BGVIEW_WEIBO))
            {
                view.SetRedPoint(Constants.PHONE_MSG_KEY);
            }


            //活动小红点不走运后端
            if (GlobalData.ActivityModel.IsShowRedDot())// &&
            // GuideManager.GetRemoteGuideStep(GuideTypePB.MainGuide)>GuideConst.MainStep_Achievement_EnterRole)
            {
                view.SetRedPoint(Constants.ACTIVITY_MSG_KEY);
            }

            //首充小红点不走后端
            if (GlobalData.ActivityModel.IsShowFirstRechargeBtn())
            {
                if (GlobalData.ActivityModel.IsShowFirstRechargeRedDot())
                {
                    view.SetRedPoint(Constants.ACTIVITY_MSG_FIRSTRECHARGE);
                }
            }
            //游客红点设置
            if (GlobalData.PlayerModel.PlayerVo.IsGuset)
            {
                view.SetRedPoint(Constants.USERCENTER_MSG_KEY);
            }

            if (GlobalData.CardModel.ShowRedPoint)
            {
                view.SetRedPoint(Constants.CARD_MSG_KEY);
            }


            SetShopRetPoint();
        }