修改细节
This commit is contained in:
1 parent
9f4e446850
commit
af34243c28
8 files changed
+1443
-1322
No files matched your search
@@ -316,9 +316,9 @@ public class EditUserController : PFUIPanel
|
||||
}
|
||||
user.FTP = int.Parse(mFTP.Text);
|
||||
user.Height = int.Parse(mHeight.Text);
|
||||
user.Weight = int.Parse(mWeight.Text);
|
||||
user.Weight = double.Parse(mWeight.Text);
|
||||
user.MaxHeartRate = int.Parse(mMHR.Text);
|
||||
user.BicycleWeight = int.Parse(mBW.Text);
|
||||
user.BicycleWeight = double.Parse(mBW.Text);
|
||||
user.WheelDiameter = int.Parse(mWD.Text);
|
||||
user.Unit = mUnitDropdown.SelectedIndex;
|
||||
user.Contact = mName.Text;
|
||||
@@ -334,7 +334,7 @@ public class EditUserController : PFUIPanel
|
||||
}
|
||||
else
|
||||
{
|
||||
App.CurrentUser = user;
|
||||
App.CurrentUser = JObject.FromObject(result.data).ToObject<UserResultModel>();
|
||||
var userinfos = UIManager.Instance.userInfos;
|
||||
var i = userinfos.FindIndex(x => x.Id == App.CurrentUser.Id);
|
||||
if (i != -1)
|
||||
|
||||
@@ -170,9 +170,9 @@ public class HomeController : PFUIPanel
|
||||
? App.CurrentUser.LastUpdateFtpTime.ToString("yyyy.MM.dd")
|
||||
: App.CurrentUser.LastUpdateWeightTime.ToString("yyyy.MM.dd");
|
||||
}
|
||||
void GetSummary()
|
||||
async void GetSummary()
|
||||
{
|
||||
var res = ConfigHelper.userApi.GetSummary();
|
||||
var res = await ConfigHelper.userApi.GetSummary();
|
||||
if (res.result)
|
||||
{
|
||||
//App.CurrentUser.Distance = res.data.TotalDistance;
|
||||
|
||||
@@ -66,14 +66,14 @@ public class UserInfoController : PFUIPanel
|
||||
summaryPanel.Find("Panel").Find("RideResultList").GetComponent<ResultListController>().Load();
|
||||
}
|
||||
}
|
||||
void Load()
|
||||
async void Load()
|
||||
{
|
||||
//if (!App.FromLogin)
|
||||
//{
|
||||
// var result = await userApi.Login("15651831367", "123456", "");
|
||||
// App.CurrentUser = result.data;
|
||||
//}
|
||||
var r = ConfigHelper.userApi.GetSummary();
|
||||
var r = await ConfigHelper.userApi.GetSummary();
|
||||
if (r.result)
|
||||
{
|
||||
var summary = r.data;
|
||||
|
||||
Reference in new issue
Block a user