细节调整
This commit is contained in:
1 parent
af63072f29
commit
51c6fd7236
15 files changed
+4239
-2031
No files matched your search
@@ -325,8 +325,8 @@ public class LoginController : MonoBehaviour
|
||||
{
|
||||
wxLogin2.Find("return").GetComponent<Button>().onClick.AddListener(() => {
|
||||
wxLogin2.gameObject.SetActive(false);
|
||||
wxLogin3.gameObject.SetActive(false);
|
||||
pageNums = 3;
|
||||
//wxLogin3.gameObject.SetActive(false);
|
||||
pageNums = 4;
|
||||
Canvas.ForceUpdateCanvases();
|
||||
StartScrollPanel(1);
|
||||
});
|
||||
@@ -347,7 +347,8 @@ public class LoginController : MonoBehaviour
|
||||
else
|
||||
{
|
||||
signContainer.gameObject.SetActive(true);
|
||||
wxLogin3.gameObject.SetActive(false);
|
||||
pageNums = 4;
|
||||
//wxLogin3.gameObject.SetActive(false);
|
||||
StartScrollPanel(1);
|
||||
}
|
||||
});
|
||||
@@ -588,14 +589,7 @@ public class LoginController : MonoBehaviour
|
||||
}
|
||||
if (r!=null && r.result)
|
||||
{
|
||||
if (signType == 1)
|
||||
{
|
||||
RefreshWx3(r.data);
|
||||
}
|
||||
else
|
||||
{
|
||||
userResult = r.data;
|
||||
}
|
||||
RefreshWx3(r.data);
|
||||
LoadInfo();
|
||||
StartScrollSign(1);
|
||||
}
|
||||
@@ -643,8 +637,7 @@ public class LoginController : MonoBehaviour
|
||||
}
|
||||
else
|
||||
{
|
||||
App.CurrentUser = userResult;
|
||||
SceneManager.LoadScene("MainScene");
|
||||
this.StartScrollPanel(3);
|
||||
}
|
||||
//throw new NotImplementedException();
|
||||
}
|
||||
@@ -691,7 +684,10 @@ public class LoginController : MonoBehaviour
|
||||
userResult.Unit = _units.SelectedIndex;
|
||||
userResult.Weight = int.Parse(_weight.Text);
|
||||
userResult.Height = int.Parse(_height.Text);
|
||||
userResult.Nickname = userResult.Phone;
|
||||
if (string.IsNullOrEmpty(userResult.Nickname))
|
||||
{
|
||||
userResult.Nickname = userResult.Phone;
|
||||
}
|
||||
var r = await ConfigHelper.userApi.Update(userResult);
|
||||
return r.result;
|
||||
//userResult.Birthday.v
|
||||
@@ -699,8 +695,8 @@ public class LoginController : MonoBehaviour
|
||||
private void goLoginReturn2()
|
||||
{
|
||||
if (wxLogin2.gameObject.activeSelf) wxLogin2.gameObject.SetActive(false);
|
||||
if (wxLogin3.gameObject.activeSelf) wxLogin3.gameObject.SetActive(false);
|
||||
pageNums = 3;
|
||||
//if (wxLogin3.gameObject.activeSelf) wxLogin3.gameObject.SetActive(false);
|
||||
pageNums = 4;
|
||||
Canvas.ForceUpdateCanvases();
|
||||
this.StartScrollPanel(1);
|
||||
}
|
||||
@@ -744,7 +740,7 @@ public class LoginController : MonoBehaviour
|
||||
}
|
||||
else
|
||||
{
|
||||
pageNums = 3;
|
||||
pageNums = 4;
|
||||
wxLogin2.gameObject.SetActive(false);
|
||||
|
||||
signPage1.Find("next").gameObject.SetActive(true);
|
||||
@@ -877,7 +873,7 @@ public class LoginController : MonoBehaviour
|
||||
scrollPanelIndex = index;
|
||||
startScrollPanel = true;
|
||||
}
|
||||
private int pageNums = 3;
|
||||
private int pageNums = 4;
|
||||
private void goScrollPanel()
|
||||
{
|
||||
var index = scrollPanelIndex;
|
||||
|
||||
Reference in new issue
Block a user