Beispiel #1
0
    void ShowChildeUI(bool bShow, Acoount_MgrUI_Type type)
    {
        switch (type)
        {
        case Acoount_MgrUI_Type.PasswordMgr_UI:
            m_PrsswordMgrUI.ShowPasswordMgrUI(bShow);
            break;

        case Acoount_MgrUI_Type.BindMobile_UI:
            m_BindMobile.ShowBingMobileUI(bShow);
            break;

        case Acoount_MgrUI_Type.Phone_Password:
            m_phoneps.ShowPasswordMgrUI(bShow);
            break;

        case Acoount_MgrUI_Type.Certification_UI:
            m_Certification.ShowCertificationUI(bShow);
            break;

        case Acoount_MgrUI_Type.ReceiverAddress_UI:
            m_ReceiverAddress.ShowReceiverAddressUI(bShow);
            break;
        }
    }
Beispiel #2
0
 public void ShowAccount_MgrUI(Acoount_MgrUI_Type type)
 {
     if (m_BaseWndObject != null)
     {
         return;
     }
     m_MgrUITyp = type;
     Init();
     ShowChildeUI(true, m_MgrUITyp);
     ChangeButtonBg();
     UpdateAccountMgrDate();
     WndManager.Instance.Push(m_BaseWndObject);
 }
Beispiel #3
0
 //账号管理
 public void ShowAccountMgrWnd(Acoount_MgrUI_Type type)
 {
     m_AccountMgrUI.ShowAccount_MgrUI(type);
 }
Beispiel #4
0
    void ChangeWndUI(GameObject go)
    {
        byte tagBtn = 255;

        for (byte i = 0; i < m_MgrBtn.Length; ++i)
        {
            if (m_MgrBtn[i].m_UIBtn.gameObject == go)
            {
                m_MgrBtn[i].m_IsChecked = true;
                tagBtn = m_MgrBtn[i].m_Tag;
            }
            else
            {
                m_MgrBtn[i].m_IsChecked = false;
            }
        }
        switch (tagBtn)
        {
        case 0:       //密码管理
        {
            if (m_MgrUITyp == Acoount_MgrUI_Type.PasswordMgr_UI)
            {
                return;
            }
            ShowChildeUI(false, m_MgrUITyp);
            m_MgrUITyp = Acoount_MgrUI_Type.PasswordMgr_UI;
            ShowChildeUI(true, m_MgrUITyp);
            break;
        }

        case 1:       //绑定手机
        {
            if (m_MgrUITyp == Acoount_MgrUI_Type.BindMobile_UI)
            {
                return;
            }
            ShowChildeUI(false, m_MgrUITyp);
            m_MgrUITyp = Acoount_MgrUI_Type.BindMobile_UI;
            ShowChildeUI(true, m_MgrUITyp);
            break;
        }

        case 2:    //手机密码
        {
            if (m_MgrUITyp == Acoount_MgrUI_Type.Phone_Password)
            {
                return;
            }
            ShowChildeUI(false, m_MgrUITyp);
            m_MgrUITyp = Acoount_MgrUI_Type.Phone_Password;
            ShowChildeUI(true, m_MgrUITyp);
            break;
        }

        case 3:       //实名认证
        {
            if (m_MgrUITyp == Acoount_MgrUI_Type.Certification_UI)
            {
                return;
            }
            ShowChildeUI(false, m_MgrUITyp);
            m_MgrUITyp = Acoount_MgrUI_Type.Certification_UI;
            ShowChildeUI(true, m_MgrUITyp);
            break;
        }

        case 4:       //收货地址
        {
            if (m_MgrUITyp == Acoount_MgrUI_Type.ReceiverAddress_UI)
            {
                return;
            }
            ShowChildeUI(false, m_MgrUITyp);
            m_MgrUITyp = Acoount_MgrUI_Type.ReceiverAddress_UI;
            ShowChildeUI(true, m_MgrUITyp);
            break;
        }
        }
        ChangeButtonBg();
        UpdateAccountMgrDate();
        GlobalAudioMgr.Instance.PlayOrdianryMusic(Audio.OrdianryMusic.m_BtnMusic);
    }