Merge branch 'dev_lishuo' of https://gitlab.com/rhino4biz/powerfun/powerfun-unity into dev_lishuo

This commit is contained in:
lishuo 2021-08-19 14:10:11 +08:00
commit 688c12b28e
2 changed files with 12 additions and 3 deletions

View File

@ -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("Near") && !isFav)
if (sort.Equals("Near"))
{
lngLat = $"{App.longitude},{App.latitude}";
}

View File

@ -181,8 +181,17 @@ public class MapListController : PFUIPanel
sort = "Hot";
}
var image = sortDir.Find("Image").GetComponent<Image>();
image.sprite = Resources.Load<Sprite>("Images/DOWN");
sortDire = "desc";
if (sort == "Near")
{
image.sprite = Resources.Load<Sprite>("Images/UP");
sortDire = "asc";
}
else
{
image.sprite = Resources.Load<Sprite>("Images/DOWN");
sortDire = "desc";
}
Refresh();
});
}