Example #1
0
    void onClick_BindBtn_Btn(GameObject caster)
    {
        UILabel Verify_label = m_input_VerifyNumber.GetComponentInChildren <UILabel>();
        UILabel phone_label  = m_input_PhoneNumber.GetComponentInChildren <UILabel>();

        if (Verify_label != null)
        {
            if (m_input_VerifyNumber.value == null)
            {
                TipsManager.Instance.ShowTips("请输入验证码");
                return;
            }
            else
            {
                if (isVerifyNumber(Verify_label.text))
                {
                    stBindPhoneNumDataUserCmd_CS cmd = new stBindPhoneNumDataUserCmd_CS();
                    cmd.phone = phone_label.text;
                    cmd.type  = BindPhoneCode.BindPhoneCode_Ret;
                    cmd.code  = Verify_label.text;
                    NetService.Instance.Send(cmd);
                }
                else
                {
                    TipsManager.Instance.ShowTips("无效验证码,请重新输入");
                    m_input_VerifyNumber.value = null;
                }
            }
        }
    }
Example #2
0
 public void GetBindPhoneRes(stBindPhoneNumDataUserCmd_CS cmd)
 {
     Verify_CD = cmd.cd;
     Engine.Utility.EventEngine.Instance().DispatchEvent((int)Client.GameEventID.GETVERIFYNUM, null);
     //绑定成功
     if (Verify_CD == 0 && cmd.type == BindPhoneCode.BindPhoneCode_Ret)
     {
         DataManager.Manager <UIPanelManager>().HidePanel(PanelID.ActiveTakePanel);
         TipsManager.Instance.ShowTips(DataManager.Manager <TextManager>().GetLocalText(LocalTextType.FeedBack_BindPhoneSuccess));
         isBindFinish = true;
         Engine.Utility.EventEngine.Instance().DispatchEvent((int)Client.GameEventID.BINDPHONESUCESS, true);
     }
 }
Example #3
0
 public void OnBindPhoneRes(stBindPhoneNumDataUserCmd_CS cmd)
 {
     DataManager.Manager <DailyManager>().GetBindPhoneRes(cmd);
 }