少年修仙传客户端代码仓库
client_linchunjie
2019-03-11 0752b05b3dcf081d1eaeaf333f5afcd704e7143e
System/Auction/FullServiceAuctionWin.cs
@@ -28,7 +28,9 @@
        [SerializeField] Text m_TypeTipText;
         List<AuctionItemClass> FullServiceAuctionListSort = new List<AuctionItemClass>();//全服拍品列表
        AuctionInquiryModel model { get { return ModelCenter.Instance.GetModel<AuctionInquiryModel>(); } }
        AuctionHelpModel auctionHelpModel { get { return ModelCenter.Instance.GetModel<AuctionHelpModel>(); } }
        AuctionHelpModel auctionHelpModel { get { return ModelCenter.Instance.GetModel<AuctionHelpModel>(); } }
        private bool IsSendBool = true;
        protected override void BindController()
        {
            m_ScrollerController.OnRefreshCell += OnRefreshGridCell;
@@ -45,11 +47,13 @@
        }
        protected override void OnPreOpen()
        {
        {
            IsSendBool = true;
            model.FullServiceAuctionUpdate += FullServiceAuctionUpdate;//数据请求刷新
            model.RefreshAuctionItemUpdate += RefreshAuctionItemUpdate;//刷新
            model.ClearAuctionUpdate += ClearAuctionUpdate;//清除
            model.BiddingItemInfoUpdate += BiddingItemInfoUpdate;//竞价物品信息刷新
            model.BiddingItemInfoUpdate += BiddingItemInfoUpdate;//竞价物品信息刷新
            GlobalTimeEvent.Instance.secondEvent += secondEvent;
            Reset();
            CloseTip();
            ListSort();
@@ -70,12 +74,23 @@
            model.FullServiceAuctionUpdate -= FullServiceAuctionUpdate;
            model.RefreshAuctionItemUpdate -= RefreshAuctionItemUpdate;
            model.ClearAuctionUpdate -= ClearAuctionUpdate;
            model.BiddingItemInfoUpdate -= BiddingItemInfoUpdate;//竞价物品信息刷新
        }
            model.BiddingItemInfoUpdate -= BiddingItemInfoUpdate;//竞价物品信息刷新
            GlobalTimeEvent.Instance.secondEvent -= secondEvent;
        }
        protected override void OnAfterClose()
        {
        }
        #endregion
        private void secondEvent()
        {
            if (IsSendBool)
            {
                IsSendBool = false;
                Reset();
            }
        }
        private void FullServiceAuctionUpdate()
        {
            OnCreateGridLineCellItem(m_ScrollerControllerItem);
@@ -137,7 +152,7 @@
                {
                    CloseTip();
                    auctionHelpModel.SelectedGenreNow = fullServiceAuction.Id;
                    Reset();
                    IsSendBool = true;
                    m_ScrollerController.m_Scorller.RefreshActiveCellViews();//刷新可见
                    OnCreateGridLineCellJob(m_ScrollerControllerJob);
                    OnCreateGridLineCellType(m_ScrollerControllerType);
@@ -185,7 +200,7 @@
                    if (index != config.JobEntry)
                    {
                        auctionHelpModel.FullServiceAuctionDic[selectedGenreNow].JobEntry = index;
                        Reset();
                        IsSendBool = true;
                        SetTipText();
                    }
                });
@@ -230,7 +245,7 @@
                    if (index != config.TypeEntry)
                    {
                        auctionHelpModel.FullServiceAuctionDic[selectedGenreNow].TypeEntry = index;
                        Reset();
                        IsSendBool=true;
                        SetTipText();
                    }
                });