|
@@ -62,9 +62,7 @@ namespace GFGGame
|
|
|
{
|
|
|
base.OnShown();
|
|
|
|
|
|
- _ui.m_list.visible = false;
|
|
|
- _valueBarController.OnShown();
|
|
|
- _valueBarController.UpdateList(new List<int>());
|
|
|
+ InitUI();
|
|
|
var result = await ActivityGetYuanXiaoProxy.ReqGetActivityGameInfos();
|
|
|
|
|
|
if (!isShowing || !result)
|
|
@@ -241,6 +239,12 @@ namespace GFGGame
|
|
|
long endTime = activityInfo.EndTime;
|
|
|
_ui.m_txtTime.text = TimeUtil.FormattingTimeTo_DDHHmm(endTime - curTime);
|
|
|
}
|
|
|
+ else
|
|
|
+ {
|
|
|
+ //_ui.m_txtTime.text = "已结束";
|
|
|
+ //InitUI();
|
|
|
+ OnBtnBackClick();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
private void OnBtnBackClick()
|
|
@@ -248,6 +252,12 @@ namespace GFGGame
|
|
|
ViewManager.Show<MainUIView>(null, true);
|
|
|
ViewManager.DeleteViewStackCountDown("MainUIView");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ private void InitUI()
|
|
|
+ {
|
|
|
+ _ui.m_list.visible = false;
|
|
|
+ _valueBarController.OnShown();
|
|
|
+ _valueBarController.UpdateList(new List<int>());
|
|
|
+ }
|
|
|
}
|
|
|
}
|