|
|
@@ -193,6 +193,9 @@ export struct LocalMusic {
|
|
|
private playListScroller: Scroller = new Scroller()
|
|
|
@StorageProp('isLandscape') isLandscape: boolean = false;
|
|
|
@StorageProp('topRectHeight') topRectHeight: number = px2vp(AppUtil.getStatusBarHeight());
|
|
|
+ @StorageProp('windowWidth') windowWidth: number = 0;
|
|
|
+ @StorageProp('windowHeight') windowHeight: number = 0;
|
|
|
+
|
|
|
private listArea: Area = {
|
|
|
width: 0,
|
|
|
height: 0,
|
|
|
@@ -260,7 +263,7 @@ export struct LocalMusic {
|
|
|
@StorageLink('currentSong') currentSong: VideoItem | undefined = undefined;
|
|
|
// @StorageLink('isPlay') isPlay: boolean = false;
|
|
|
@StorageLink('isShowPlay') isShowPlay: boolean = false;
|
|
|
- @StorageProp('windowHeight') windowHeight: number = 0;
|
|
|
+
|
|
|
@StorageLink('songList') songList: Array<VideoItem> = [];
|
|
|
@State translateY: number = 0;
|
|
|
@State isShowSheet: boolean = false;
|
|
|
@@ -5509,6 +5512,12 @@ export struct LocalMusic {
|
|
|
isPhoneLan() {
|
|
|
// LogUtil.info('twocold this.currentHeightBreakpoint = '+this.currentHeightBreakpoint)
|
|
|
// LogUtil.info('twocold this.currentWidthBreakpoint = '+this.currentWidthBreakpoint)
|
|
|
+ LogUtil.info('hicar isPhoneLan width= '+this.windowWidth);
|
|
|
+ LogUtil.info( 'hicar isPhoneLan height= '+this.windowHeight);
|
|
|
+ if(this.isHiCar()){
|
|
|
+ return false
|
|
|
+ }
|
|
|
+
|
|
|
if(DeviceUtil.getDeviceType() === resourceManager.DeviceType.DEVICE_TYPE_PHONE
|
|
|
&&this.currentHeightBreakpoint == HeightBreakpoint.HEIGHT_SM
|
|
|
&&this.currentWidthBreakpoint==WidthBreakpoint.WIDTH_MD){//如果是手机横屏,返回true
|
|
|
@@ -5526,6 +5535,22 @@ export struct LocalMusic {
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
+ isHiCar() {
|
|
|
+ if(this.windowWidth==800&&this.windowHeight==480)
|
|
|
+ return true
|
|
|
+ if(this.windowWidth==762&&this.windowHeight==752)
|
|
|
+ return true
|
|
|
+ if(this.windowWidth==968&&this.windowHeight==1280)
|
|
|
+ return true
|
|
|
+ if(this.windowWidth==1200&&this.windowHeight==1200)
|
|
|
+ return true
|
|
|
+ if(this.windowWidth==1280&&this.windowHeight==72)
|
|
|
+ return true
|
|
|
+ if(this.windowWidth==1920&&this.windowHeight==1080)
|
|
|
+ return true
|
|
|
+ return false
|
|
|
+ }
|
|
|
+
|
|
|
//是不是正常的手机竖屏
|
|
|
isPhonePortrait() {
|
|
|
LogUtil.info('twocold this.currentHeightBreakpoint = '+this.currentHeightBreakpoint)
|