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-09-20 23:20:43 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c6cf24bcc7fe56dc7a41a5cf2daafb3261ed267f
c6cf24bc
1 parent
7d2001f4
feat:调整电子报展示逻辑,调整动态详情UI展示问题
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
sight_harmony/features/wdComponent/src/main/ets/components/DynamicDetailComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/ENewspaperPageComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/PeopleShipHomePage.ets
sight_harmony/features/wdComponent/src/main/ets/components/DynamicDetailComponent.ets
View file @
c6cf24b
...
...
@@ -294,7 +294,7 @@ export struct DynamicDetailComponent {
}.padding({
left: $r('app.float.vp_16')
, right: $r('app.float.vp_16')
})
})
.width('100%')
//标题
Text(this.titleText())
.fontColor($r('app.color.color_222222'))
...
...
@@ -1209,6 +1209,11 @@ struct createImg {
}
})
}
.margin({
left: $r('app.float.margin_16'),
right: $r('app.float.margin_16'),
top: $r('app.float.margin_8')
})
}
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/ENewspaperPageComponent.ets
View file @
c6cf24b
...
...
@@ -25,6 +25,7 @@ export struct ENewspaperPageComponent {
@State picHeight: number = 0
@Provide itemPicWidth: number = 0
@Provide itemPicHeight: number = 0
@State isShowSkeleton:boolean = false
@Provide topMargin: number = DisplayUtils.getDeviceHeight()
...
...
@@ -83,6 +84,7 @@ export struct ENewspaperPageComponent {
builder: ENewspaperCalendarDialog({
selectDate: this.selectDate,
onDateChange: (date: RMCalendarBean) => {
this.isShowSkeleton = true
console.log("onDateChange-日历选择弹框", "date:", JSON.stringify(date))
if (date.fullYear && date.month && date.date) {
let month: number = date.month + 1
...
...
@@ -254,7 +256,7 @@ export struct ENewspaperPageComponent {
})
.id('e_newspaper_top')
if (!this.newspaperListBean || !this.newspaperListBean.list || this.newspaperListBean.list.length == 0) {
if (!this.newspaperListBean || !this.newspaperListBean.list || this.newspaperListBean.list.length == 0
|| this.isShowSkeleton
) {
newsSkeleton()
.alignRules({
top: { anchor: "e_newspaper_top", align: VerticalAlign.Bottom },
...
...
@@ -476,6 +478,7 @@ export struct ENewspaperPageComponent {
let listBean =
await NewspaperViewModel.getNewspaperList(this.calendarDate, this.itemPicWidth + 'x' + this.itemPicHeight)
this.newspaperListBean = listBean;
this.isShowSkeleton = false
} else {
this.showToastTip('网络出小差了,请检查网络后重试')
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/page/PeopleShipHomePage.ets
View file @
c6cf24b
...
...
@@ -109,7 +109,7 @@ struct PeopleShipHomePage {
topHeight: this.topHeight
})
.width("100%")
.height(this.topHeight)
//
.height(this.topHeight)
// 列表
PeopleShipHomeListComponent({
publishCount: this.publishCount,
...
...
Please
register
or
login
to post a comment