王士厅

视频、专题去掉全屏方法

@@ -216,7 +216,7 @@ export struct SpacialTopicPageComponent { @@ -216,7 +216,7 @@ export struct SpacialTopicPageComponent {
216 216
217 aboutToAppear() { 217 aboutToAppear() {
218 if (!this.action?.params?.backVisibility) { 218 if (!this.action?.params?.backVisibility) {
219 - WindowModel.shared.setWindowLayoutFullScreen(true) 219 + // WindowModel.shared.setWindowLayoutFullScreen(true)
220 } 220 }
221 this.webUrl = this.action?.params?.url || '' 221 this.webUrl = this.action?.params?.url || ''
222 this.getDetail() 222 this.getDetail()
@@ -224,7 +224,7 @@ export struct SpacialTopicPageComponent { @@ -224,7 +224,7 @@ export struct SpacialTopicPageComponent {
224 224
225 aboutToDisappear() { 225 aboutToDisappear() {
226 if (!this.action?.params?.backVisibility) { 226 if (!this.action?.params?.backVisibility) {
227 - WindowModel.shared.setWindowLayoutFullScreen(false) 227 + // WindowModel.shared.setWindowLayoutFullScreen(false)
228 } 228 }
229 } 229 }
230 } 230 }
@@ -281,7 +281,7 @@ export struct DetailPlayShortVideoPage { @@ -281,7 +281,7 @@ export struct DetailPlayShortVideoPage {
281 publishCommentModel: this.publishCommentModel, 281 publishCommentModel: this.publishCommentModel,
282 showCommentIcon: false, 282 showCommentIcon: false,
283 onBack: () => { 283 onBack: () => {
284 - WindowModel.shared.setWindowLayoutFullScreen(false) 284 + // WindowModel.shared.setWindowLayoutFullScreen(false)
285 WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#000000', }) 285 WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#000000', })
286 } 286 }
287 }) 287 })
@@ -96,7 +96,7 @@ export struct DetailVideoListPage { @@ -96,7 +96,7 @@ export struct DetailVideoListPage {
96 */ 96 */
97 openFullScreen() { 97 openFullScreen() {
98 WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#ffffff', }) 98 WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#ffffff', })
99 - WindowModel.shared.setWindowLayoutFullScreen(true) 99 + // WindowModel.shared.setWindowLayoutFullScreen(true)
100 // WindowModel.shared.setWindowSystemBarEnable([]) 100 // WindowModel.shared.setWindowSystemBarEnable([])
101 } 101 }
102 102
@@ -106,7 +106,7 @@ export struct DetailVideoListPage { @@ -106,7 +106,7 @@ export struct DetailVideoListPage {
106 */ 106 */
107 closeFullScreen() { 107 closeFullScreen() {
108 WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#000000', }) 108 WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#000000', })
109 - WindowModel.shared.setWindowLayoutFullScreen(false) 109 + // WindowModel.shared.setWindowLayoutFullScreen(false)
110 // WindowModel.shared.setWindowSystemBarEnable(['status', 'navigation']) 110 // WindowModel.shared.setWindowSystemBarEnable(['status', 'navigation'])
111 } 111 }
112 112
@@ -46,10 +46,10 @@ export struct VideoChannelPage { @@ -46,10 +46,10 @@ export struct VideoChannelPage {
46 if (this.currentTopNavSelectedIndex === 0 && this.currentBottomNavInfo?.name === '视频') { 46 if (this.currentTopNavSelectedIndex === 0 && this.currentBottomNavInfo?.name === '视频') {
47 console.error('setBarBackgroundColor', '黑色') 47 console.error('setBarBackgroundColor', '黑色')
48 this.barBackgroundColor = Color.Black 48 this.barBackgroundColor = Color.Black
49 - this.isImmersive = true 49 + // this.isImmersive = true
50 } else { 50 } else {
51 this.barBackgroundColor = Color.White 51 this.barBackgroundColor = Color.White
52 - this.isImmersive = false 52 + // this.isImmersive = false
53 console.error('setBarBackgroundColor', '白色') 53 console.error('setBarBackgroundColor', '白色')
54 } 54 }
55 } 55 }