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/MyQRCodePage.cs | 117 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 117 insertions(+), 0 deletions(-)
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/MyQRCodePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/MyQRCodePage.cs
new file mode 100644
index 0000000..a6eb973
--- /dev/null
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/MyQRCodePage.cs
@@ -0,0 +1,117 @@
+锘縰sing System;
+using HDL_ON.UI.CSS;
+using Shared;
+
+namespace HDL_ON.UI
+{
+ /// <summary>
+ /// 鎴戠殑浜岀淮鐮侀〉闈�
+ /// </summary>
+ public class MyQRCodePage : FrameLayout
+ {
+ FrameLayout bodyView;
+
+ public MyQRCodePage()
+ {
+ bodyView = this;
+ }
+
+ public void LoadPage()
+ {
+ bodyView.BackgroundColor = CSS_Color.BackgroundColor;
+ new TopViewDiv(bodyView, Language.StringByID(StringId.MyQRcode)).LoadTopView();
+
+ int backViewHeight = Application.GetRealHeight(132) + Application.GetRealWidth(266);
+ FrameLayout backView = new FrameLayout()
+ {
+ Y = Application.GetRealHeight(144),
+ X = Application.GetRealWidth(20),
+ Height = backViewHeight,
+ Width = Application.GetRealWidth(335),
+ BackgroundColor = CSS_Color.MainBackgroundColor,
+ Radius = (uint)Application.GetRealWidth(8),
+ };
+ bodyView.AddChidren(backView);
+
+ #region 澶村儚銆佹樀绉般�佸笎鍙�
+ FrameLayout headView = new FrameLayout()
+ {
+ Y = Application.GetRealHeight(16),
+ Height = Application.GetRealHeight(60),
+ };
+ backView.AddChidren(headView);
+
+ ImageView headImage = new ImageView()
+ {
+ X = Application.GetRealWidth(16),
+ Width = Application.GetMinRealAverage(60),
+ Height = Application.GetMinRealAverage(60),
+ Radius = (uint)Application.GetMinRealAverage(30),
+ ImagePath = UserInfo.Current.headImagePagePath,
+ };
+ headView.AddChidren(headImage);
+
+ //鐢ㄦ埛鍚嶇О
+ var btnUserName = new Button()
+ {
+ X = headImage.Right + Application.GetRealWidth(12),
+ Width = Application.GetRealWidth(200),
+ Height = Application.GetRealHeight(30),
+ TextAlignment = TextAlignment.CenterLeft,
+ TextColor = CSS_Color.FirstLevelTitleColor,
+ TextSize = CSS_FontSize.SubheadingFontSize,
+ TextID = StringId.UsersWhoNameIsEmpty,
+ IsBold = true
+ };
+ headView.AddChidren(btnUserName);
+
+ if (!string.IsNullOrEmpty(UserInfo.Current.userName))
+ {
+ btnUserName.Text = UserInfo.Current.userName;
+ }
+
+ //鐢ㄦ埛甯愬彿
+ var btnEmail = new Button()
+ {
+ X = headImage.Right + Application.GetRealWidth(12),
+ Y = btnUserName.Bottom,
+ Height = Application.GetRealHeight(30),
+ TextAlignment = TextAlignment.TopLeft,
+ TextColor = CSS_Color.TextualColor,
+ TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
+ Text = UserInfo.Current.AccountString
+ };
+ headView.AddChidren(btnEmail);
+ #endregion
+
+ //浜岀淮鐮�
+ int codeWidth = Application.GetRealWidth(266);
+ ImageView codeImage = new ImageView()
+ {
+ X = Application.GetRealWidth(35),
+ Y = Application.GetRealHeight(104),
+ Height = codeWidth,
+ Width = codeWidth,
+ ImageBytes = Scan.BytesFromText(UserInfo.Current.AccountString, codeWidth, codeWidth),
+ };
+ backView.AddChidren(codeImage);
+
+ ////浜岀淮鐮佷腑蹇冨ご鍍�
+ //int imageWidth = Application.GetMinRealAverage(60);
+ //int imageX = codeImage.X + (codeWidth - imageWidth) / 2;
+ //int imageY = codeImage.Y + (codeWidth - imageWidth) / 2;
+ //ImageView headImage2 = new ImageView()
+ //{
+ // X = imageX,
+ // Y = imageY,
+ // Width = imageWidth,
+ // Height = imageWidth,
+ // ImagePath = UserInfo.Current.headImagePagePath,
+ // BorderColor = CSS_Color.MainBackgroundColor,
+ // BorderWidth = (uint)Application.GetRealWidth(2),
+ // Radius = (uint)Application.GetMinRealAverage(30),
+ //};
+ //backView.AddChidren(headImage2);
+ }
+ }
+}
--
Gitblit v1.8.0