wei
2021-01-28 6828e6dffa299b6249af99ce9c1d3992963f7c18
HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/ThirdPartyBrandListPage.cs
@@ -1,4 +1,6 @@
using System;
using System.Collections.Generic;
using HDL_ON.Entity;
using HDL_ON.UI.CSS;
using Shared;
namespace HDL_ON.UI
@@ -8,6 +10,7 @@
        FrameLayout bodyView;
        FrameLayout contentView;
        Button btnAdd;
        public ThirdPartyBrandListPage()
        {
@@ -39,7 +42,7 @@
            };
            bodyView.AddChidren(btnTipMsg);
            Button btnAdd = new Button()
            btnAdd = new Button()
            {
                Gravity = Gravity.CenterHorizontal,
                Y = Application.GetRealHeight(564),
@@ -52,6 +55,8 @@
                TextID = StringId.Add,
            };
            bodyView.AddChidren(btnAdd);
            LoadEvent_SikpAddBrand();
        }
        /// <summary>
@@ -72,5 +77,17 @@
            };
            emptyTipView.AddChidren(tipView);
        }
        /// <summary>
        /// 跳转绑定第三方品牌界面
        /// </summary>
        void LoadEvent_SikpAddBrand()
        {
            btnAdd.MouseUpEventHandler = (sender, e) => {
                var page = new AddThirdPartyBrandListpage();
                MainPage.BasePageView.AddChidren(page);
                page.LoadPage();
                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
            };
        }
    }
}