From c2193896bb83f35ae7c9f54e2faccc61fa33e5f3 Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期二, 11 九月 2018 17:12:09 +0800
Subject: [PATCH] 3463 【前端】【1.0.15】主界面任务展示移动逻辑修改

---
 System/MainInterfacePanel/TaskListTip.cs |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/System/MainInterfacePanel/TaskListTip.cs b/System/MainInterfacePanel/TaskListTip.cs
index bbcc9f1..4fe6546 100644
--- a/System/MainInterfacePanel/TaskListTip.cs
+++ b/System/MainInterfacePanel/TaskListTip.cs
@@ -200,7 +200,7 @@
         {
             TaskScheduling();    
             TheTaskToGenerate();
-            TaskJump();
+            TaskJump(_id);
         }
 
         private void SetLength()
@@ -253,7 +253,7 @@
             {
                 TaskAddAndDelete();
             }
-            TaskJump();
+            TaskJump(MissionID);
         }
 
         void LodingDelTask(int TaskID)
@@ -443,12 +443,22 @@
             return mapConfig != null && mapConfig.MapFBType != 0;
         }
 
-        private void TaskJump()
+        private void TaskJump(int jumpTask=0)
         {
             int type = 0;
-            if (_list.Contains(taskmodel.TaskupToDate))
+            if (jumpTask == 0)//璺冲埌榛樿閫変腑
             {
-                type = _list.IndexOf(taskmodel.TaskupToDate);
+                if (_list.Contains(taskmodel.GetNowTaskID))
+                {
+                    type = _list.IndexOf(taskmodel.GetNowTaskID);
+                }
+            }
+            else
+            {
+                if (_list.Contains(jumpTask))//璺冲埌鏈�鏂版坊鍔�
+                {
+                    type = _list.IndexOf(jumpTask);
+                }
             }
             if (_list.Count <= 2 || type <= 0)
             {

--
Gitblit v1.8.0