修改bug
This commit is contained in:
1 parent
2d36d5df39
commit
0517382612
12 files changed
+32
-55
No files matched your search
@@ -137,7 +137,7 @@ public class BigMapController : PFUIPanel
|
||||
//headImage.material = material;
|
||||
SetRounded(headImage.transform, rect.height);
|
||||
|
||||
Utils.DisplayImage(headImage, App.CurrentUser.WxHeadImg);
|
||||
Utils.DisplayHead(headImage, App.CurrentUser.WxHeadImg);
|
||||
|
||||
UIManager.AddEvent(headImage.gameObject, EventTriggerType.PointerClick, (e) =>
|
||||
{
|
||||
|
||||
@@ -185,14 +185,7 @@ public class EditUserController : PFUIPanel
|
||||
|
||||
//Utils.DisplayImage(StartCoroutine, mHeadImage, currentUser.WxHeadImg);
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(currentUser.WxHeadImg))
|
||||
{
|
||||
Utils.DisplayImage(mHeadImage, currentUser.WxHeadImg);
|
||||
}
|
||||
else
|
||||
{
|
||||
mHeadImage.texture = Resources.Load<Texture>("Images/icon-1024");
|
||||
}
|
||||
Utils.DisplayHead(mHeadImage, currentUser.WxHeadImg);
|
||||
if (currentUser.Sex == 1)
|
||||
{
|
||||
mSexDropdown.SelectIndex(0);
|
||||
|
||||
@@ -149,15 +149,8 @@ public class HomeController : PFUIPanel
|
||||
{
|
||||
userInfo.Find("SexIcon").GetComponent<Image>().sprite = Resources.Load<Sprite>("Images/man");
|
||||
}
|
||||
if (!string.IsNullOrEmpty(App.CurrentUser.WxHeadImg))
|
||||
{
|
||||
Utils.DisplayImage(userInfo.Find("Avatar").GetComponent<RawImage>(), App.CurrentUser.WxHeadImg);
|
||||
}
|
||||
else
|
||||
{
|
||||
userInfo.Find("Avatar").GetComponent<RawImage>().texture = Resources.Load<Texture>("Images/icon-1024");
|
||||
}
|
||||
|
||||
Utils.DisplayHead(userInfo.Find("Avatar").GetComponent<RawImage>(), App.CurrentUser.WxHeadImg);
|
||||
|
||||
userInfo.Find("Country").GetComponent<RawImage>().texture = UIManager.Instance.loginRegOptions.GetCountryImageByName(App.CurrentUser.Country);
|
||||
userInfo.Find("CaloriesContainer").Find("CaloriesValue").GetComponent<Text>().text = double.Parse(summary.Kcal).ToString("0") +" KCAL";
|
||||
userInfo.Find("KMContainer").Find("KMValue").GetComponent<Text>().text = summary.TotalDistance.ToString("0") +" KM";
|
||||
|
||||
@@ -223,7 +223,7 @@ public class MapListController : PFUIPanel
|
||||
headImage.material = material;
|
||||
//if (App.FromLogin)
|
||||
//{
|
||||
Utils.DisplayImage(headImage, App.CurrentUser.WxHeadImg);
|
||||
Utils.DisplayHead(headImage, App.CurrentUser.WxHeadImg);
|
||||
//}
|
||||
|
||||
|
||||
|
||||
@@ -78,15 +78,8 @@ public class UserInfoController : PFUIPanel
|
||||
{
|
||||
var summary = r.data;
|
||||
var user = App.CurrentUser;
|
||||
if (!string.IsNullOrEmpty(user.WxHeadImg))
|
||||
{
|
||||
Utils.DisplayImage(infoPanel.Find("Avatar").GetComponent<RawImage>(), user.WxHeadImg);
|
||||
}
|
||||
else
|
||||
{
|
||||
infoPanel.Find("Avatar").GetComponent<RawImage>().texture = Resources.Load<Texture>("Images/icon-1024");
|
||||
}
|
||||
|
||||
Utils.DisplayHead(infoPanel.Find("Avatar").GetComponent<RawImage>(), user.WxHeadImg);
|
||||
|
||||
infoPanel.Find("Status").Find("Country").GetComponent<RawImage>().texture
|
||||
= UIManager.Instance.loginRegOptions.GetCountryImageByName(user.Country);
|
||||
infoPanel.Find("Status").Find("Wx").gameObject.SetActive(
|
||||
|
||||
Reference in new issue
Block a user