From 551e82d33c9c23442e0ecd320bcfc752f300d9ef Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期一, 22 三月 2021 09:20:03 +0800
Subject: [PATCH] Merge branch 'temp-wxr' into WJC

---
 HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/BrandListPage.cs |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/BrandListPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/BrandListPage.cs
index b8f0a39..4d894c0 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/BrandListPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/BrandListPage.cs
@@ -1,5 +1,6 @@
 锘縰sing System;
 using System.Collections.Generic;
+using HDL_ON.DAL.Server;
 using HDL_ON.Entity;
 using HDL_ON.UI.CSS;
 using Shared;
@@ -9,7 +10,7 @@
     {
         FrameLayout bodyView;
 
-        VerticalScrolViewLayout contentView;
+        VerticalRefreshLayout contentView;
 
         List<IntegratedBrand> brandList;
 
@@ -25,7 +26,7 @@
 
             bodyView.BackgroundColor = CSS_Color.BackgroundColor;
 
-            contentView = new  VerticalScrolViewLayout()
+            contentView = new VerticalRefreshLayout()
             {
                 Y = Application.GetRealHeight(64),
                 Height = Application.GetRealHeight(603),
@@ -33,6 +34,12 @@
             bodyView.AddChidren(contentView);
 
             GetBindList();
+
+            contentView.BeginHeaderRefreshingAction = () =>
+            {
+                contentView.EndHeaderRefreshing();
+                GetBindList();
+            };
 
         }
         /// <summary>
@@ -65,6 +72,10 @@
                             });
                         }
                     }
+                    else
+                    {
+                        IMessageCommon.Current.ShowErrorInfoAlter(pack.Code);
+                    }
                 }
                 catch (Exception ex)
                 {

--
Gitblit v1.8.0