微信注册样式问题
This commit is contained in:
parent
3c540dece4
commit
05f6c8a08b
@ -398,10 +398,16 @@ public class LoginController : BaseScene
|
||||
{
|
||||
if (pageNums == 5)
|
||||
{
|
||||
#if UNITY_ANDROID || UNITY_IOS
|
||||
MobileAni(false);
|
||||
#endif
|
||||
StartScrollPanel(3);
|
||||
}
|
||||
else if (pageNums == 4)
|
||||
{
|
||||
#if UNITY_ANDROID || UNITY_IOS
|
||||
MobileAni(false);
|
||||
#endif
|
||||
StartScrollPanel(2);
|
||||
}
|
||||
else
|
||||
@ -675,6 +681,7 @@ public class LoginController : BaseScene
|
||||
//wxLogin3.Find("NickName").GetComponent<Text>().text = wxInfoJson.Value<string>("nickname");
|
||||
signContainer.gameObject.SetActive(false);
|
||||
pageNums = 3;
|
||||
MobileAni(true);
|
||||
//this.goSign();
|
||||
StartScrollPanel(2);
|
||||
}
|
||||
@ -713,10 +720,17 @@ public class LoginController : BaseScene
|
||||
//Timer t = new Ti
|
||||
if (r.result)
|
||||
{
|
||||
if (r.data.Value<bool>("isExist") && pageNums == 5)
|
||||
if (pageNums == 5)
|
||||
{
|
||||
if (r.data.Value<bool>("isExist"))
|
||||
{
|
||||
HidePassword();
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowPassword(true);
|
||||
}
|
||||
}
|
||||
time = 60;
|
||||
btnText.text = $"Again({time})";
|
||||
System.Timers.Timer timer = new System.Timers.Timer();
|
||||
@ -826,6 +840,7 @@ public class LoginController : BaseScene
|
||||
{
|
||||
var u = JObject.FromObject(r.data).ToObject<UserResultModel>();
|
||||
RefreshWx3(u, 1);
|
||||
MobileAni(true);
|
||||
StartScrollPanel(4);
|
||||
}
|
||||
else
|
||||
@ -872,6 +887,27 @@ public class LoginController : BaseScene
|
||||
userResult = data;
|
||||
App.CurrentUser = data;
|
||||
}
|
||||
#if UNITY_ANDROID || UNITY_IOS
|
||||
void MobileAni(bool flag)
|
||||
{
|
||||
if (flag)
|
||||
{
|
||||
//顯示pf
|
||||
imagedf.GetComponent<Image>().DOFade(1, 0.3f);
|
||||
imagexf.GetComponent<Image>().DOFade(1, 0.3f);
|
||||
LoginBg.GetComponent<RectTransform>().DOSizeDelta(new Vector2(354, 300), 0.3f);
|
||||
LoginBg.GetComponent<RectTransform>().DOLocalMoveY(-35, 0.3f);
|
||||
}
|
||||
else
|
||||
{
|
||||
imagedf.GetComponent<Image>().DOFade(0, .3f);
|
||||
imagexf.GetComponent<Image>().DOFade(0, .3f);
|
||||
LoginBg.GetComponent<RectTransform>().DOSizeDelta(new Vector2(354, 370), .3f);
|
||||
LoginBg.GetComponent<RectTransform>().DOLocalMoveY(0, .3f);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
/// <summary>
|
||||
/// 去最后一页准备进入主场景
|
||||
/// </summary>
|
||||
@ -879,10 +915,7 @@ public class LoginController : BaseScene
|
||||
{
|
||||
if (!UpdateInfo()) return;
|
||||
#if UNITY_ANDROID || UNITY_IOS
|
||||
imagedf.GetComponent<Image>().DOFade(1, 0.3f);
|
||||
imagexf.GetComponent<Image>().DOFade(1, 0.3f);
|
||||
LoginBg.GetComponent<RectTransform>().DOSizeDelta(new Vector2(354, 300), 0.3f);
|
||||
LoginBg.GetComponent<RectTransform>().DOLocalMoveY(-35, 0.3f);
|
||||
MobileAni(true);
|
||||
#endif
|
||||
if (pageNums == 5)
|
||||
{
|
||||
@ -969,10 +1002,7 @@ public class LoginController : BaseScene
|
||||
private void goLoginReturn2()
|
||||
{
|
||||
#if UNITY_ANDROID || UNITY_IOS
|
||||
imagedf.GetComponent<Image>().DOFade(1, .3f);
|
||||
imagexf.GetComponent<Image>().DOFade(1, .3f);
|
||||
LoginBg.GetComponent<RectTransform>().DOSizeDelta(new Vector2(354, 300), .3f);
|
||||
LoginBg.GetComponent<RectTransform>().DOLocalMoveY(-35, .3f);
|
||||
MobileAni(true);
|
||||
#endif
|
||||
if (wxLogin2.gameObject.activeSelf) wxLogin2.gameObject.SetActive(false);
|
||||
//if (wxLogin3.gameObject.activeSelf) wxLogin3.gameObject.SetActive(false);
|
||||
@ -1083,9 +1113,12 @@ public class LoginController : BaseScene
|
||||
}
|
||||
|
||||
|
||||
void ShowPassword()
|
||||
void ShowPassword(bool ignoreEmail = false)
|
||||
{
|
||||
if (!ignoreEmail)
|
||||
{
|
||||
signForm.email.text = "";
|
||||
}
|
||||
signForm.password.text = "";
|
||||
signForm.captcha.text = "";
|
||||
signForm.cpassword.text = "";
|
||||
@ -1107,10 +1140,7 @@ public class LoginController : BaseScene
|
||||
void goSign(bool isAccount = true, int type = 0)
|
||||
{
|
||||
#if UNITY_ANDROID || UNITY_IOS
|
||||
imagedf.GetComponent<Image>().DOFade(0, .3f);
|
||||
imagexf.GetComponent<Image>().DOFade(0, .3f);
|
||||
LoginBg.GetComponent<RectTransform>().DOSizeDelta(new Vector2(354, 370), .3f);
|
||||
LoginBg.GetComponent<RectTransform>().DOLocalMoveY(0, .3f);
|
||||
MobileAni(false);
|
||||
#endif
|
||||
if (!isAccount)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user