Example #1
0
 /**
  * 检查当天是否已经签到
  */
 void checkIsSignIn()
 {
     if (UserManager.Instance().userInfo.is_checkin == 0)
     {
         PKAnimateTool.popUpView(signInView);
     }
 }
Example #2
0
    /**
     * 点击底部菜单
     */
    public void bottomMenuItemClick(int index)
    {
        switch (index)
        {
        case 1:     // 消息
        {
            break;
        }

        case 2:     // 活动
        {
            PKAnimateTool.popUpView(taskView);
            break;
        }

        case 3:     // 反馈
        {
            break;
        }

        case 4:     // 设置
        {
            openSettings();
            break;
        }
        }
    }
Example #3
0
    /**
     * 初始化我的信息
     */
    public void initUserInfoView()
    {
        Button diamondBtn = userInfoView.Find <Button>(userInfoView.name + "/UserdiamondBtn");

        diamondBtn.onClick.AddListener(() => {
            PKAnimateTool.popUpView(diamondBuyView);
        });
        Button goldBtn = userInfoView.Find <Button>(userInfoView.name + "/UserGoldBtn");

        goldBtn.onClick.AddListener(() => {
            shopingView.SetActive(true);
        });
    }
Example #4
0
    /**
     * 点击左部菜单
     */
    public void leftMenuItemClick(int index)
    {
        switch (index)
        {
        case 1:                 // 签到
        {
            PKAnimateTool.popUpView(signInView);
            break;
        }

        case 2:                 // 训练营
        {
            break;
        }

        case 3:                 // 邀请用户
        {
            break;
        }
        }
    }