伴侣骑行
This commit is contained in:
1 parent
34cde86a28
commit
7744eec847
42 files changed
+18737
-13497
No files matched your search
@@ -87,5 +87,11 @@ namespace Assets.Scripts.Apis
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonResult<MapRouteRankingList> GetRouteRanking(int id,string type, int pageIndex,int pageSize,string name)
|
||||
{
|
||||
var url = $"Map/v1/GetRouteRanking?pageIndex={ pageIndex }&pageSize={ pageSize }&name={ name }&id={ id }&type={ type }&filterSelf={ true }";
|
||||
|
||||
return Get<JsonResult<MapRouteRankingList>>(url);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Assets.Scripts.Apis.Models
|
||||
{
|
||||
public class MapRouteRanking
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WxHeadImg { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string TotalTime { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UserId { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int RouteId { get; set; }
|
||||
/// <summary>
|
||||
/// 晴天
|
||||
/// </summary>
|
||||
public string NickName { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public double? AveragePower { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public double? AverageHeartRate { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ContinueMark { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public double WeightKg { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int? AntModelId { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string DeviceName { get; set; }
|
||||
/// <summary>
|
||||
/// 骑行台
|
||||
/// </summary>
|
||||
public string DeviceType { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int RowNumber { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public bool MySelf { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public double TripDistance { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public bool IsDNF { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public double Progress { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f577b928fb29d2a40a05b1c82e391c9a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Assets.Scripts.Apis.Models
|
||||
{
|
||||
public class MapRouteRankingList
|
||||
{
|
||||
public List<MapRouteRanking> list { get; set; }
|
||||
public int TotalPages { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 44c26ae622e95fd4a86dc6f543aaa711
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,4 +1,5 @@
|
||||
using Assets.Scripts.Apis.Models;
|
||||
using Assets.Scenes.Ride.Scripts.Model;
|
||||
using Assets.Scripts.Apis.Models;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
@@ -14,4 +15,5 @@ public static class App
|
||||
public static string WxAppId = "wx9e8ca734e024f084";
|
||||
public static string WxAppSecret = "906abafb2a18bc7a66ccfa5550f859b6";
|
||||
public static IDictionary<string,Texture> TextureCache = new Dictionary<string, Texture>();
|
||||
public static SelectParamModel selectParam;
|
||||
}
|
||||
@@ -198,6 +198,51 @@ public class UIManager : MonoBehaviour
|
||||
panelToShow.transform.localScale = parent.transform.localScale;
|
||||
}
|
||||
|
||||
public static void ShowCustom(PFUIPanel panelToShow, GameObject parent = null, bool modal = false)
|
||||
{
|
||||
if (UIManager.Instance == null || panelToShow == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (modal)
|
||||
{
|
||||
parent = UIManager.Instance.ModalsPanel.gameObject;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (prePanel != null)
|
||||
{
|
||||
prePanel.Close();
|
||||
}
|
||||
prePanel = panelToShow;
|
||||
}
|
||||
foreach (Transform child in parent.transform)
|
||||
{
|
||||
//GameObject.Destroy(child);
|
||||
//GameObject.Destroy(child.gameObject);
|
||||
child.gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
//var panel = UIManager.Instance.MainPanel; //UIManager.Instance.MainCanvasTransform.transform.Find("Panel");
|
||||
|
||||
//panel.gameObject.AddComponent<GameObject>(panelToShow.gameObject);
|
||||
//panelToShow.transform.SetParent(parent.transform);
|
||||
panelToShow.transform.parent = parent.transform;
|
||||
//panelToShow.gameObject.SetActive(true);
|
||||
panelToShow.Show();
|
||||
//panelToShow.transform.position = new Vector3(0, 0, 0);
|
||||
panelToShow.transform.localPosition = new Vector3(0, 0, 0);
|
||||
//panelToShow.transform.localRotation = new Quaternion(0, 0, 0, 0);
|
||||
|
||||
//if (modal == false)
|
||||
{
|
||||
panelToShow.transform.GetComponent<RectTransform>().offsetMin = new Vector2(0, 0);
|
||||
panelToShow.transform.GetComponent<RectTransform>().offsetMax = new Vector2(0, 0);
|
||||
}
|
||||
panelToShow.transform.localScale = parent.transform.localScale;
|
||||
}
|
||||
|
||||
|
||||
//public static void ShowHomePanel()
|
||||
//{
|
||||
@@ -213,10 +258,6 @@ public class UIManager : MonoBehaviour
|
||||
{
|
||||
UIManager.Show(UIManager.Instance.HomePanel, UIManager.Instance.MainPanel);
|
||||
}
|
||||
public static void ShowCyclingController()
|
||||
{
|
||||
UIManager.Show(UIManager.Instance.CyclingController, UIManager.Instance.MainPanel);
|
||||
}
|
||||
|
||||
public static void ShowDevicePanel()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user