少年修仙传客户端代码仓库
hch
2019-10-10 f5f6ba4316c24a6b886eee5f5e20365bb8c85ed6
0312 主界面充值显示顺序 首充-充值返利-充值
3个文件已修改
34 ■■■■ 已修改文件
System/MainInterfacePanel/HighSettingTip.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/MainInterfacePanel/RechargeBtnBehaviour.cs 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Vip/AddUpRechargeModel.cs 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/MainInterfacePanel/HighSettingTip.cs
@@ -164,6 +164,9 @@
                        WindowCenter.Instance.Open<FirstRechargeWin>(true);
                    }
                    break;
                case 2:
                    WindowCenter.Instance.Open<VipRechargeWin>(false, 2);
                    break;
                case 3:
                    WindowCenter.Instance.Open<VipRechargeWin>(false, 0);
                    break;
System/MainInterfacePanel/RechargeBtnBehaviour.cs
@@ -15,6 +15,7 @@
        VipModel model { get { return ModelCenter.Instance.GetModel<VipModel>(); } }
        //OSGiftModel osGiftModel { get { return ModelCenter.Instance.GetModel<OSGiftModel>(); } }
        AddUpRechargeModel addUpModel { get { return ModelCenter.Instance.GetModel<AddUpRechargeModel>(); } }
        public void Init()
        {
@@ -30,10 +31,10 @@
            {
                state = 1;
            }
            //else if (model.firstChargeRewardGet && ModelCenter.Instance.GetModel<OSGiftModel>().activate)
            //{
            //    state = 2;
            //}
            else if (!addUpModel.IsCompleteAll())
            {
                state = 2;
            }
            else
            {
                state = 3;
@@ -45,10 +46,10 @@
                    m_FuncIcon.SetSprite("MoneyIcon_a");
                    m_FuncName.SetSprite("W_ShouChong_a");
                    break;
                //case 2:
                //    m_FuncIcon.SetSprite("ChaoZhi_a");
                //    m_FuncName.SetSprite("WZ_ZJM_39");
                //    break;
                case 2:
                    m_FuncIcon.SetSprite("ChongZhi_a");
                    m_FuncName.SetSprite("W_CZFL_a");
                    break;
                case 3:
                    m_FuncIcon.SetSprite("ChongZhi_a");
                    m_FuncName.SetSprite("W_ChongZhi_a");
System/Vip/AddUpRechargeModel.cs
@@ -148,6 +148,20 @@
            redpoint.state = redable ? RedPointState.Simple : RedPointState.None;
        }
        public bool IsCompleteAll()
        {
            var isOpen = SatisfyAnyVipLevel();
            var configs = AddUpRechargeConfig.GetValues();
            foreach (var config in configs)
            {
                if (isOpen && GetAddUpRechargeState(config.RewardID) != 1)
                {
                    return false;
                }
            }
            return isOpen ? true:false;
        }
    }
}