JLChen
2020-12-09 e87985ec1dcb69beedaf9f95e8e7aba14b7c08d6
HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberFunctionPermissionPage.cs
@@ -35,8 +35,17 @@
        Action<string> refreshFunctionCount;
        /// <summary>
        /// 之前的分享列表
        /// </summary>
        List<ShareData> funs;
        /// <summary>
        /// 属于当前房间最终的设备分享列表
        /// </summary>
        List<ShareData> funs_New;
        /// <summary>
        /// 删除的分享列表
        /// </summary>
        List<ShareData> funs_Del;
        public MemberFunctionPermissionPage(ResidenceMemberInfo mInfo, Room r, Action<string> action)
@@ -119,7 +128,7 @@
                Y = Application.GetRealHeight(519 + 64),
                Gravity = Gravity.CenterHorizontal,
                Width = Application.GetRealWidth(220),
                Height = Application.GetRealHeight(44),
                Height = Application.GetRealWidth(44),
                BackgroundColor = CSS_Color.MainColor,
                TextAlignment = TextAlignment.Center,
                TextColor = CSS_Color.MainBackgroundColor,
@@ -148,7 +157,7 @@
        void LoadFunctionRow(List<ShareData>  shareDatas)
        {
            contentView.RemoveAll();
            foreach (var function in room.functions)
            foreach (var function in room.GetRoomFunctions(false))
            {
                var roomView = new FrameLayout()
                {
@@ -180,9 +189,13 @@
                    Tag = "ChooseIcon"
                };
                roomView.AddChidren(btnChoose);
                if (shareDatas.Find((obj) => obj.ShareName == function.sid) != null)
                var shareData = shareDatas.Find((obj) => obj.shareTypeId == function.deviceId);
                if (shareData != null)
                {
                    btnChoose.IsSelected = true;
                    //刷新属于当前房间的分享统计
                    funs_New.Add(shareData);
                }
                else
                {