wxr
2024-09-30 30c21abd3047624cc413f5eaacbbbb88bae46f6a
HDL_ON/UI/UI2/FuntionControlView/Video/VideoMainView.cs
@@ -24,16 +24,45 @@
            #region 布局界面
            this.BackgroundColor = MusicColor.ViewColor;
            var topView = new TopView();
            //this.AddChidren(topView.TopFLayoutView());
#if __IOS__
            // 获取当前系统的版本号
            string systemVersion = UIKit.UIDevice.CurrentDevice.SystemVersion;
            // 将系统版本字符串转换为 Version 对象
            System.Version currentVersion = new System.Version(systemVersion);
            // 定义 iOS 17 作为比较的版本
            System.Version version17 = new System.Version(17, 0);
            // 比较当前版本是否大于 iOS 17
            if (currentVersion.CompareTo(version17) > 0)
            {
                this.AddChidren(topView.TopFLayoutView());
            //if (xiMoVideoList.Count > 0)
            //{
            //    this.AddChidren(topView.TopFLayoutView());
            //}
            //else
            //{
            //    this.AddChidren(topView.TopFLayoutView2());
            //}
            }
            else
            {
                if (xiMoVideoList.Count > 0)
                {
                    this.AddChidren(topView.TopFLayoutView2());
                }
                else
                {
                    this.AddChidren(topView.TopFLayoutView());
                }
                topView.topNameBtn.TextID = StringId.keshiduijiang;
            }
#else
            if (xiMoVideoList.Count > 0)
            {
                this.AddChidren(topView.TopFLayoutView2());
            }
            else
            {
                this.AddChidren(topView.TopFLayoutView());
            }
            topView.topNameBtn.TextID = StringId.keshiduijiang;
#endif
            var pageView = new PageLayout()