|
@@ -96,14 +96,31 @@ namespace GFGGame
|
|
|
|
|
|
private void OnBtnTaskClick()
|
|
private void OnBtnTaskClick()
|
|
{
|
|
{
|
|
|
|
+ _activityId = ActivityDataManager.Instance.GetCurOpenActiveByType(ConstLimitTimeActivityType.ActLimitLuckyBox);
|
|
|
|
+ if (_activityId <= 0) {
|
|
|
|
+ PromptController.Instance.ShowFloatTextPrompt("活动已结束");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
ViewManager.Show<ActivityThemeLuckyBoxTaskView>();
|
|
ViewManager.Show<ActivityThemeLuckyBoxTaskView>();
|
|
}
|
|
}
|
|
private void OnBtnChapterClick()
|
|
private void OnBtnChapterClick()
|
|
{
|
|
{
|
|
|
|
+ _activityId = ActivityDataManager.Instance.GetCurOpenActiveByType(ConstLimitTimeActivityType.ActLimitLuckyBox);
|
|
|
|
+ if (_activityId <= 0)
|
|
|
|
+ {
|
|
|
|
+ PromptController.Instance.ShowFloatTextPrompt("活动已结束");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
ViewManager.Show<StudioActivityView>();
|
|
ViewManager.Show<StudioActivityView>();
|
|
}
|
|
}
|
|
private void OnBtnLuckyBoxClick()
|
|
private void OnBtnLuckyBoxClick()
|
|
{
|
|
{
|
|
|
|
+ _activityId = ActivityDataManager.Instance.GetCurOpenActiveByType(ConstLimitTimeActivityType.ActLimitLuckyBox);
|
|
|
|
+ if (_activityId <= 0)
|
|
|
|
+ {
|
|
|
|
+ PromptController.Instance.ShowFloatTextPrompt("活动已结束");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
long endTime = TimeUtil.DateTimeToTimestamp(_activityCfg.endTime);
|
|
long endTime = TimeUtil.DateTimeToTimestamp(_activityCfg.endTime);
|
|
long curTime = TimeHelper.ServerNow();
|
|
long curTime = TimeHelper.ServerNow();
|
|
if (endTime < curTime) return;
|
|
if (endTime < curTime) return;
|
|
@@ -112,6 +129,12 @@ namespace GFGGame
|
|
|
|
|
|
private void OnBtnShopClick()
|
|
private void OnBtnShopClick()
|
|
{
|
|
{
|
|
|
|
+ _activityId = ActivityDataManager.Instance.GetCurOpenActiveByType(ConstLimitTimeActivityType.ActLimitLuckyBox);
|
|
|
|
+ if (_activityId <= 0)
|
|
|
|
+ {
|
|
|
|
+ PromptController.Instance.ShowFloatTextPrompt("活动已结束");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
ViewManager.Show<StoreView>(new object[] { ConstStoreTabId.STORE_EXCHANGE, ConstStoreSubId.STORE_ACTIVITY_EXCHANGE });
|
|
ViewManager.Show<StoreView>(new object[] { ConstStoreTabId.STORE_EXCHANGE, ConstStoreSubId.STORE_ACTIVITY_EXCHANGE });
|
|
}
|
|
}
|
|
|
|
|