推荐api&骑行结果日期格式已经跳转到记录
This commit is contained in:
1 parent
14e9e8e23b
commit
16a89b07b8
6 files changed
+431
-374
No files matched your search
@@ -216,6 +216,11 @@ namespace Assets.Scripts.Apis
|
||||
var result = await GetAsync<JsonResult<List<MapRouteAreaItem>>>($"MapRouteArea/GetRecommendAreaList");
|
||||
return result;
|
||||
}
|
||||
public async Task<JsonResult<List<Recommand>>> GetRecommendList(int pageIndex=0, int pageSize=10000)
|
||||
{
|
||||
var result = await GetAsync<JsonResult<List<Recommand>>>($"Recommand/GetList?pageIndex={pageIndex}&pageSize={pageSize}");
|
||||
return result;
|
||||
}
|
||||
public async Task<JsonResult<List<MapRouteAreaItem>>> GetMemberMapRouteAreaList(int pageIndex, int pageSize)
|
||||
{
|
||||
var result = await GetAsync<JsonResult<List<MapRouteAreaItem>>>($"MapRouteArea/GetMemberMapRouteAreaList?pageIndex={pageIndex}&pageSize={pageSize}");
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Assets.Scripts.Apis.Models
|
||||
{
|
||||
public class Recommand
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int RouteId { get; set; }
|
||||
public int AreaId { get; set; }
|
||||
/// <summary>
|
||||
/// Type:0线路 1集合 2活动
|
||||
/// </summary>
|
||||
public int Type { get; set; }
|
||||
/// <summary>
|
||||
/// 标题
|
||||
/// </summary>
|
||||
public string Title { get; set; }
|
||||
/// <summary>
|
||||
/// banner
|
||||
/// </summary>
|
||||
public string CoverImage { get; set; }
|
||||
/// <summary>
|
||||
/// 活动链接
|
||||
/// </summary>
|
||||
public string Url { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 027803d92c272e6449a187b23727986c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -342,6 +342,9 @@ public class MainController : BaseScene
|
||||
if (App.MainSceneParam["Name"] == "UserInfoPanel")
|
||||
{
|
||||
UIManager.ShowUserInfoPanel();
|
||||
#if UNITY_ANDROID || UNITY_IOS
|
||||
UIManager.ShowResultListPanel();
|
||||
#endif
|
||||
}
|
||||
|
||||
if (App.MainSceneParam["Name"] == "RaceHomePanel")
|
||||
|
||||
@@ -133,8 +133,12 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
public void SetDataSource(RecorderDataModel record)
|
||||
{
|
||||
var route = record.CurrentRoute.RouteInstance;
|
||||
#if UNITY_ANDROID || UNITY_IOS
|
||||
//绑定路书信息
|
||||
date.text = record.StartTime.ToShortDateString();
|
||||
date.text = record.StartTime.ToString("yyyy-MM-dd");
|
||||
#else
|
||||
date.text = record.StartTime.ToShortDateString("yyyy-MM-dd");
|
||||
#endif
|
||||
time.text = record.StartTime.ToShortTimeString();
|
||||
level.text = route.Hard;
|
||||
mapName.text = route.Name;
|
||||
|
||||
Reference in new issue
Block a user