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-12 17:11:18 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f5d53c3f0971191a0fe66e0a29abdecf3d662959
f5d53c3f
1 parent
db1c7f48
feat:优化早晚报
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/MorningEveningPaperComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/peopleShip/PeopleShipRecommendComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/MorningEveningPaperComponent.ets
View file @
f5d53c3
...
...
@@ -37,6 +37,7 @@ export struct MorningEveningPaperComponent {
@Provide commentList: InteractDataDTO[] = []
@State audioPlayUrl: string = ""
@State isNoListContent:boolean = false;
@State isContentFailed:boolean = false;
@State executedStartTime:number = new Date().getTime()
// @Consume dailyPaperTopicPageId: number
// @Provide compListItem: CompList = {} as CompList
...
...
@@ -177,6 +178,7 @@ export struct MorningEveningPaperComponent {
}
this.isNoListContent = this.compListItem && this.compListItem?.operDataList?.length > 0 ?false:true
} catch (exception) {
this.isContentFailed = true
}
...
...
@@ -264,6 +266,11 @@ export struct MorningEveningPaperComponent {
}
build() {
if (this.isContentFailed){
Column(){
EmptyComponent({emptyType:WDViewDefaultType.WDViewDefaultType_ContentFailed})
}.backgroundColor(this.mixedBgColor ?? Color.Black)
}else {
Stack({ alignContent: Alignment.Top }) {
List() {
if (this.pageInfoBean?.topicInfo?.frontLinkObject) {
...
...
@@ -316,6 +323,9 @@ export struct MorningEveningPaperComponent {
.backgroundColor(this.mixedBgColor ?? Color.Black)
}
}
@Builder
topPaperTitle(){
Column(){
...
...
sight_harmony/features/wdComponent/src/main/ets/components/peopleShip/PeopleShipRecommendComponent.ets
View file @
f5d53c3
...
...
@@ -23,10 +23,10 @@ export struct PeopleShipRecommendComponent {
right: '4vp'
})
Text('为你推荐优质号主')
.height('
4
0vp')
.height('
3
0vp')
.fontColor($r('app.color.color_222222'))
.fontWeight(600)
.fontSize($r('app.float.vp_1
5_7
'))
.fontSize($r('app.float.vp_1
8
'))
Blank()
Button({ type: ButtonType.Normal, stateEffect: false }) {
...
...
Please
register
or
login
to post a comment