Esempio n. 1
0
    }                                                            //撤单成功

    public override void OnRegister()
    {
        view.init();

        ////Listen to the view for a Signal
        //view.clickSignal.AddListener(onViewClicked);

        //添加 监听器
        TransferSignal.AddListener(OnTransferMoney);               //转金额 监听器
        RefreshMoneySignal.AddListener(OnRefreshMoney);            //刷新金额 监听器
        udinfoSignal.AddListener(OnuserBaseinfo);                  //用户中心 监听器
        GerenzijinSignal.AddListener(OnRecGerenZijin);             //个人资金 监听器
        TuanduizijiSignal.AddListener(OnRecTuanDuiZijin);          //团队资金 监听器
        qqMiMaQuKuanMiMaSignal.AddListener(OnRecQQMiMaQuKuanMiMa); //团队资金 监听器

        chedanSuccessSignal.AddListener(OnChedansuccess);

        recordBackSignal.AddListener(OnRecordBack);
        touzhuxiangxiSignal.AddListener(OnTouzhuxiangxi);
        AllbankInfoSignal.AddListener(OnAllBankInfo);
        logoutSignal.AddListener(OnLogOut);
        view.FillContent(UInfoModel);

        //进入用户中心界面必须先请求一次用户中心接口,并保存返回信息到全局
        NetworkManager.Instance.GetUserData();
    }
Esempio n. 2
0
 public override void OnRemove()
 {
     //移出 监听器
     TransferSignal.RemoveListener(OnTransferMoney);      //转金额 监听器
     RefreshMoneySignal.RemoveListener(OnRefreshMoney);   //移出 刷新金额 监听器
     udinfoSignal.RemoveListener(OnuserBaseinfo);         //移出 用户中心 监听器
     GerenzijinSignal.RemoveListener(OnRecGerenZijin);    //移出 个人资金 监听器
     TuanduizijiSignal.RemoveListener(OnRecTuanDuiZijin); //移出 团队资金 监听器
     chedanSuccessSignal.RemoveListener(OnChedansuccess);
     recordBackSignal.RemoveListener(OnRecordBack);
     touzhuxiangxiSignal.RemoveListener(OnTouzhuxiangxi);
     AllbankInfoSignal.RemoveListener(OnAllBankInfo);
     qqMiMaQuKuanMiMaSignal.RemoveListener(OnRecQQMiMaQuKuanMiMa);        //团队资金 监听器
     logoutSignal.RemoveListener(OnLogOut);
     Debug.Log("LoginView Mediator OnRemove");
 }