Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wangliang_wd
2024-09-12 17:48:06 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7ac452835351a49990a9111fac382228f8960fca
7ac45283
1 parent
0fdd9e35
feat:优化启动广告展示问题
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
sight_harmony/products/phone/src/main/ets/pages/launchPage/LaunchAdvertisingPage.ets
sight_harmony/products/phone/src/main/ets/pages/viewModel/LaunchPageModel.ets
sight_harmony/products/phone/src/main/ets/pages/launchPage/LaunchAdvertisingPage.ets
View file @
7ac4528
...
...
@@ -89,7 +89,7 @@ struct LaunchAdvertisingPage {
}else {
//显示图片
Image(this.defaultModel.bootScreenUrl)
.objectFit(this.isPad?ImageFit.Contain:ImageFit.Co
ntain
)
.objectFit(this.isPad?ImageFit.Contain:ImageFit.Co
ver
)
// .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM])
.width('100%')
.height('100%')
...
...
sight_harmony/products/phone/src/main/ets/pages/viewModel/LaunchPageModel.ets
View file @
7ac4528
...
...
@@ -3,7 +3,7 @@ import LaunchDataModel from '../viewModel/LaunchDataModel'
import { HttpRequest } from 'wdNetwork/src/main/ets/http/HttpRequest';
import { HttpUrlUtils, ResponseDTO } from 'wdNetwork/Index';
import { Logger, SPHelper } from 'wdKit/Index';
import {
DisplayUtils,
Logger, SPHelper } from 'wdKit/Index';
import { SpConstants } from 'wdConstant/Index';
...
...
@@ -11,7 +11,7 @@ export class LaunchPageModel {
getLaunchPageData(): Promise<LaunchDataModel> {
return new Promise<LaunchDataModel>((success, fail) => {
HttpRequest.get<ResponseDTO<LaunchDataModel>>(HttpUrlUtils.getLaunchPageDataUrl()).then((data: ResponseDTO<LaunchDataModel>) => {
HttpRequest.get<ResponseDTO<LaunchDataModel>>(HttpUrlUtils.getLaunchPageDataUrl()
+ `?height=${DisplayUtils.getDeviceHeight()}&width=${DisplayUtils.getDeviceWidth()}`
).then((data: ResponseDTO<LaunchDataModel>) => {
if (!data || !data.data) {
fail("数据为空")
return
...
...
Please
register
or
login
to post a comment