|
@@ -1,14 +1,13 @@
|
|
-using System.Collections;
|
|
|
|
-using System.Collections.Generic;
|
|
|
|
using TMPro;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using UnityEngine.UI;
|
|
using WS;
|
|
using WS;
|
|
|
|
+using static TypeOfCourseModel;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-public class HarvestingProcessController : Controller<HarvestingProcessView, HarvestingProcessModel>
|
|
+public class TypeOfCourseController : Controller<TypeOfCourseView, TypeOfCourseModel>
|
|
{
|
|
{
|
|
public override void Dispose()
|
|
public override void Dispose()
|
|
{
|
|
{
|
|
@@ -22,32 +21,70 @@ public class HarvestingProcessController : Controller<HarvestingProcessView, Har
|
|
{
|
|
{
|
|
Debug.Log("返回主页面");
|
|
Debug.Log("返回主页面");
|
|
|
|
|
|
- FacadeComponent.Instance.CreateController<HarvestingProcessController>().OpenView();
|
|
+ FacadeComponent.Instance.CreateController<TypeOfCourseController>().OpenView();
|
|
|
|
|
|
FacadeComponent.Instance.CloseView(this._View, null);
|
|
FacadeComponent.Instance.CloseView(this._View, null);
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
+ this._View.toggleHelp.TogCreateBindEvent((idx, on, off) =>
|
|
|
|
+ {
|
|
|
|
+ on.transform.Find("txt").GetComponent<Text>().text = ((HarProcessType)idx).ToString();
|
|
|
|
+ off.transform.Find("txt").GetComponent<Text>().text = ((HarProcessType)idx).ToString();
|
|
|
|
|
|
|
|
+ }, (idx) =>
|
|
|
|
+ {
|
|
|
|
+ switch (((HarProcessType)idx))
|
|
|
|
+ {
|
|
|
|
+ case HarProcessType.基础信息:
|
|
|
|
|
|
|
|
|
|
- }
|
|
+ break;
|
|
|
|
+ case HarProcessType.产地与生境:
|
|
|
|
|
|
|
|
|
|
|
|
+ break;
|
|
|
|
+ case HarProcessType.采集方法:
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ break;
|
|
|
|
+ case HarProcessType.加工方法:
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ break;
|
|
|
|
+ case HarProcessType.Count:
|
|
|
|
+ break;
|
|
|
|
+ default:
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
- private void UpdateTog()
|
|
|
|
- {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ }, (int)HarProcessType.Count);
|
|
|
|
+
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
-public class HarvestingProcessModel : Model
|
|
+public class TypeOfCourseModel : Model
|
|
{
|
|
{
|
|
|
|
+ public enum HarProcessType
|
|
|
|
+ {
|
|
|
|
+ 基础信息,
|
|
|
|
+ 产地与生境,
|
|
|
|
+ 采集方法,
|
|
|
|
+ 加工方法,
|
|
|
|
+ Count,
|
|
|
|
+ }
|
|
|
|
+
|
|
public override void InitProperty()
|
|
public override void InitProperty()
|
|
{
|
|
{
|
|
|
|
|
|
@@ -56,7 +93,7 @@ public class HarvestingProcessModel : Model
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-public class HarvestingProcessView : View
|
|
+public class TypeOfCourseView : View
|
|
{
|
|
{
|
|
public TMPro.TMP_InputField ifMedcineSeach;
|
|
public TMPro.TMP_InputField ifMedcineSeach;
|
|
public ScrollRect svSeach;
|
|
public ScrollRect svSeach;
|
|
@@ -67,6 +104,7 @@ public class HarvestingProcessView : View
|
|
public Button btnEnterClass;
|
|
public Button btnEnterClass;
|
|
public Button btnBack;
|
|
public Button btnBack;
|
|
|
|
|
|
|
|
+ public ToggleHelp toggleHelp;
|
|
|
|
|
|
public override void LoadInit()
|
|
public override void LoadInit()
|
|
{
|
|
{
|
|
@@ -81,7 +119,7 @@ public class HarvestingProcessView : View
|
|
txtTitle = rc.GetComponent<TextMeshProUGUI>("txtTitle");
|
|
txtTitle = rc.GetComponent<TextMeshProUGUI>("txtTitle");
|
|
btnEnterClass = rc.GetComponent<Button>("btnEnterClass");
|
|
btnEnterClass = rc.GetComponent<Button>("btnEnterClass");
|
|
btnBack = rc.GetComponent<Button>("btnBack");
|
|
btnBack = rc.GetComponent<Button>("btnBack");
|
|
-
|
|
+ toggleHelp = rc.GetComponent<ToggleHelp>("cttTog");
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|