Example #1
0
        protected override void OnFreshView()
        {
            base.OnFreshView();
            if (Data is string) // 比赛类型
            {
                var param = new Dictionary <string, object>();
                param["type"] = Data.ToString();
                CurTwManager.SendAction(ActionName, param, UpdateView);
                return;
            }
            YxWindowUtils.CreateMonoParent(PrefabGridAdapter, ref _gridAdapter);
            //数据
            var dict = GetData <Dictionary <string, object> >();

            if (dict == null)
            {
                return;
            }
            List <object> list = null;

            if (dict.Parse("list", ref list))
            {
                FreshItems(list);
            }
        }
Example #2
0
        protected override void OnCreate()
        {
            base.OnCreate();
            var actions = new[] { "gameLogo", "optionSwitch" };

            CurTwManager.SendActions(actions, new Dictionary <string, object>(), OnUpdateLogo, false);//,null,true,"gameLogo&optionsw");
        }
Example #3
0
 protected override void OnAwake()
 {
     base.OnAwake();
     CheckIsStart   = true;
     InitStateTotal = 1;
     CurTwManager.SendAction(ActionName, null, UpdateView);
 }
Example #4
0
        protected override void OnStart()
        {
            CurtainManager.CloseCurtain();
            base.OnStart();
            UserController.Instance.SendSimpleUserData();
            var actions = new[] { "gameLogo", "optionSwitch" };

            CurTwManager.SendActions(actions, new Dictionary <string, object>(), FreshHallModel, false);//,null,true,"gameLogo&optionsw");
        }
Example #5
0
        protected override void OnAwake()
        {
            base.OnAwake();
            InitStateTotal = 2;
            CheckIsStart   = true;
            var parma = new Dictionary <string, object> {
                { "type", ActionParmaType == YxEQrCodeType.Custom? QrCodeExType : ActionParmaType.ToString() }
            };

            CurTwManager.SendAction(ActionName, parma, UpdateView);
        }
Example #6
0
        protected override void OnChageTab(YxView view, TabData tabData)
        {
            if (view == null)
            {
                return;
            }
            var parm = new Dictionary <string, object>();

            parm["type"] = tabData.Id;
            CurTwManager.SendAction(TabActionName, parm, view.UpdateView);
        }
Example #7
0
        protected virtual void SendAction(string type)
        {
            if (string.IsNullOrEmpty(type))
            {
                return;
            }
            var parm = new Dictionary <string, object>();

            parm["type"] = type;
            CurTwManager.SendAction(ActionName, parm, UpdateView);
        }
Example #8
0
 /// <summary>
 /// 获取奖励
 /// </summary>
 public void OnAwardClick()
 {
     if (!YxBaseButtonAdapter.EnableClick(GainAwardActionName, 5000))
     {
         YxMessageBox.Show("您的操作太频繁,请稍后再试!", 3);
         return;
     }
     CurTwManager.SendAction(GainAwardActionName, null, obj =>
     {
     });
 }
Example #9
0
        protected void SendAction(string item)
        {
            if (_curItem == item)
            {
                return;
            }
            _curItem = item;
            var dict = new Dictionary <string, object>();

            dict["date"] = item;
            CurTwManager.SendAction(ActionName, dict, UpdateView);
        }
Example #10
0
 protected override void OnAwake()
 {
     CurTwManager.SendAction("goodsItem", new Dictionary <string, object>(), OnData, false);
 }
 protected override void OnAwake()
 {
     base.OnAwake();
     CurTwManager.SendAction(ActionName, null, UpdateView);
 }
Example #12
0
 protected override void OnAwake()
 {
     InitStateTotal = 3;//打开窗口传入数据:1次, 获取支付类型:2次
     CheckIsStart   = true;
     CurTwManager.SendAction("store.paytype", null, FreshPayType);
 }