线路列表排序增加near下拉项
This commit is contained in:
parent
a6f673f805
commit
dd669d74f5
@ -1502,7 +1502,7 @@ MonoBehaviour:
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: bf6cef625b150984384b02d2e94b91ff, type: 3}
|
||||
m_Sprite: {fileID: 21300000, guid: 998c9c31435c99f498b189bcc65c5650, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
|
||||
@ -60,7 +60,7 @@ namespace Assets.Scripts.Apis
|
||||
public Task<JsonResult<List<MapRoute>>> GetList(int pageIndex, int pageSize, string name, string distance="", string hands="", bool is3D=false, string sort="", string sortDire = "", bool isFav = false)
|
||||
{
|
||||
string lngLat = "";
|
||||
if (string.IsNullOrEmpty(name) && string.IsNullOrEmpty(distance) && string.IsNullOrEmpty(hands) && !is3D && sort.Equals("Hot") && sortDire.Equals("desc") && !isFav)
|
||||
if (string.IsNullOrEmpty(name) && string.IsNullOrEmpty(distance) && string.IsNullOrEmpty(hands) && !is3D && sort.Equals("Near") && !isFav)
|
||||
{
|
||||
lngLat = $"{App.longitude},{App.latitude}";
|
||||
}
|
||||
|
||||
@ -40,7 +40,7 @@ namespace Assets.Scripts.UI.Prefab.MapList
|
||||
{"HC","750-99999" },
|
||||
};
|
||||
public static List<Dropdown.OptionData> sorts = new string[] {
|
||||
"Trend","Name","Distance","Difficulty","Time"
|
||||
"Near", "Trend","Name","Distance","Difficulty","Time"
|
||||
}.Select(x => new Dropdown.OptionData(x)).ToList();
|
||||
public static Dictionary<string, string> diffDisplayDict = new Dictionary<string, string>()
|
||||
{
|
||||
|
||||
@ -43,6 +43,8 @@ public class MapListController : PFUIPanel
|
||||
private bool isEnd = false;
|
||||
protected override void Start()
|
||||
{
|
||||
sort = "Near";
|
||||
sortDire = "asc";
|
||||
//if (hardSelector != null)
|
||||
//{
|
||||
// hardSelector.onValueChanged.AddListener(ChangeHard);
|
||||
@ -265,7 +267,7 @@ public class MapListController : PFUIPanel
|
||||
string distance = "";
|
||||
List<string> hands = new List<string>();
|
||||
bool is3d = false,isFav = false;
|
||||
string sort = "Hot",sortDire = "desc";
|
||||
string sort = "",sortDire = "";
|
||||
//string name = "";
|
||||
//string name = "";
|
||||
async void GetList()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user