Quellcode durchsuchen

适配hicar的list的列数

onecold vor 1 Jahr
Ursprung
Commit
3df7397500
1 geänderte Dateien mit 8 neuen und 7 gelöschten Zeilen
  1. 8 7
      entry/src/main/ets/view/LocalMusic.ets

+ 8 - 7
entry/src/main/ets/view/LocalMusic.ets

@@ -607,11 +607,13 @@ export struct LocalMusic {
     //如果是hicar连接状态,这些都是false
     if(this.isHiCarStatus){
       this.isShowTitleBar = false//不显示导航栏
-      if(this.isHiCarSmall()){
+      if(!(this.windowWidth>1800&&this.windowHeight>=1200))//大屏幕不可以Grid
+      {
         this.isShowHeader = false//二级菜单不显示头部
         this.isGridMusic= false//用list不用网格
         this.isCoverTopBig = false
       }
+
       this.isShowPlayPageBack = true //播放页返回键要显示,方便驾驶员操作
     }
     if (this.isSavePlayMode) {
@@ -3993,15 +3995,15 @@ export struct LocalMusic {
       new BreakpointType<number>({
         sm: 1,
         md: 2,
-        lg: 3,
-        xl: 4,
+        lg: 2,
+        xl: 3,
         xxl: 4
       }).getValue(this.currentBreakpoint),
       new BreakpointType<number>({
         sm: 0,
         md: 12,
-        lg: 16,
-        xl: 18,
+        lg: 12,
+        xl: 16,
         xxl: 20
       }).getValue(this.currentBreakpoint)
     )
@@ -5676,8 +5678,7 @@ export struct LocalMusic {
 
   //是不是hicar的屏幕分辨率
   isHiCarSmall() {
-    if(this.windowWidth>2400&&this.windowHeight>=1300)//大屏幕可以Grid
-      return false
+
     if(this.windowWidth>1800&&this.windowHeight>=1200)//大屏幕可以Grid
       return false