修改细节

This commit is contained in:
Caiyanpeng committed 2021-07-27 18:36:49 +08:00
1 parent 164db7c013
commit ca938ab6f5
16 files changed
+1608 -51

No files matched your search

+12 -18
View File
@@ -1,6 +1,7 @@
using Assets.Scripts;
using Assets.Scripts.Apis.Models;
using Assets.Scripts.UI.Prefab.Race;
using DG.Tweening;
using System;
using System.Collections;
using System.Collections.Generic;
@@ -21,15 +22,14 @@ public class RaceListScript : RaceScript
private List<string> statusOptions = new List<string>();
bool isReserve = false;
int order = 1;
public override void Show()
{
base.Show();
handleAvatar();
}
//筛选条件
async void Start()
void Start()
{
#if UNITY_EDITOR
if (App.CurrentUser == null) //App.CurrentUser == null
{
await Login();
}
#endif
scroll = transform.Find("ListContainer/List").gameObject;
if (scroll != null)
{
@@ -108,18 +108,13 @@ public class RaceListScript : RaceScript
{
UIManager.AddEvent(btnReturn.gameObject, EventTriggerType.PointerClick, (b) =>
{
UIManager.ShowRaceHomePanel(true);
});
}
avatar = transform.Find("Avatar");
if (avatar != null)
{
Utils.DisplayImage(avatar.GetComponent<RawImage>(), App.CurrentUser.WxHeadImg, true);
UIManager.AddEvent(avatar.gameObject, UnityEngine.EventSystems.EventTriggerType.PointerClick, b =>
{
UIManager.ShowUserInfoPanel();
transform.GetComponent<CanvasGroup>().DOFade(0, 0.5f).onComplete = () =>
{
UIManager.ShowRaceHomePanel(true);
};
});
}
handleAvatar();
Refresh();
}
@@ -134,7 +129,6 @@ public class RaceListScript : RaceScript
{
if (Input.GetAxis("Mouse ScrollWheel") != 0)
{
Debug.Log(scroll.GetComponent<ScrollRect>().verticalNormalizedPosition);
if (scroll.GetComponent<ScrollRect>().verticalNormalizedPosition <= 0 ||
scroll.GetComponent<ScrollRect>().verticalNormalizedPosition >= (pageIndex == 0 ? 1.2 : 1))
{