Showing
2 changed files
with
14 additions
and
11 deletions
| @@ -23,7 +23,7 @@ struct MorningEveningPaperPage { | @@ -23,7 +23,7 @@ struct MorningEveningPaperPage { | ||
| 23 | PageTransitionEnter({ type: RouteType.Push, duration: 300 }) | 23 | PageTransitionEnter({ type: RouteType.Push, duration: 300 }) |
| 24 | .slide(SlideEffect.Bottom).onEnter((type: RouteType, progress: number) => { | 24 | .slide(SlideEffect.Bottom).onEnter((type: RouteType, progress: number) => { |
| 25 | if (progress >= 0.99) { | 25 | if (progress >= 0.99) { |
| 26 | - WindowModel.shared.setWindowLayoutFullScreen(true) | 26 | + // WindowModel.shared.setWindowLayoutFullScreen(true) |
| 27 | WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#ffffff', }) | 27 | WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#ffffff', }) |
| 28 | } | 28 | } |
| 29 | }) | 29 | }) |
| @@ -43,14 +43,14 @@ struct MorningEveningPaperPage { | @@ -43,14 +43,14 @@ struct MorningEveningPaperPage { | ||
| 43 | onPageShow() { | 43 | onPageShow() { |
| 44 | Logger.info(TAG, 'onPageShow'); | 44 | Logger.info(TAG, 'onPageShow'); |
| 45 | if (this.isPageShow) { | 45 | if (this.isPageShow) { |
| 46 | - WindowModel.shared.setWindowLayoutFullScreen(true) | 46 | + // WindowModel.shared.setWindowLayoutFullScreen(true) |
| 47 | WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#ffffff', }) | 47 | WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#ffffff', }) |
| 48 | } | 48 | } |
| 49 | this.pageShowTime = DateTimeUtils.getTimeStamp() | 49 | this.pageShowTime = DateTimeUtils.getTimeStamp() |
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | onPageHide() { | 52 | onPageHide() { |
| 53 | - WindowModel.shared.setWindowLayoutFullScreen(false) | 53 | + // WindowModel.shared.setWindowLayoutFullScreen(false) |
| 54 | WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#000000', }) | 54 | WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#000000', }) |
| 55 | this.isPageShow = true | 55 | this.isPageShow = true |
| 56 | Logger.info(TAG, 'onPageHide'); | 56 | Logger.info(TAG, 'onPageHide'); |
| @@ -7,6 +7,7 @@ import LaunchDataModel, { defaultLaunchModel } from '../viewModel/LaunchDataMode | @@ -7,6 +7,7 @@ import LaunchDataModel, { defaultLaunchModel } from '../viewModel/LaunchDataMode | ||
| 7 | 7 | ||
| 8 | import { ParamType, TrackConstants, TrackingButton, TrackingContent } from 'wdTracking/Index'; | 8 | import { ParamType, TrackConstants, TrackingButton, TrackingContent } from 'wdTracking/Index'; |
| 9 | import { ContentDTO } from 'wdBean/Index'; | 9 | import { ContentDTO } from 'wdBean/Index'; |
| 10 | +import { Core } from '@ohos/hypium'; | ||
| 10 | 11 | ||
| 11 | 12 | ||
| 12 | @Entry | 13 | @Entry |
| @@ -62,7 +63,7 @@ struct LaunchAdvertisingPage { | @@ -62,7 +63,7 @@ struct LaunchAdvertisingPage { | ||
| 62 | }else { | 63 | }else { |
| 63 | //显示图片 | 64 | //显示图片 |
| 64 | Image(this.defaultModel.bootScreenUrl) | 65 | Image(this.defaultModel.bootScreenUrl) |
| 65 | - .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM]) | 66 | + // .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM]) |
| 66 | .width('100%') | 67 | .width('100%') |
| 67 | .height('100%') | 68 | .height('100%') |
| 68 | } | 69 | } |
| @@ -74,11 +75,10 @@ struct LaunchAdvertisingPage { | @@ -74,11 +75,10 @@ struct LaunchAdvertisingPage { | ||
| 74 | bottom: 0 | 75 | bottom: 0 |
| 75 | }) | 76 | }) |
| 76 | 77 | ||
| 77 | - | ||
| 78 | Stack(){ | 78 | Stack(){ |
| 79 | Column(){ | 79 | Column(){ |
| 80 | Row(){ | 80 | Row(){ |
| 81 | - if (this.defaultModel.isAd === '1') { | 81 | + if (this.defaultModel.isAd == '1') { |
| 82 | Text('广告') | 82 | Text('广告') |
| 83 | .fontColor(Color.White) | 83 | .fontColor(Color.White) |
| 84 | .textAlign(TextAlign.Center) | 84 | .textAlign(TextAlign.Center) |
| @@ -108,7 +108,7 @@ struct LaunchAdvertisingPage { | @@ -108,7 +108,7 @@ struct LaunchAdvertisingPage { | ||
| 108 | this.trackingLaunchJumpOver() | 108 | this.trackingLaunchJumpOver() |
| 109 | }).margin({right:16}) | 109 | }).margin({right:16}) |
| 110 | 110 | ||
| 111 | - }.margin({top:10}).width('100%').height('56lpx') | 111 | + }.margin({top:50}).width('100%').height('56lpx') |
| 112 | 112 | ||
| 113 | Blank() | 113 | Blank() |
| 114 | 114 | ||
| @@ -132,18 +132,21 @@ struct LaunchAdvertisingPage { | @@ -132,18 +132,21 @@ struct LaunchAdvertisingPage { | ||
| 132 | .margin({ | 132 | .margin({ |
| 133 | bottom: '51lpx' | 133 | bottom: '51lpx' |
| 134 | }) | 134 | }) |
| 135 | + .borderWidth(1) | ||
| 136 | + .borderColor(Color.White) | ||
| 135 | .backgroundColor('#80000000') | 137 | .backgroundColor('#80000000') |
| 136 | .onClick(()=>{ | 138 | .onClick(()=>{ |
| 137 | this.action() | 139 | this.action() |
| 138 | }) | 140 | }) |
| 139 | } | 141 | } |
| 140 | - if(this.defaultModel.screenType === '1') { | 142 | + if(this.defaultModel.screenType == '1') { |
| 141 | Column(){ | 143 | Column(){ |
| 142 | Image($r('app.media.LaunchPage_logo')) | 144 | Image($r('app.media.LaunchPage_logo')) |
| 143 | .width('278lpx') | 145 | .width('278lpx') |
| 144 | .height('154lpx') | 146 | .height('154lpx') |
| 145 | .margin({top:20}) | 147 | .margin({top:20}) |
| 146 | - }.width('100%').height('16%').backgroundColor(Color.White).expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM]) | 148 | + }.width('100%').height('16%').backgroundColor(Color.White) |
| 149 | + // .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM]) | ||
| 147 | } | 150 | } |
| 148 | } | 151 | } |
| 149 | .width('100%') | 152 | .width('100%') |
| @@ -157,7 +160,7 @@ struct LaunchAdvertisingPage { | @@ -157,7 +160,7 @@ struct LaunchAdvertisingPage { | ||
| 157 | .height('100%') | 160 | .height('100%') |
| 158 | .margin({top:'0'}) | 161 | .margin({top:'0'}) |
| 159 | } | 162 | } |
| 160 | - .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM]) | 163 | + // .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM]) |
| 161 | .width('100%') | 164 | .width('100%') |
| 162 | .height('100%') | 165 | .height('100%') |
| 163 | .backgroundColor(Color.White) | 166 | .backgroundColor(Color.White) |
| @@ -212,7 +215,7 @@ struct LaunchAdvertisingPage { | @@ -212,7 +215,7 @@ struct LaunchAdvertisingPage { | ||
| 212 | this.defaultModel.screenName = dataModel.launchAdInfo[0].matInfo.advTitle | 215 | this.defaultModel.screenName = dataModel.launchAdInfo[0].matInfo.advTitle |
| 213 | this.defaultModel.durations = dataModel.launchAdInfo[0].displayDuration | 216 | this.defaultModel.durations = dataModel.launchAdInfo[0].displayDuration |
| 214 | this.defaultModel.linkUrl = dataModel.launchAdInfo[0].matInfo.linkUrl | 217 | this.defaultModel.linkUrl = dataModel.launchAdInfo[0].matInfo.linkUrl |
| 215 | - if (dataModel.launchAdInfo[0].matInfo.startStyle === '1') { | 218 | + if (dataModel.launchAdInfo[0].matInfo.startStyle == '1') { |
| 216 | this.defaultModel.screenType = '2' | 219 | this.defaultModel.screenType = '2' |
| 217 | }else { | 220 | }else { |
| 218 | this.defaultModel.screenType = '1' | 221 | this.defaultModel.screenType = '1' |
-
Please register or login to post a comment