using Assets.Scripts; using Assets.Scripts.Apis; using Assets.Scripts.Apis.Models; using Assets.Scripts.UI.Control; using Newtonsoft.Json; using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Threading.Tasks; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.SceneManagement; using UnityEngine.UI; public class EditUserController : PFUIPanel { private Button mSaveButton; private PFUIDropdown mSexDropdown; private PFUIDropdown mDayDropdown; private PFUIDropdown mMonthDropdown; private PFUIDropdown mYearDropdown; private PFUIDropdown mConutryDropdown; private PFUIDropdown mUnitDropdown; private Text mID; private PFUIInputField mNickName; private PFUIInputField mFTP; private PFUIInputField mWeight; private PFUIInputField mHeight; private PFUIInputField mMHR; private PFUIInputField mBW; private PFUIInputField mWD; private PFUIInputField mName; private PFUIInputField mPhone; private PFUIInputField mAddr; private RawImage mHeadImage; private UserApi userApi; private Button mCancelButton; private Button mBackButton; private Button mSwitchButton; PfUIButton mChangeAvatar; protected override void Awake() { Debug.Log(Utils.GetIP(Utils.ADDRESSFAM.IPv4)); userApi = new UserApi(); var panel = this.transform.Find("Panel"); mID = panel.Find("IDNumber").Find("input").Find("Text").GetComponent(); mSexDropdown = panel.Find("SexDropdown").GetComponent(); mSexDropdown = panel.Find("SexDropdown").GetComponent(); mYearDropdown = panel.Find("YearDropdown").GetComponent(); mMonthDropdown = panel.Find("MonthDropdown").GetComponent(); mDayDropdown = panel.Find("DayDropdown").GetComponent(); mUnitDropdown = panel.Find("UnitDropdown").GetComponent(); mSaveButton = this.transform.Find("SaveButton").GetComponent