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-09-24 09:36:04 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
2edd308373409c51d91ef6d7059f4c10d9ac9c58
2edd3083
2 parents
6ef9422a
51be8c92
Merge branch 'main' of
http://192.168.1.42/developOne/harmonyPool
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
79 additions
and
27 deletions
sight_harmony/features/wdComponent/src/main/ets/components/DynamicDetailComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/ImageAndTextPageComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/LiveOperRowListView.ets
sight_harmony/features/wdComponent/src/main/ets/components/DynamicDetailComponent.ets
View file @
2edd308
...
...
@@ -139,29 +139,7 @@ export struct DynamicDetailComponent {
build() {
Column() {
//logo、日期
Row() {
Image($r('app.media.ic_article_rmh'))
.width($r('app.float.margin_80'))
.height($r('app.float.margin_28'))
.margin({ left: $r('app.float.margin_16') })
Blank()
Text(this.publishTime)
.fontColor($r('app.color.color_B0B0B0'))
.fontSize($r('app.float.font_size_12'))
.lineHeight($r('app.float.margin_28'))
.margin({ right: $r('app.float.margin_16') })
}
.height($r('app.float.margin_48'))
.width('100%')
.alignItems(VerticalAlign.Bottom)
.padding({ bottom: 5 })
.margin({top: `${this.topSafeHeight}px`})
//分割线
Image($r('app.media.ic_news_detail_division'))
.width('100%')
.height($r('app.float.margin_6'))
.padding({ left: $r('app.float.margin_16'), right: $r('app.float.margin_16') })
this.topNav()
Stack({ alignContent: Alignment.Bottom }) {
if (!this.isNetConnected) {
EmptyComponent({
...
...
@@ -704,6 +682,72 @@ export struct DynamicDetailComponent {
.height('100%')
}
@Builder topNav() {
//logo、日期
Row() {
Image($r('app.media.ic_article_rmh'))
.width($r('app.float.margin_80'))
.height($r('app.float.margin_28'))
.margin({ left: $r('app.float.margin_16') })
Blank()
Text(this.publishTime)
.fontColor($r('app.color.color_B0B0B0'))
.fontSize($r('app.float.font_size_12'))
.lineHeight($r('app.float.margin_28'))
.margin({ right: $r('app.float.margin_16') })
}
.height($r('app.float.margin_48'))
.width('100%')
.alignItems(VerticalAlign.Bottom)
.padding({ bottom: 5 })
.margin({top: `${this.topSafeHeight}px`})
//分割线
Image($r('app.media.ic_news_detail_division'))
.width('100%')
.height($r('app.float.margin_6'))
.padding({ left: $r('app.float.margin_16'), right: $r('app.float.margin_16') })
// 发布时间 ,TODO:需要参考文章详情
// Column() {
// Row() {
// if (this.isNetConnected && this.contentDetailData) {
// if (this.contentDetailData.rmhPlatform == 1) { // 人民号
// if (this.contentDetailData?.rmhInfo?.userType == "5") { // 内容源账号
// Blank().height(1)
// } else {
// Image($r('app.media.logo_rmh')).width(80) .height(28)
// }
// } else if (this.contentDetailData.rmhPlatform == 2) { // 普通用户
// Blank().height(1)
// } else {
// Image($r('app.media.logo_rmrb')).width(80) .height(28)
// }
// Text(this.publishTime)
// .fontColor($r('app.color.color_B0B0B0'))
// .fontSize(13)
// .height(20)
// }
// }
// .width(CommonConstants.FULL_WIDTH)
// .height($r('app.float.margin_48'))
// .padding({ left: 15, right: 15, })
// .justifyContent(FlexAlign.SpaceBetween)
// .alignItems(VerticalAlign.Bottom)
//
// // if (this.isNetConnected && !this.detailContentEmpty) {
// Row() {
// Image($r('app.media.ic_news_detail_division'))
// .width('100%')
// .height(6)
// .margin({ top: 10 })
// .objectFit(ImageFit.Fill)
// }
// .padding({ left: 15, right: 15 })
// .backgroundColor(Color.White)
// // }
// }.backgroundColor(Color.White)
}
private titleText() {
if(!StringUtils.isEmpty(this.contentDetailData.newsContent)){
return this.contentDetailData.newsContent
...
...
sight_harmony/features/wdComponent/src/main/ets/components/ImageAndTextPageComponent.ets
View file @
2edd308
...
...
@@ -264,9 +264,17 @@ export struct ImageAndTextPageComponent {
Column() {
Row() {
if (this.isNetConnected && !this.detailContentEmpty) {
Image(this.contentDetailData?.rmhInfo ? $r('app.media.logo_rmh') : $r('app.media.logo_rmrb'))
.width(80)
.height(28)
if (this.contentDetailData.rmhPlatform == 1) { // 人民号
if (this.contentDetailData?.rmhInfo?.userType == "5") { // 内容源账号
Blank().height(1)
} else {
Image($r('app.media.logo_rmh')).width(80) .height(28)
}
} else if (this.contentDetailData.rmhPlatform == 2) { // 普通用户
Blank().height(1)
} else {
Image($r('app.media.logo_rmrb')).width(80) .height(28)
}
Text(this.publishTime)
.fontColor($r('app.color.color_B0B0B0'))
.fontSize(13)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/view/LiveOperRowListView.ets
View file @
2edd308
...
...
@@ -382,7 +382,7 @@ export struct LiveOperRowListView {
this.publishCommentModel.rootCommentId = '-1';
this.publishCommentModel.parentId = '-1';
this.publishCommentModel.placeHolderText = "说两句..."
this.publishCommentModel.commentContent = ""
//
this.publishCommentModel.commentContent = ""
this.commentInputDialogController?.open();
}
...
...
Please
register
or
login
to post a comment