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