/// <summary> /// 点击申请加入茶馆按钮 /// </summary> /// <param name="item"></param> public void ClickApplyBtn(TeaHouseListItem item) { TeaUtil.ApplyJoinTeaHouse(item.TeaHouseIdLabel.Value, null, success => { var data = item.GetData <TeaHouseListeItemData>(); if (data != null) { data.OnApplySuccess(); ChangeChildItem(item, data); } }); }
/// <summary> /// 点击进入茶馆按钮 /// </summary> /// <param name="item"></param> public void ClickJoinBtn(TeaHouseListItem item) { var teaHouseData = item.GetData <TeaHouseListeItemData>(); if (teaHouseData != null) { TeaUtil.FindTeaHouse(teaHouseData.TeaId, null, success => { if (gameObject.activeInHierarchy) { StartCoroutine(OnEnterTeaHouseSuccess.WaitExcuteCalls()); } }); } }
/// <summary> /// 点击查找茶馆按钮 /// </summary> /// <param name="teaId"></param> public void ClickFindTeaBtn(string teaId) { TeaUtil.FindTeaHouse(teaId, null, success => { var dic = success as Dictionary <string, object>; var teaData = new TeaData(dic); var itemData = new TeaHouseListeItemData(success, typeof(TeaHouseListeItemData)); if (!teaData.Mstatus.Equals(TeaState.Invalid)) { if (FindInfoView) { FindInfoView.UpdateView(itemData); } if (gameObject.activeInHierarchy) { StartCoroutine(OnFindTeaHouseSuccess.WaitExcuteCalls()); } } else { YxWindowManager.ShowMessageWindow(FindEmptyNotice); } }, false); }
/// <summary> /// 权限操作成功回调(同意申请,拒绝申请或请离茶馆) /// </summary> /// <param name="data"></param> private void OnLimitChange(object data) { TeaUtil.GetBackString(data); RemoveChildItem(CurItem); }
/// <summary> /// 解散成功回调 /// </summary> /// <param name="data"></param> private void OnDissolveSucess(object data) { TeaUtil.GetBackString(data); RemoveChildItem(CurItem); }