public override void Show() { base.Show(); Color color = m_modeConfigProxy.GetCurrentModeConfigVO().backgroundColor; m_backgroundImage.color = color; m_modeText.text = m_modeConfigProxy.GetCurrentModeConfigVO().modeText; }
public override void HandleNotification(INotification notification) { string name = notification.Name; object vo = notification.Body; switch (name) { case Const.Notification.PHONE_VERIFY_CODE_SENT: m_wechatLoginView.OnVerifyCodeSent(); break; case Const.Notification.PHONE_VERIFY_CODE_FAILED: m_wechatLoginView.OnVerifyCodeSendFailed(vo as string); break; case Const.Notification.PHONE_LOGIN_SUCCESS: m_wechatLoginView.OnLoginSuccess(); Debug.Log((vo as PhoneLoginResponse).wb_token + "/" + (vo as PhoneLoginResponse).user_id); SendNotification(Const.Notification.LOAD_UI_FORM, m_modeConfigProxy.GetCurrentModeConfigVO().formAfterUserLogin); break; case Const.Notification.PHONE_LOGIN_FAILED: m_wechatLoginView.OnLoginFailed(vo as string); break; } }