Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool into main
* 'main' of http://192.168.1.42/developOne/harmonyPool: fix:somobug fix(图集):去除全屏操作
Showing
2 changed files
with
2 additions
and
24 deletions
| @@ -82,7 +82,6 @@ export struct CompParser { | @@ -82,7 +82,6 @@ export struct CompParser { | ||
| 82 | 82 | ||
| 83 | if (this.compDTO.operDataList[0]?.objectType !== '3' && | 83 | if (this.compDTO.operDataList[0]?.objectType !== '3' && |
| 84 | this.compDTO.operDataList[0]?.objectType !== '13') { //暂时屏蔽活动和音频详情入口 | 84 | this.compDTO.operDataList[0]?.objectType !== '13') { //暂时屏蔽活动和音频详情入口 |
| 85 | - | ||
| 86 | if (this.compDTO.compStyle === CompStyle.Label_03) { | 85 | if (this.compDTO.compStyle === CompStyle.Label_03) { |
| 87 | LabelComponent({ compDTO: this.compDTO }) | 86 | LabelComponent({ compDTO: this.compDTO }) |
| 88 | Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 }) | 87 | Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 }) |
| @@ -108,7 +107,7 @@ export struct CompParser { | @@ -108,7 +107,7 @@ export struct CompParser { | ||
| 108 | Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 }) | 107 | Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 }) |
| 109 | } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_03) { | 108 | } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_03) { |
| 110 | ZhSingleRow03({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName }) | 109 | ZhSingleRow03({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName }) |
| 111 | - Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 }) | 110 | + Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 }) |
| 112 | } else if (this.compDTO.compStyle === CompStyle.Zh_Grid_Layout_02) { //双列流小视频,一行两图卡 ->标题 | 111 | } else if (this.compDTO.compStyle === CompStyle.Zh_Grid_Layout_02) { //双列流小视频,一行两图卡 ->标题 |
| 113 | //ZhGridLayout02({ compDTO: this.compDTO }) | 112 | //ZhGridLayout02({ compDTO: this.compDTO }) |
| 114 | CompNormalTitle({ compDTO: this.compDTO }) | 113 | CompNormalTitle({ compDTO: this.compDTO }) |
| @@ -136,7 +135,7 @@ export struct CompParser { | @@ -136,7 +135,7 @@ export struct CompParser { | ||
| 136 | } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_03) { | 135 | } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_03) { |
| 137 | // 大图卡 | 136 | // 大图卡 |
| 138 | Card2Component({ compDTO: this.compDTO, contentDTO: this.compDTO.operDataList[0], pageId: this.pageId, pageName: this.pageName }) | 137 | Card2Component({ compDTO: this.compDTO, contentDTO: this.compDTO.operDataList[0], pageId: this.pageId, pageName: this.pageName }) |
| 139 | - Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 }) | 138 | + Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 }) |
| 140 | } else if (this.compDTO.compStyle === CompStyle.Card_09) { | 139 | } else if (this.compDTO.compStyle === CompStyle.Card_09) { |
| 141 | //时间链卡 | 140 | //时间链卡 |
| 142 | Card9Component({ compDTO: this.compDTO, contentDTO:this.compDTO.operDataList[0], pageId: this.pageId, pageName: this.pageName }) | 141 | Card9Component({ compDTO: this.compDTO, contentDTO:this.compDTO.operDataList[0], pageId: this.pageId, pageName: this.pageName }) |
| @@ -48,7 +48,6 @@ struct MultiPictureDetailPage { | @@ -48,7 +48,6 @@ struct MultiPictureDetailPage { | ||
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | aboutToAppear() { | 50 | aboutToAppear() { |
| 51 | - this.openFullScreen() | ||
| 52 | 51 | ||
| 53 | Logger.info(TAG, 'aboutToDisappear'); | 52 | Logger.info(TAG, 'aboutToDisappear'); |
| 54 | 53 | ||
| @@ -68,13 +67,11 @@ struct MultiPictureDetailPage { | @@ -68,13 +67,11 @@ struct MultiPictureDetailPage { | ||
| 68 | 67 | ||
| 69 | aboutToDisappear(): void { | 68 | aboutToDisappear(): void { |
| 70 | console.log(TAG, 'aboutToDisappear') | 69 | console.log(TAG, 'aboutToDisappear') |
| 71 | - this.closeFullScreen() | ||
| 72 | } | 70 | } |
| 73 | 71 | ||
| 74 | onPageShow(): void { | 72 | onPageShow(): void { |
| 75 | console.log(TAG, 'onPageShow') | 73 | console.log(TAG, 'onPageShow') |
| 76 | this.pageShowTime = DateTimeUtils.getTimeStamp() | 74 | this.pageShowTime = DateTimeUtils.getTimeStamp() |
| 77 | - this.openFullScreen() | ||
| 78 | 75 | ||
| 79 | } | 76 | } |
| 80 | 77 | ||
| @@ -84,25 +81,7 @@ struct MultiPictureDetailPage { | @@ -84,25 +81,7 @@ struct MultiPictureDetailPage { | ||
| 84 | let duration = 0 | 81 | let duration = 0 |
| 85 | duration = Math.floor((this.pageHideTime - this.pageShowTime)/1000) | 82 | duration = Math.floor((this.pageHideTime - this.pageShowTime)/1000) |
| 86 | TrackingPageBrowse.trackCommonPageExposureEnd(TrackConstants.PageName.Atlas_Detail,TrackConstants.PageName.Atlas_Detail,duration) | 83 | TrackingPageBrowse.trackCommonPageExposureEnd(TrackConstants.PageName.Atlas_Detail,TrackConstants.PageName.Atlas_Detail,duration) |
| 87 | - this.closeFullScreen() | ||
| 88 | } | 84 | } |
| 89 | 85 | ||
| 90 | - /** | ||
| 91 | - * 开启沉浸式 | ||
| 92 | - * TODO:颜色待根据业务接口修改 | ||
| 93 | - */ | ||
| 94 | - openFullScreen() { | ||
| 95 | - WindowModel.shared.setWindowLayoutFullScreen(true) | ||
| 96 | - WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#ffffff', }) | ||
| 97 | - } | ||
| 98 | - | ||
| 99 | - /** | ||
| 100 | - * 关闭沉浸式 | ||
| 101 | - * TODO:颜色待根据业务接口修改 | ||
| 102 | - */ | ||
| 103 | - closeFullScreen() { | ||
| 104 | - WindowModel.shared.setWindowLayoutFullScreen(false) | ||
| 105 | - WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#000000', }) | ||
| 106 | - } | ||
| 107 | 86 | ||
| 108 | } | 87 | } |
-
Please register or login to post a comment