From a2927467ebfa938a420f392deb6882b35570fd33 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 01 十二月 2020 16:48:06 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/CJL-NEW'
---
HDL_ON/UI/UI2/4-PersonalCenter/MyServerInfoPage.cs | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 106 insertions(+), 0 deletions(-)
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/MyServerInfoPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/MyServerInfoPage.cs
new file mode 100644
index 0000000..47df8f0
--- /dev/null
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/MyServerInfoPage.cs
@@ -0,0 +1,106 @@
+锘縰sing System;
+using HDL_ON.UI.CSS;
+using Shared;
+using Xamarin.Essentials;
+
+namespace HDL_ON.UI
+{
+ /// <summary>
+ /// 鎴戠殑鏈嶅姟鍣ㄤ俊鎭〉闈�
+ /// </summary>
+ public class MyServerInfoPage : FrameLayout
+ {
+ FrameLayout bodyView;
+
+ public MyServerInfoPage()
+ {
+ bodyView = this;
+ }
+
+ public void LoadPage()
+ {
+ bodyView.BackgroundColor = CSS_Color.MainBackgroundColor;
+ //鏈嶅姟鍣ㄤ俊鎭�
+ new TopViewDiv(bodyView, Language.StringByID(StringId.ServerInformation)).LoadTopView();
+
+ ImageView imageView = new ImageView()
+ {
+ Y = Application.GetMinRealAverage(88),
+ Width = Application.GetMinRealAverage(200),
+ Height = Application.GetMinRealAverage(180),
+ ImagePath = "PersonalCenter/ServerInfo.png",
+ Gravity = Gravity.CenterHorizontal
+ };
+ bodyView.AddChidren(imageView);
+
+ var serverBtn = new Button()
+ {
+ X = Application.GetRealWidth(40),
+ Y = imageView.Bottom + Application.GetRealHeight(12),
+ Width = Application.GetRealWidth(295),
+ Height = Application.GetRealHeight(22),
+ TextAlignment = TextAlignment.CenterLeft,
+ TextColor = CSS_Color.FirstLevelTitleColor,
+ TextSize = CSS_FontSize.SubheadingFontSize,
+ //Text = "褰撳墠璐﹀彿鏈嶅姟鍣ㄦ墍灞烇細涓浗锛屼唬鐮亁xxx",
+ IsBold = true
+
+ };
+ bodyView.AddChidren(serverBtn);
+
+ var tipBtn = new Button()
+ {
+ X = Application.GetRealWidth(40),
+ Y = serverBtn.Bottom + Application.GetRealHeight(12),
+ Width = Application.GetRealWidth(295),
+ Height = Application.GetRealHeight(80),
+ TextAlignment = TextAlignment.TopLeft,
+ TextColor = CSS_Color.FirstLevelTitleColor,
+ TextSize = CSS_FontSize.TextFontSize,
+ //Text = "*鏈嶅姟鍣ㄦ槸鎮ㄥ綋鍓嶄簯绔暟鎹瓨鍌ㄧ殑鎵�鍦ㄥ尯鍩燂紝鏃犻渶蹇呰锛屾垜浠笉寤鸿鍙戠敓杩佺Щ",
+ TextID = StringId.CurrentAccountServerOwnershipTip,
+ IsMoreLines = true
+
+ };
+ bodyView.AddChidren(tipBtn);
+
+ var callBtn = new TextButton()
+ {
+ X = Application.GetRealWidth(40),
+ Y = Application.GetRealHeight(606),
+ Width = Application.GetRealWidth(168),
+ Height = Application.GetRealHeight(22),
+ TextAlignment = TextAlignment.CenterLeft,
+ TextColor = CSS_Color.TextualColor,
+ TextSize = CSS_FontSize.TextFontSize,
+ //Text = "*鑻ラ渶瑕佽縼绉绘湇鍔″櫒锛岃鎷ㄦ墦",
+ TextID = StringId.ToMigrateTheServerPleaseCall,
+
+ };
+ bodyView.AddChidren(callBtn);
+ callBtn.Width = callBtn.GetTextWidth() + Application.GetRealWidth(2);
+
+ var phoneBtn = new TextButton()
+ {
+ X = callBtn.Right + Application.GetRealHeight(2),
+ Y = Application.GetRealHeight(606),
+ Width = Application.GetRealWidth(200),
+ Height = Application.GetRealHeight(22),
+ TextAlignment = TextAlignment.CenterLeft,
+ TextColor = CSS_Color.MainColor,
+ TextSize = CSS_FontSize.SubheadingFontSize,
+ Text = "400-855-8535",
+ IsBold = true
+ };
+ bodyView.AddChidren(phoneBtn);
+
+ phoneBtn.MouseUpEventHandler += (sender, e) =>
+ {
+ PhoneDialer.Open(Constant.SUPPORT_TELEPHONENUMBER);
+ };
+
+ serverBtn.Text = Language.StringByID(StringId.CurrentAccountServerOwnership) + UserInfo.Current.GlobalRegion.regionName;
+
+ }
+ }
+}
--
Gitblit v1.8.0