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
陈剑华
2024-06-03 17:31:14 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
fd83ed4fda9081675f90df31c05846032318b14b
fd83ed4f
2 parents
365c03fc
410ed51e
Merge remote-tracking branch 'origin/main'
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
13 deletions
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/MorningEveningPaperComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/SingleColumn999Component.ets
sight_harmony/features/wdComponent/src/main/ets/components/peopleShip/PeopleShipRecommendComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/peopleShip/PeopleShipRecommendHeadComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/MorningEveningPaperComponent.ets
View file @
fd83ed4
...
...
@@ -26,6 +26,7 @@ import { common } from '@kit.AbilityKit';
import TrackingPageBrowseUtils from '../../utils/TrackingPageBrowseUtils'
import {TrackConstants,TrackParamConvert}from 'wdTracking/Index'
import { ColorUtils } from '../../utils/ColorUtils';
import { EmptyComponent,WDViewDefaultType } from '../view/EmptyComponent';
const TAG = 'MorningEveningPaperComponent';
...
...
@@ -37,6 +38,7 @@ export struct MorningEveningPaperComponent {
@State compListItem: CompList = {} as CompList
@Provide commentList: InteractDataDTO[] = []
@State audioPlayUrl: string = ""
@State isNoListContent:boolean = false;
// @Consume dailyPaperTopicPageId: number
// @Provide compListItem: CompList = {} as CompList
// @State morningEveningPaperDTO: MorningEveningPaperDTO = {
...
...
@@ -172,6 +174,7 @@ export struct MorningEveningPaperComponent {
this.totalTime = DateFormatUtil.secondToTime(duration);
this.progressVal = Math.floor(position * 100 / duration);
}
this.isNoListContent = this.compListItem && this.compListItem?.operDataList?.length > 0 ?false:true
} catch (exception) {
}
...
...
@@ -264,6 +267,9 @@ export struct MorningEveningPaperComponent {
}
ListItem() {
if(this.isNoListContent){
EmptyComponent({emptyType:WDViewDefaultType.WDViewDefaultType_NoListContent})
}else {
SingleColumn999Component({
compListItem: this.compListItem,
})
...
...
@@ -272,6 +278,7 @@ export struct MorningEveningPaperComponent {
})
}
}
}
// .height(`calc(100% - ${this.bottomSafeHeight + this.topSafeHeight + 'vp'})`)
.edgeEffect(EdgeEffect.None) // 必须设置列表为滑动到边缘无效果
.scrollBar(BarState.Off)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/SingleColumn999Component.ets
View file @
fd83ed4
...
...
@@ -152,7 +152,7 @@ export struct SingleColumn999Component {
scrollBackward: NestedScrollMode.SELF_FIRST
})
} else {
EmptyComponent({emptyType:WDViewDefaultType.WDViewDefaultType_NoListContent})
//
EmptyComponent({emptyType:WDViewDefaultType.WDViewDefaultType_NoListContent})
}
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/peopleShip/PeopleShipRecommendComponent.ets
View file @
fd83ed4
...
...
@@ -26,7 +26,7 @@ export struct PeopleShipRecommendComponent {
.height('30vp')
.fontColor($r('app.color.color_222222'))
.fontWeight(600)
.fontSize($r('app.float.vp_1
8
'))
.fontSize($r('app.float.vp_1
5_7
'))
Blank()
Button({ type: ButtonType.Normal, stateEffect: false }) {
...
...
@@ -35,7 +35,7 @@ export struct PeopleShipRecommendComponent {
.height('30vp')
.fontColor($r('app.color.color_999999'))
.fontWeight(400)
.fontSize($r('app.float.vp_1
4
'))
.fontSize($r('app.float.vp_1
3
'))
Image($r('app.media.ic_refresh'))
.width('14vp')
.height('14vp')
...
...
@@ -56,7 +56,7 @@ export struct PeopleShipRecommendComponent {
.width('100%')
.alignSelf(ItemAlign.Start)
.margin({
top: '
1
0vp',
top: '
-5
0vp',
bottom: '10vp'
})
...
...
@@ -75,7 +75,7 @@ export struct PeopleShipRecommendComponent {
.columnsTemplate('1fr 1fr 1fr')
.columnsGap(20)
.rowsGap(16)
.height(Math.ceil(this.rmhList.length / 3.0) * 1
32
)
.height(Math.ceil(this.rmhList.length / 3.0) * 1
26
)
.backgroundColor(Color.Transparent)
.margin({
right: '20vp',
...
...
@@ -94,7 +94,7 @@ export struct PeopleShipRecommendComponent {
.borderRadius('3vp')
.fontColor($r('app.color.color_999999'))
.fontWeight(500)
.fontSize($r('app.float.vp_1
4
'))
.fontSize($r('app.float.vp_1
3
'))
.fontColor(Color.White)
.onClick(() => {
// 点击一键关注
...
...
sight_harmony/features/wdComponent/src/main/ets/components/peopleShip/PeopleShipRecommendHeadComponent.ets
View file @
fd83ed4
...
...
@@ -11,8 +11,8 @@ export struct PeopleShipRecommendHeadComponent {
Column(){
Stack({ alignContent: Alignment.BottomEnd }) {
Image(this.rmhInfo.headPhotoUrl.length > 0 ? this.rmhInfo.headPhotoUrl : $r('app.media.WDAccountOwnerHedaerDefaultIcon'))
.width('44vp')
.height('44vp')
.width('40vp')
.height('40vp')
.borderRadius('22vp')
.objectFit(ImageFit.Cover)
...
...
@@ -23,12 +23,12 @@ export struct PeopleShipRecommendHeadComponent {
.margin({
right: '-3vp'
})
}.margin({ top:
12
, bottom: 8 })
}.margin({ top:
4
, bottom: 8 })
Row() {
Text(this.rmhInfo.userName)
.fontColor($r('app.color.color_222222'))
.fontSize($r('app.float.vp_1
4
'))
.fontSize($r('app.float.vp_1
3
'))
.fontWeight(600)
.maxLines(1)
.textOverflow({overflow: TextOverflow.Ellipsis})
...
...
@@ -49,14 +49,14 @@ export struct PeopleShipRecommendHeadComponent {
Text(this.rmhInfo.introduction)
.fontColor($r('app.color.color_B0B0B0'))
.fontSize($r('app.float.vp_12'))
.margin({ top: 8, bottom: 14 })
.fontSize($r('app.float.vp_11'))
.margin({ top: 6, bottom: 14 })
.textOverflow({overflow: TextOverflow.Ellipsis})
.maxLines(2)
.height(34)
}
.width('100%')
.height('11
6
vp')
.height('11
0
vp')
}
...
...
Please
register
or
login
to post a comment