Răsfoiți Sursa

提交还原

huangxiaoyue 2 ani în urmă
părinte
comite
296d11a614

+ 6 - 7
GameClient/Assets/Game/HotUpdate/Views/Arena/ArenaDressInfoView.cs

@@ -16,7 +16,7 @@ namespace GFGGame
         private List<LongPressGesture> _listLongPress = new List<LongPressGesture>();
         private List<FightData> _roleDatas; //可能是自己的搭配,也可能是对方玩家的搭配
         private int _themeIndex = 0;
-        private object[] _openViewName = new object[]{};
+        private string _openViewName = "";
         private List<int> _itemList = new List<int>();
         private string[] _tags;
         private int _roleType = 0; //FightRoleType
@@ -75,7 +75,7 @@ namespace GFGGame
             _roleType = (int)(this.viewData as object[])[0];
             _themeIndex = (int)(this.viewData as object[])[1];
             _roleDatas = (this.viewData as object[])[2] as List<FightData>;
-            _openViewName = (this.viewData as object[]);//[3];//.ToString();
+            _openViewName = (this.viewData as object[])[3].ToString();
 
             _ui.m_grhCloseComFightScore.visible = false;
             _ui.m_c1.selectedIndex = _roleType;
@@ -112,11 +112,10 @@ namespace GFGGame
         private void OnClickBtnBack()
         {
             ViewManager.GoBackFrom(typeof(ArenaDressInfoView).FullName); //返回竞技场主界面
-            //if (!string.IsNullOrEmpty(_openViewName))
-            //{
-                ViewManager.Show<CreateRoleView>();
-                //ViewManager.Show(_openViewName); //打开来源界面:如历史记录、排行榜
-           // }
+            if (!string.IsNullOrEmpty(_openViewName))
+            {
+                ViewManager.Show(_openViewName); //打开来源界面:如历史记录、排行榜
+            }
         }
 
         private void OnThemeChange()