public ButtonBase buyButton; //购买按钮

    public void updateActive(ActivityChapter _chapter)
    {
        this.chapter = _chapter;
        if (!chapter.isOpen())
        {
            buyButton.gameObject.SetActive(false);
        }
        buyButton.onClickEvent = buy;
        updateTimes();
        ResourcesManager.Instance.LoadAssetBundleTexture("texture/activity/activity_" + chapter.getThumbIconID(), bgIcon);
    }
 public override void DoClickEvent()
 {
     base.DoClickEvent();
     if (chapter.isOpen())
     {
         //添加记录
         FuBenManagerment.Instance.selectedChapterSid = chapter.sid;
         UiManager.Instance.openWindow <ActivityChooseWindow> ();
     }
     else
     {
         UiManager.Instance.openDialogWindow <MessageLineWindow>((win) => {
             win.Initialize(LanguageConfigManager.Instance.getLanguage("prefabzc27"));
         });
     }
 }