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
xugenyuan
2024-06-07 11:05:15 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
539afde97d8b2e7f4fd816aa49cdcc74ed9f6243
539afde9
1 parent
113d1795
ref |> 桌面组件相关
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
sight_harmony/products/phone/src/main/ets/dailynewspaperformability/NewspaperDataFetcher.ets
sight_harmony/products/phone/src/main/ets/dailynewspaperwidget/common/NewspaperWidgetData.ets
sight_harmony/products/phone/src/main/ets/dailynewspaperwidget/pages/DailyNewspaperWidgetCard.ets
sight_harmony/products/phone/src/main/ets/dailynewspaperformability/NewspaperDataFetcher.ets
View file @
539afde
...
...
@@ -98,6 +98,7 @@ export class NewspaperDataFetcher {
let file = fs.openSync(filePath)
fileFDs[fileName] = file.fd
data.paperInfo.localLeftImageFileName = fileName
data.paperInfo.localLeftImageFilePath = filePath
data.formImages = fileFDs
if (--donwloadCount == 0) { refreshCallback(data) }
...
...
@@ -125,6 +126,7 @@ export class NewspaperDataFetcher {
let file = fs.openSync(filePath)
fileFDs[fileName] = file.fd
data.paperContents[index].localCoverFileName = fileName
data.paperContents[index].localCoverFilePath = filePath
data.formImages = fileFDs
if (--donwloadCount == 0) { refreshCallback(data) }
...
...
sight_harmony/products/phone/src/main/ets/dailynewspaperwidget/common/NewspaperWidgetData.ets
View file @
539afde
...
...
@@ -13,6 +13,7 @@ export class FormNewspaperPaperInfo {
leftImageUrl?: string
localLeftImageFileName?: ResourceStr // 传递图片用
localLeftImageFileFD? : number // 传递图片用
localLeftImageFilePath? : string // 传递图片用
leftTitle?: string
leftDeepLink?: string
...
...
@@ -24,6 +25,7 @@ export class FormNewspaperPaperContent {
coverUrl?: string
localCoverFileName?: ResourceStr // 传递图片用
localCoverFileFD? : number // 传递图片用
localCoverFilePath? : string // 传递图片用
deepLink: string = ""
}
...
...
sight_harmony/products/phone/src/main/ets/dailynewspaperwidget/pages/DailyNewspaperWidgetCard.ets
View file @
539afde
...
...
@@ -109,6 +109,7 @@ struct ContentCellView {
bottom: this.hasImage ? 0 : 6})
if (this.hasImage) {
// Image(this.content.localCoverFilePath)
Image("memory://" + this.content.localCoverFileName)
// Image(this.content.coverUrl)
.alt($r("app.media.desktop_card_comp_place_holder_3_4"))
...
...
Please
register
or
login
to post a comment