修改细节
This commit is contained in:
1 parent
aaef57c0b0
commit
52fd841486
7 files changed
+19
-14
No files matched your search
@@ -117,6 +117,7 @@ public class FeedbackController : PFUIPanel
|
||||
else
|
||||
{
|
||||
Utils.showToast(gameObject, "Submitted", type: 1);//已提交
|
||||
Close();
|
||||
}
|
||||
}
|
||||
// Update is called once per frame
|
||||
|
||||
@@ -61,9 +61,9 @@ public class UserInfoController : PFUIPanel
|
||||
{
|
||||
base.Show();
|
||||
Load();
|
||||
if (summaryPanel != null)
|
||||
if (summaryPanel != null)
|
||||
{
|
||||
summaryPanel.Find("Panel").Find("RideResultList").GetComponent<ResultListController>().HideError();
|
||||
summaryPanel.Find("Panel").Find("RideResultList").GetComponent<ResultListController>().Load();
|
||||
}
|
||||
}
|
||||
void Load()
|
||||
|
||||
@@ -79,12 +79,16 @@ public class ResultListController : MonoBehaviour
|
||||
GetList(1);
|
||||
}
|
||||
|
||||
public void HideError()
|
||||
public void Load()
|
||||
{
|
||||
if (scroll!=null)
|
||||
if (contents != null && contents.Length == 2)
|
||||
{
|
||||
scroll.transform.Find("Error").gameObject.SetActive(false);
|
||||
Refresh(contents[scrollIndex]);
|
||||
}
|
||||
//if (scroll!=null)
|
||||
//{
|
||||
// scroll.transform.Find("Error").gameObject.SetActive(false);
|
||||
//}
|
||||
}
|
||||
|
||||
private void OnEndDrag(BaseEventData e)
|
||||
@@ -143,7 +147,10 @@ public class ResultListController : MonoBehaviour
|
||||
else
|
||||
{
|
||||
//contents[index];
|
||||
scroll.transform.Find("Error").gameObject.SetActive(true);
|
||||
if (!sindex.HasValue ||(sindex.HasValue && sindex.Value == scrollIndex))
|
||||
{
|
||||
scroll.transform.Find("Error").gameObject.SetActive(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user