void testHttpResp_UI(BaseHttpRequest request, BaseResponse response) { if (response != null && response.status != BaseResponse.ERROR) { res = response as PayCountResponse; Core.Data.rechargeDataMgr.payData = res.data; // CheckFirstRecharge(); if (UIFirstRechargePanel.GetInstance() != null) { UIFirstRechargePanel.GetInstance().ShowBtnlabel(); } if (IsFirstRequest) { IsFirstRequest = false; return; } else { OpenRechargeUI(); } // if(GetGiftPanelController.Instance != null) // { // GetGiftPanelController.Instance.BtnBack(); // } } else if (response != null && response.status == BaseResponse.ERROR) { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getNetworkErrorString(response.errorCode)); // _RechageStatus = 0; } ComLoading.Close(); }
public void CreateCell(PayCountResponse res) { List <RechargeData> Datalist = mDataMgr.GetShowDataList(); Object prefab = PrefabLoader.loadFromPack("LS/pbLSFanbeiCell"); if (prefab != null) { for (int i = 0; i < Datalist.Count; i++) { GameObject obj = Instantiate(prefab) as GameObject; RechargeData m_data = Datalist[i]; if (m_data != null) { obj.name = (i + 1).ToString(); RED.AddChild(obj, _Table.gameObject); UIDragonRechargeCell mm = obj.GetComponent <UIDragonRechargeCell> (); _RechargeCellList.Add(mm); if (res != null && res.data != null && res.data.buyCounts != null) { if (res.data.buyCounts.Count == 0) { mm.OnShow(m_data); } else { for (int j = 0; j < res.data.buyCounts.Count; j++) { if (res.data.buyCounts[j] != null && res.data.buyCounts[j].Length == 2 && res.data.buyCounts[j][0] == Datalist[i].ID && res.data.buyCounts[j][1] != 0) { mm.OnShow(m_data, res.data.buyCounts[j][1]); break; } if (j == res.data.buyCounts.Count - 1) { mm.OnShow(m_data); } } } } else { mm.OnShow(m_data); } } } } _Table.Reposition(); }