修改细节
This commit is contained in:
1 parent
8eb201d0ee
commit
7b4fbc513e
20 files changed
+4736
-4575
No files matched your search
@@ -26,7 +26,7 @@ namespace Assets.Scripts.Apis
|
||||
}
|
||||
public async Task<Stream> GetMapImage(IpToGeoModel locationInfo)
|
||||
{
|
||||
return await GetThirdPartStreamAsync($"https://api.mapbox.com/styles/v1/juzetest/ckmkdjwsa1nvt17nr1ps4fqgs/static/{locationInfo.longitude},{locationInfo.latitude},12.14,0/1280x1280?access_token=pk.eyJ1IjoianV6ZXRlc3QiLCJhIjoiY2ttazhsbnpiMGVrdjJucGhyNnh6eXcxYSJ9.6zj2U9eFCNJRMljNlMxjVg");
|
||||
return await GetThirdPartStreamAsync($"https://api.mapbox.com/styles/v1/juzetest/ckmkdjwsa1nvt17nr1ps4fqgs/static/{locationInfo.longitude},{locationInfo.latitude},12,0/1280x1280?access_token=pk.eyJ1IjoianV6ZXRlc3QiLCJhIjoiY2ttazhsbnpiMGVrdjJucGhyNnh6eXcxYSJ9.6zj2U9eFCNJRMljNlMxjVg");
|
||||
//pk.eyJ1IjoiYW5keXNqdCIsImEiOiJja2ZhajE5OGwwamRiMnltcW96bHk0ZWFuIn0.GvKanc6UveWSvIjS9HfBPA
|
||||
//pk.eyJ1IjoiYW5keXNqdCIsImEiOiJja2ZhajE5OGwwamRiMnltcW96bHk0ZWFuIn0.GvKanc6UveWSvIjS9HfBPA
|
||||
}
|
||||
|
||||
@@ -353,18 +353,28 @@ public class LoginController : MonoBehaviour
|
||||
{
|
||||
UIManager.AddEvent(wxLogin3.Find("return").gameObject, EventTriggerType.PointerClick, (b) =>
|
||||
{
|
||||
StartScrollPanel(1);
|
||||
//if (signContainer.gameObject.activeSelf)
|
||||
//{
|
||||
// StartScrollPanel(3);
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// signContainer.gameObject.SetActive(true);
|
||||
// pageNums = 4;
|
||||
// //wxLogin3.gameObject.SetActive(false);
|
||||
// StartScrollPanel(1);
|
||||
//}
|
||||
if (signContainer.gameObject.activeSelf)
|
||||
{
|
||||
if (pageNums == 5)
|
||||
{
|
||||
StartScrollPanel(3);
|
||||
}
|
||||
else if (pageNums == 4)
|
||||
{
|
||||
StartScrollPanel(2);
|
||||
}
|
||||
else
|
||||
{
|
||||
StartScrollPanel(1);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
signContainer.gameObject.SetActive(true);
|
||||
pageNums = 4;
|
||||
//wxLogin3.gameObject.SetActive(false);
|
||||
StartScrollPanel(1);
|
||||
}
|
||||
});
|
||||
UIManager.AddEvent(wxLogin3.Find("rememberButton").gameObject, EventTriggerType.PointerClick, (b) =>
|
||||
{
|
||||
@@ -500,6 +510,7 @@ public class LoginController : MonoBehaviour
|
||||
|
||||
document.getElementsByClassName('qrcode')[0].style.marginTop = 0;
|
||||
document.getElementsByClassName('title')[0].style.display = 'none';
|
||||
document.getElementById('wx_default_tip').childNodes[3].innerHTML = `""PowerFun""`;
|
||||
document.body.style.background = '#272732';
|
||||
document.body.style.overflow = 'hidden';
|
||||
document.body.style.transformOrigin = 'top left';
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace Assets.Scripts.UI.Prefab.MapList
|
||||
{"HC","750-99999" },
|
||||
};
|
||||
public static List<Dropdown.OptionData> sorts = new string[] {
|
||||
"Hot","Name","Distance","Difficulty"//,"Times"
|
||||
"Trend","Name","Distance","Difficulty"//,"Times"
|
||||
}.Select(x => new Dropdown.OptionData(x)).ToList();
|
||||
public static Dictionary<string, string> diffDisplayDict = new Dictionary<string, string>()
|
||||
{
|
||||
|
||||
@@ -13,6 +13,6 @@ public class RotateBg : MonoBehaviour
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
transform.Rotate(new Vector3(0,0,-Time.deltaTime * 1/4));
|
||||
transform.Rotate(new Vector3(0,0,-Time.deltaTime * 1/6));
|
||||
}
|
||||
}
|
||||
@@ -96,7 +96,7 @@ public class MapListController : PFUIPanel
|
||||
{
|
||||
ColorUtility.TryParseHtmlString("#6E6E7D", out Color c);
|
||||
image.color = c1;
|
||||
text.color = c;
|
||||
text.color = new Color(1, 1, 1, 1);
|
||||
hands.Remove(MapFilterOptions.diffDict[text.text]);
|
||||
}
|
||||
scroll.GetComponent<ScrollRect>().verticalNormalizedPosition = 1;
|
||||
@@ -174,6 +174,10 @@ public class MapListController : PFUIPanel
|
||||
drop.onValueChanged.AddListener((int index)=>
|
||||
{
|
||||
sort = drop.options[index].text;
|
||||
if (sort == "Trend")
|
||||
{
|
||||
sort = "Hot";
|
||||
}
|
||||
var image = sortDir.Find("Image").GetComponent<Image>();
|
||||
image.sprite = Resources.Load<Sprite>("Images/DOWN");
|
||||
sortDire = "desc";
|
||||
|
||||
@@ -61,6 +61,10 @@ public class UserInfoController : PFUIPanel
|
||||
{
|
||||
base.Show();
|
||||
Load();
|
||||
if (summaryPanel != null)
|
||||
{
|
||||
summaryPanel.Find("Panel").Find("RideResultList").GetComponent<ResultListController>().HideError();
|
||||
}
|
||||
}
|
||||
void Load()
|
||||
{
|
||||
|
||||
@@ -79,6 +79,14 @@ public class ResultListController : MonoBehaviour
|
||||
GetList(1);
|
||||
}
|
||||
|
||||
public void HideError()
|
||||
{
|
||||
if (scroll!=null)
|
||||
{
|
||||
scroll.transform.Find("Error").gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
private void OnEndDrag(BaseEventData e)
|
||||
{
|
||||
ScrollRect scrollrect = null;
|
||||
@@ -102,7 +110,6 @@ public class ResultListController : MonoBehaviour
|
||||
Refresh(contents[scrollIndex]);
|
||||
}
|
||||
}
|
||||
|
||||
private void Refresh(Transform content)
|
||||
{
|
||||
content.transform.DestroyChildren();
|
||||
|
||||
Reference in new issue
Block a user