From 9d65c293924e4edbbc8c6c6091f55d7fc49c23eb Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期二, 06 七月 2021 13:15:46 +0800
Subject: [PATCH] 乐橙子账号token
---
HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/Transfer/TransferResidenceResultPage.cs | 55 +++++++++++++++++++++++++++++++++++++++++++++++++------
1 files changed, 49 insertions(+), 6 deletions(-)
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/Transfer/TransferResidenceResultPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/Transfer/TransferResidenceResultPage.cs
index 7a7f4c0..f9b1297 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/Transfer/TransferResidenceResultPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/Transfer/TransferResidenceResultPage.cs
@@ -2,6 +2,7 @@
using Shared;
using HDL_ON.UI.CSS;
using HDL_ON.Stan;
+using System.Collections.Generic;
namespace HDL_ON.UI
{
@@ -24,16 +25,16 @@
/// <summary>
/// 鐢婚潰鏄剧ず(搴曞眰浼氬浐瀹氳皟鐢ㄦ鏂规硶锛屽�熶互瀹屾垚鐢婚潰鍒涘缓)
/// </summary>
- /// <param name="i_accountResult">瀵规柟璐﹀彿淇℃伅</param>
+ /// <param name="i_accountInfo">鐢ㄦ埛瀵硅薄淇℃伅</param>
/// <param name="i_success">鏄惁鎴愬姛</param>
- public void ShowForm(AccountInfoResult i_accountResult, bool i_success)
+ public void ShowForm(AccountInfoResult i_accountInfo, bool i_success)
{
this.ScrollLeftEnabled = false;
//杩囨埛
base.SetTitleText(Language.StringByID(StringId.Transfer));
//鍒濆鍖栦腑閮ㄤ俊鎭�
- this.InitMiddleFrame();
+ this.InitMiddleFrame(i_accountInfo, i_success);
//绉婚櫎杩斿洖閿�
base.RemoveBackButton();
@@ -42,14 +43,56 @@
/// <summary>
/// 鍒濆鍖栦腑閮ㄤ俊鎭�
/// </summary>
- private void InitMiddleFrame()
+ /// <param name="i_accountInfo">鐢ㄦ埛瀵硅薄淇℃伅</param>
+ /// <param name="i_success">鏄惁鎴愬姛</param>
+ private void InitMiddleFrame(AccountInfoResult i_accountInfo, bool i_success)
{
//娓呯┖bodyFrame
this.ClearBodyFrame();
- //纭
+ //鍥剧墖
+ var btnPictrue = new PicViewControl(180, 180);
+ btnPictrue.Y = Application.GetRealHeight(32);
+ btnPictrue.Gravity = Gravity.CenterHorizontal;
+ btnPictrue.UnSelectedImagePath = i_success == true ? "Public/TipIcon_Successfully.png" : "Public/TipIcon_Failed.png";
+ bodyFrameLayout.AddChidren(btnPictrue);
+
+ List<NormalViewControl> listContr = null;
+ if (i_success == true)
+ {
+ //鐢ㄦ埛{0}宸茬粡鎴愪负浣忓畢琛岀鐞嗗憳
+ string strMsg = Language.StringByID(StringId.CongratulationsXXBecomingNNAdministrator).Replace("{0}", i_accountInfo.MemberName);
+ listContr = this.AddListMsgControls(bodyFrameLayout, strMsg, CSS_FontSize.SubheadingFontSize, CSS_Color.MainColor, Application.GetRealHeight(24),
+ btnPictrue.Bottom + Application.GetRealHeight(16));
+ //璇ヤ綇瀹呯殑淇℃伅灏嗗湪鎮ㄧ殑璐﹀彿涓垹闄�
+ var btnMsg2 = new NormalViewControl(bodyFrameLayout.Width - HdlControlResourse.XXLeft * 2, Application.GetRealHeight(18), false);
+ btnMsg2.Y = listContr[listContr.Count - 1].Bottom + Application.GetRealHeight(8);
+ btnMsg2.TextAlignment = TextAlignment.Center;
+ btnMsg2.Gravity = Gravity.CenterHorizontal;
+ btnMsg2.TextSize = CSS_FontSize.PromptFontSize_FirstLevel;
+ btnMsg2.TextID = StringId.ResidenceDataWillBeDeletedFromYourAccount;
+ bodyFrameLayout.AddChidren(btnMsg2);
+ }
+ else
+ {
+ //杩囨埛澶辫触
+ string strMsg = Language.StringByID(StringId.TransferFail);
+ listContr = this.AddListMsgControls(bodyFrameLayout, strMsg, CSS_FontSize.SubheadingFontSize, CSS_Color.AuxiliaryColor2, Application.GetRealHeight(24),
+ btnPictrue.Bottom + Application.GetRealHeight(16));
+ //璇烽噸鏂板皾璇�
+ var btnMsg2 = new NormalViewControl(bodyFrameLayout.Width - HdlControlResourse.XXLeft * 2, Application.GetRealHeight(18), false);
+ btnMsg2.Y = listContr[listContr.Count - 1].Bottom + Application.GetRealHeight(8);
+ btnMsg2.TextAlignment = TextAlignment.Center;
+ btnMsg2.Gravity = Gravity.CenterHorizontal;
+ btnMsg2.TextSize = CSS_FontSize.PromptFontSize_FirstLevel;
+ btnMsg2.TextID = StringId.PleaseTryAgain;
+ bodyFrameLayout.AddChidren(btnMsg2);
+ }
+
+ //瀹屾垚
var btnConfirm = new BottomClickButton(220);
- btnConfirm.TextID = StringId.Complete;
+ btnConfirm.Y = Application.GetRealHeight(337);
+ btnConfirm.TextID = i_success == true ? StringId.Complete : StringId.Retry;
bodyFrameLayout.AddChidren(btnConfirm);
btnConfirm.ButtonClickEvent += (sender, e) =>
{
--
Gitblit v1.8.0