From 1f9042e3d64479e23940abb482a9743c2d104d25 Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期一, 11 三月 2019 11:38:55 +0800
Subject: [PATCH] 6251 子 【开发】【2.0】拍卖行开发单

---
 System/Auction/FullServiceAuctionWin.cs |   31 +++++++++++++++++++++++--------
 1 files changed, 23 insertions(+), 8 deletions(-)

diff --git a/System/Auction/FullServiceAuctionWin.cs b/System/Auction/FullServiceAuctionWin.cs
index d8394d4..ea2d4cb 100644
--- a/System/Auction/FullServiceAuctionWin.cs
+++ b/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();
                     }
                 });

--
Gitblit v1.8.0