任天堂让他

This commit is contained in:
陈向学 2024-07-19 15:54:55 +08:00
parent 70308e889e
commit 5b49408d8c
1 changed files with 9 additions and 6 deletions

View File

@ -46,13 +46,14 @@ public class WorkPlacePanel : MonoBehaviour
}
//本关区的
var showAll = list.FindAll(a => custCodes.Split(',').Contains(a.DistrictCode));
List<erprise_model_version> showAll=new List<erprise_model_version>();
if (workPlaceItem.workPlaceName == "驻罗源湾办事处")
{
showAll = list.FindAll(a => a.DistrictCode=="3505");
}
else if (workPlaceItem.workPlaceName == "驻福清办事处")
{
showAll = list.FindAll(a => a.DistrictCode == "3502");
//读取福清配置文件
List<erprise_model_version> tmpComps = JsonMapper.ToObject<List<erprise_model_version>>(FirstPanel.instance.fuqingWorkPlaceJson);
showAll.AddRange(tmpComps);
@ -67,11 +68,13 @@ public class WorkPlacePanel : MonoBehaviour
}
GameObject go = Instantiate<GameObject>(ModelItem.modelItemPrefb, transform);
go.GetComponent<ModelItem>().Init(a, GetComponent<RectTransform>());
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
{