Merge remote-tracking branch 'origin/dev_nonearth' into dev_cyp

This commit is contained in:
Caiyanpeng committed 2021-12-29 17:06:04 +08:00
commit 95d845ac0f
3 files changed
+25 -8

No files matched your search

@@ -104,6 +104,7 @@ namespace Assets.Scenes.Ride.Scripts
});
#endif
}
int RankingPageSize = 8;
protected override void InitGameObjectData()
{
var route = cyclingController.mapRoute;
@@ -137,10 +138,10 @@ namespace Assets.Scenes.Ride.Scripts
DrawMapRouteAsync(route.Id);
AddProcess(10);
//查询排行榜
var list = mapApi.GetRouteRanking(route.Id, "1", 0, 10, "");
var list = mapApi.GetRouteRanking(route.Id, "1", 0, 10000, "");
if (list.result)
{
if (list.data.list.Count > 10)
if (list.data.list.Count > RankingPageSize)
{
var ViewAll = panel.transform.Find("ViewAll").gameObject;
ViewAll.SetActive(true);
@@ -172,7 +173,7 @@ namespace Assets.Scenes.Ride.Scripts
foreach (var item in list)
{
index++;
if (index > 10)
if (index > RankingPageSize)
break;
GameObject newObj = (GameObject)Instantiate(prefab, parent);
var selectPlayerItemScript = newObj.GetComponent<RankingItemScript>();