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-08-21 09:20:27 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2d3010bd6363ee6cd1acb3ce7b92a17ba0f0102b
2d3010bd
1 parent
4b17e246
feat:优化早晚报,优化个人主页
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/MorningEveningPaperComponent.ets
sight_harmony/features/wdComponent/src/main/ets/pages/MineHomePage.ets
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/MorningEveningPaperComponent.ets
View file @
2d3010b
...
...
@@ -163,9 +163,9 @@ export struct MorningEveningPaperComponent {
this.getAllContentInteractData(this.compListItem.operDataList)
}
console.log(TAG, 'compInfoBean?.compList[0].audioDataList', JSON.stringify(compInfoBean?.compList[0].audioDataList))
if (compInfoBean?.compList[0].audioDataList) {
this.audioPlayUrl = compInfoBean?.compList[0].audioDataList[0].audioUrl
this.audioTitle = compInfoBean?.compList[0].audioDataList[0].title
if (compInfoBean?.compList[0].audioDataList.length > 0) {
this.audioPlayUrl = compInfoBean?.compList[0].audioDataList[0]?.audioUrl
this.audioTitle = compInfoBean?.compList[0].audioDataList[0]?.title
console.log(TAG, 'this.audioPlayUrl', this.audioPlayUrl)
}
}
...
...
@@ -215,6 +215,11 @@ export struct MorningEveningPaperComponent {
// 图片转换为PixelMap对象
// const pixelMap: image.PixelMap = await image2PixelMap(item.icon);
console.log(TAG, "compInfoBean compStyle = " + imageUrl)
if (this.pageInfoBean.backgroundColor.length > 0){
this.mixedBgColor = this.pageInfoBean.backgroundColor
return
}
if (imageUrl.length > 0 && this.pageInfoBean.topicInfo.frontFlag === 1) {
const imageSource: image.ImageSource | undefined = await getPicture(imageUrl)
...
...
sight_harmony/features/wdComponent/src/main/ets/pages/MineHomePage.ets
View file @
2d3010b
...
...
@@ -253,10 +253,10 @@ struct MineHomePage {
Tabs({controller: this.controller}) {
TabContent() {
HomePageBottomCommentComponent({commentNum:$commentNum})
}
}
.gesture(PanGesture(new PanGestureOptions({ direction: PanDirection.Right })))
TabContent() {
HomePageBottomFollowComponent()
}
}
.gesture(PanGesture(new PanGestureOptions({ direction: PanDirection.Left })))
}
.backgroundColor($r('app.color.white'))
.animationDuration(0)
...
...
Please
register
or
login
to post a comment