loading页&结果页面&代码结构微调
This commit is contained in:
1 parent
eb1803c9ef
commit
eed2d13624
99 files changed
+14567
-7299
No files matched your search
@@ -142,16 +142,15 @@ namespace Assets.Scripts.Apis
|
||||
|
||||
public async Task<JsonResult<object>> GetEarthData(double lat, double lon)
|
||||
{
|
||||
//CultureInfo.InvariantCulture
|
||||
var result = await GetAsync<JsonResult<object>>($"Map/GetEarthData?lat={ lat.ToString(CultureInfo.InvariantCulture) }&lon={ lon.ToString(CultureInfo.InvariantCulture) }");
|
||||
|
||||
return result;
|
||||
}
|
||||
//获取Loading页面路书封面图
|
||||
public async Task<JsonResult<string>> GetMapLoadingCoverageUrl(int routeId)
|
||||
public async Task<JsonResult<string>> GetMapLoadingCoverageUrl(int routeId,int type=0)
|
||||
{
|
||||
//CultureInfo.InvariantCulture
|
||||
var result = await GetAsync<JsonResult<string>>($"Map/GetMapLoadingCoverage?id={ routeId }");
|
||||
var url = $"Map/GetLoadingCoverage?id={ routeId }&type={ type }";
|
||||
var result = await GetAsync<JsonResult<string>>(url);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Assets.Scripts.Apis.Models
|
||||
{
|
||||
@@ -51,5 +52,17 @@ namespace Assets.Scripts.Apis.Models
|
||||
public int CloseTime { get; set; }
|
||||
|
||||
public bool HasRecord { get; set; }
|
||||
//最大参赛人数
|
||||
public int MaxMembers { get; set; }
|
||||
//报名参赛的选手
|
||||
public List<CompetitionPlayer> UserList {get;set; }
|
||||
|
||||
}
|
||||
public class CompetitionPlayer
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string NickName { get; set; }
|
||||
public string WxHeadImg { get; set; }
|
||||
public string Sex { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user