少年修仙传客户端代码仓库
client_Zxw
2019-03-08 306a67ebff69321b62aee9cc43548e05979ab034
System/Auction/MyFocusWin.cs
@@ -21,8 +21,7 @@
        #region Built-in
        protected override void BindController()
        {
            m_ScrollerController.OnRefreshCell += OnRefreshGridCell;
            m_ScrollerController.lockType = EnhanceLockType.KeepVertical;
            m_ScrollerController.OnRefreshCell += OnRefreshGridCell;
        }
        protected override void AddListeners()
@@ -31,6 +30,7 @@
        protected override void OnPreOpen()
        {
            AuctionInquiry.Instance.SendQueryAttentionAuctionItem();//查询拍卖行的关注物品
            GetMyFocusList();
            ListSotr();
            OnCreateGridLineCell(m_ScrollerController);
@@ -40,21 +40,21 @@
        {
            model.AttentionAuctionItemUdate += Reset;
            model.ClearAuctionUpdate += Reset;
            model.RefreshAuctionItemUpdate -=Update;//刷新
            model.RefreshAuctionItemUpdate -= Update;//刷新
            model.FamilyAuctionItemUpdate += Reset;
        }
        protected override void OnPreClose()
        {
            model.AttentionAuctionItemUdate -= Reset;
            model.ClearAuctionUpdate -= Reset;
            model.RefreshAuctionItemUpdate -=Update;//刷新
            model.RefreshAuctionItemUpdate -= Update;//刷新
            model.FamilyAuctionItemUpdate -= Reset;
        }
        protected override void OnAfterClose()
        {
        }
@@ -72,7 +72,6 @@
        }
        private void OnCreateGridLineCell(ScrollerController gridCtrl)
        {
            gridCtrl.Refresh();
            for (int i = 0; i < MyFocusList.Count; i++)
            {
@@ -82,7 +81,6 @@
        }
        private void OnRefreshGridCell(ScrollerDataType type, CellView cell)
        {
            int index = cell.index;
            var ItemGUID = MyFocusList[index].ItemGUID;
            MyFocusCell myAuctionCell = cell.GetComponent<MyFocusCell>();