From 5b49408d8c633f7b1250f54e783d16422f10777a Mon Sep 17 00:00:00 2001 From: chenxiangxue <910695411@qq.com> Date: Fri, 19 Jul 2024 15:54:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=A4=A9=E5=A0=82=E8=AE=A9=E4=BB=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FuZhou_FirstPage/Assets/Scripts/WorkPlacePanel.cs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/FuZhou_FirstPage/Assets/Scripts/WorkPlacePanel.cs b/FuZhou_FirstPage/Assets/Scripts/WorkPlacePanel.cs index 4abea6ce..2645719a 100644 --- a/FuZhou_FirstPage/Assets/Scripts/WorkPlacePanel.cs +++ b/FuZhou_FirstPage/Assets/Scripts/WorkPlacePanel.cs @@ -46,13 +46,14 @@ public class WorkPlacePanel : MonoBehaviour } //本关区的 - var showAll = list.FindAll(a => custCodes.Split(',').Contains(a.DistrictCode)); + List showAll=new List(); if (workPlaceItem.workPlaceName == "驻罗源湾办事处") { - + showAll = list.FindAll(a => a.DistrictCode=="3505"); } else if (workPlaceItem.workPlaceName == "驻福清办事处") { + showAll = list.FindAll(a => a.DistrictCode == "3502"); //读取福清配置文件 List tmpComps = JsonMapper.ToObject>(FirstPanel.instance.fuqingWorkPlaceJson); showAll.AddRange(tmpComps); @@ -67,11 +68,13 @@ public class WorkPlacePanel : MonoBehaviour } GameObject go = Instantiate(ModelItem.modelItemPrefb, transform); go.GetComponent().Init(a, GetComponent()); - - Application.ExternalCall("ClickCustom", JsonMapper.ToJson(list)); - Debug.Log("调前端进入关区" + custCodes); - //Debug.Log(JsonMapper.ToJson(list)); }); + + Application.ExternalCall("ClickCustom", JsonMapper.ToJson(showAll)); + Debug.Log("调前端显示企业" + custCodes); +#if UNITY_EDITOR + Debug.Log(JsonMapper.ToJson(showAll)); +#endif } else {