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-08-13 14:01:34 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
3a31d6baefd95b2ae47bf9497a673f623851f39e
3a31d6ba
2 parents
78327276
354f3e45
Merge branch 'main' of
http://192.168.1.42/developOne/harmonyPool
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
5 deletions
sight_harmony/features/wdComponent/src/main/ets/components/H5NewsWebPageComponent.ets
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/peopleShip/PeopleShipRecommendHeadComponent.ets
sight_harmony/features/wdComponent/src/main/ets/dialog/ENewspaperListDialog.ets
sight_harmony/features/wdComponent/src/main/ets/pages/MultiPictureListPage.ets
sight_harmony/features/wdComponent/src/main/ets/components/H5NewsWebPageComponent.ets
View file @
3a31d6b
...
...
@@ -92,6 +92,14 @@ export struct H5NewsWebPageComponent {
.backgroundColor(Color.White)
.height(150)
//全部评论
CommentDialogView({
index: $index,
currentIndex: $currentIndex,
showCommentList: $showCommentList,
publishCommentModel: $publishCommentModel,
interactData: $interactData,
}).visibility(this.showComment ? Visibility.Visible : Visibility.Hidden)
}
.margin({top: `${this.topSafeHeight}px`, bottom: `${this.bottomSafeHeight}px`})
.width(CommonConstants.FULL_WIDTH)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/MorningEveningPaperComponent.ets
View file @
3a31d6b
...
...
@@ -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 @
3a31d6b
...
...
@@ -26,7 +26,7 @@ export struct PeopleShipRecommendComponent {
.height('30vp')
.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 }) {
...
...
sight_harmony/features/wdComponent/src/main/ets/components/peopleShip/PeopleShipRecommendHeadComponent.ets
View file @
3a31d6b
...
...
@@ -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('40vp')
.height('40vp')
.width('44vp')
.height('44vp')
.borderRadius('22vp')
.objectFit(ImageFit.Cover)
...
...
@@ -28,7 +28,7 @@ export struct PeopleShipRecommendHeadComponent {
Row() {
Text(this.rmhInfo.userName)
.fontColor($r('app.color.color_222222'))
.fontSize($r('app.float.vp_1
3
'))
.fontSize($r('app.float.vp_1
4
'))
.fontWeight(600)
.maxLines(1)
.textOverflow({overflow: TextOverflow.Ellipsis})
...
...
sight_harmony/features/wdComponent/src/main/ets/dialog/ENewspaperListDialog.ets
View file @
3a31d6b
...
...
@@ -45,7 +45,7 @@ export struct ENewspaperListDialog {
// 手势滑动相关
private panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.Up | PanDirection.Down })
private topFixedHeight = 124
@State topHeight: number =
12
4
@State topHeight: number =
20
4
private deviceHeight: number = 0
...
...
sight_harmony/features/wdComponent/src/main/ets/pages/MultiPictureListPage.ets
View file @
3a31d6b
...
...
@@ -24,6 +24,13 @@ export struct MultiPictureListPage {
@Provide topSafeHeight: number = AppStorage.get<number>('topSafeHeight') || 0
// @Provide bgc: Color = Color.White;
@Provide duration: number = 0
@State noAnimation: boolean = true
pageTransition() {
// PageTransitionEnter({ duration: this.noAnimation ? 0 : 300 })
PageTransitionExit({ duration: !this.noAnimation ? 0 : 300 })
}
aboutToAppear(): void {
//获取宽高尺寸
...
...
@@ -65,6 +72,7 @@ export struct MultiPictureListPage {
})
.onClick(() => {
this.onBack();
this.noAnimation = false
router.back();
})
.id("backImg")
...
...
Please
register
or
login
to post a comment