修改细节

This commit is contained in:
Caiyanpeng committed 2021-04-28 18:41:54 +08:00
1 parent 614d067d25
commit b15a4fe2c1
18 files changed
+740 -402

No files matched your search

+13 -5
View File
@@ -541,7 +541,7 @@ public class LoginController : MonoBehaviour
}
else
{
RefreshWx3(data.ToObject<UserResultModel>());
RefreshWx3(data.ToObject<UserResultModel>(),1);
wxLogin3.gameObject.SetActive(true);
//Utils.DisplayImage(StartCoroutine,
//wxLogin3.Find("Avatar").GetComponent<RawImage>(),
@@ -670,7 +670,7 @@ public class LoginController : MonoBehaviour
if (r != null && r.result)
{
var u = JObject.FromObject(r.data).ToObject<UserResultModel>();
RefreshWx3(u);
RefreshWx3(u, signType);
LoadInfo();
StartScrollSign(1);
}
@@ -697,7 +697,7 @@ public class LoginController : MonoBehaviour
if (r.result)
{
var u = JObject.FromObject(r.data).ToObject<UserResultModel>();
RefreshWx3(u);
RefreshWx3(u,1);
StartScrollPanel(4);
}
else
@@ -730,11 +730,19 @@ public class LoginController : MonoBehaviour
Utils.showToast(gameObject, r.errMsg);
}
}
void RefreshWx3(UserResultModel data)
void RefreshWx3(UserResultModel data,int type)
{
Utils.DisplayImage(StartCoroutine,
if (string.IsNullOrEmpty(data.WxHeadImg))
{
wxLogin3.Find("Avatar").GetComponent<RawImage>().texture = Resources.Load<Texture>("Images/icon-1024");
}
else
{
Utils.DisplayImage(StartCoroutine,
wxLogin3.Find("Avatar").GetComponent<RawImage>(),
data.WxHeadImg);
}
wxLogin3.Find("Wx").gameObject.SetActive(type == 1);
wxLogin3.Find("NickName").GetComponent<Text>().text = data.Nickname;
userResult = data;
}