赛事功能完善

创建比赛按钮;loading页面more按钮等
This commit is contained in:
lishuo committed 2021-07-23 09:04:56 +08:00
1 parent eed2d13624
commit e76b5c443f
55 files changed
+7805 -3376

No files matched your search

+11 -2
View File
@@ -73,13 +73,22 @@ namespace Assets.Scripts.Apis
};
}
//报名比赛
public async Task<JsonResult> ApplyMapCompetition(int id)
public JsonResult ApplyMapCompetition(int id)
{
var param = new
{
id = id,
};
return await PostAsync<JsonResult>($"/MapCompetition/ApplyMapCompetition", param);
return Post<JsonResult>($"/MapCompetition/ApplyMapCompetition", param);
}
//取消报名比赛
public JsonResult CancelMapCompetition(int id)
{
var param = new
{
id = id,
};
return Post<JsonResult>($"/MapCompetition/CancelMapCompetition", param);
}
}
}
@@ -30,5 +30,6 @@
public string CompleteTime { get; set; }
public string Gap { get; set; }
public string WxHeadImg { get; set; }
}
}
@@ -9,6 +9,7 @@ namespace Assets.Scripts.Apis.Models
public string Area { get; set; }
public string CompetitionType { get; set; }
public string CoverImage { get; set; }
public string CompetitionPreviewUrl { get; set; }
public string CreateTime { get; set; }
public int CreateUser { get; set; }
public string Dec { get; set; }
@@ -21,6 +22,7 @@ namespace Assets.Scripts.Apis.Models
public int pageCount { get; set; }
public int RouteId { get; set; }
public string Sponsor { get; set; }
public string SponsorCoverage { get; set; }
public string StartApplyTime { get; set; }
public string StartApplyTimeVlaue { get; set; }
public DateTime StartTime { get; set; }
@@ -56,6 +58,10 @@ namespace Assets.Scripts.Apis.Models
public int MaxMembers { get; set; }
//报名参赛的选手
public List<CompetitionPlayer> UserList {get;set; }
//简版赛事详情
public string ShortPreview { get; set; }
//活动banner
public string BannerPreview { get; set; }
}
public class CompetitionPlayer
@@ -72,5 +72,6 @@ namespace Assets.Scripts.Apis.Models
public DateTime LastUpdateMaxHeartRate { get; set; }
public DateTime LastUpdateWheelStraight { get; set; }
public DateTime UpdateTime { get; set; }
public string WebHost { get; set; }//创建比赛url
}
}