wangliang_wd

feat:优化启动广告展示问题

@@ -89,7 +89,7 @@ struct LaunchAdvertisingPage { @@ -89,7 +89,7 @@ struct LaunchAdvertisingPage {
89 }else { 89 }else {
90 //显示图片 90 //显示图片
91 Image(this.defaultModel.bootScreenUrl) 91 Image(this.defaultModel.bootScreenUrl)
92 - .objectFit(this.isPad?ImageFit.Contain:ImageFit.Contain) 92 + .objectFit(this.isPad?ImageFit.Contain:ImageFit.Cover)
93 // .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM]) 93 // .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM])
94 .width('100%') 94 .width('100%')
95 .height('100%') 95 .height('100%')
@@ -3,7 +3,7 @@ import LaunchDataModel from '../viewModel/LaunchDataModel' @@ -3,7 +3,7 @@ import LaunchDataModel from '../viewModel/LaunchDataModel'
3 3
4 import { HttpRequest } from 'wdNetwork/src/main/ets/http/HttpRequest'; 4 import { HttpRequest } from 'wdNetwork/src/main/ets/http/HttpRequest';
5 import { HttpUrlUtils, ResponseDTO } from 'wdNetwork/Index'; 5 import { HttpUrlUtils, ResponseDTO } from 'wdNetwork/Index';
6 -import { Logger, SPHelper } from 'wdKit/Index'; 6 +import { DisplayUtils, Logger, SPHelper } from 'wdKit/Index';
7 import { SpConstants } from 'wdConstant/Index'; 7 import { SpConstants } from 'wdConstant/Index';
8 8
9 9
@@ -11,7 +11,7 @@ export class LaunchPageModel { @@ -11,7 +11,7 @@ export class LaunchPageModel {
11 11
12 getLaunchPageData(): Promise<LaunchDataModel> { 12 getLaunchPageData(): Promise<LaunchDataModel> {
13 return new Promise<LaunchDataModel>((success, fail) => { 13 return new Promise<LaunchDataModel>((success, fail) => {
14 - HttpRequest.get<ResponseDTO<LaunchDataModel>>(HttpUrlUtils.getLaunchPageDataUrl()).then((data: ResponseDTO<LaunchDataModel>) => { 14 + HttpRequest.get<ResponseDTO<LaunchDataModel>>(HttpUrlUtils.getLaunchPageDataUrl()+ `?height=${DisplayUtils.getDeviceHeight()}&width=${DisplayUtils.getDeviceWidth()}`).then((data: ResponseDTO<LaunchDataModel>) => {
15 if (!data || !data.data) { 15 if (!data || !data.data) {
16 fail("数据为空") 16 fail("数据为空")
17 return 17 return