wangliang_wd

feat:调整电子报展示逻辑,调整动态详情UI展示问题

@@ -294,7 +294,7 @@ export struct DynamicDetailComponent { @@ -294,7 +294,7 @@ export struct DynamicDetailComponent {
294 }.padding({ 294 }.padding({
295 left: $r('app.float.vp_16') 295 left: $r('app.float.vp_16')
296 , right: $r('app.float.vp_16') 296 , right: $r('app.float.vp_16')
297 - }) 297 + }).width('100%')
298 //标题 298 //标题
299 Text(this.titleText()) 299 Text(this.titleText())
300 .fontColor($r('app.color.color_222222')) 300 .fontColor($r('app.color.color_222222'))
@@ -1209,6 +1209,11 @@ struct createImg { @@ -1209,6 +1209,11 @@ struct createImg {
1209 } 1209 }
1210 }) 1210 })
1211 } 1211 }
  1212 + .margin({
  1213 + left: $r('app.float.margin_16'),
  1214 + right: $r('app.float.margin_16'),
  1215 + top: $r('app.float.margin_8')
  1216 + })
1212 } 1217 }
1213 } 1218 }
1214 1219
@@ -25,6 +25,7 @@ export struct ENewspaperPageComponent { @@ -25,6 +25,7 @@ export struct ENewspaperPageComponent {
25 @State picHeight: number = 0 25 @State picHeight: number = 0
26 @Provide itemPicWidth: number = 0 26 @Provide itemPicWidth: number = 0
27 @Provide itemPicHeight: number = 0 27 @Provide itemPicHeight: number = 0
  28 + @State isShowSkeleton:boolean = false
28 29
29 @Provide topMargin: number = DisplayUtils.getDeviceHeight() 30 @Provide topMargin: number = DisplayUtils.getDeviceHeight()
30 31
@@ -83,6 +84,7 @@ export struct ENewspaperPageComponent { @@ -83,6 +84,7 @@ export struct ENewspaperPageComponent {
83 builder: ENewspaperCalendarDialog({ 84 builder: ENewspaperCalendarDialog({
84 selectDate: this.selectDate, 85 selectDate: this.selectDate,
85 onDateChange: (date: RMCalendarBean) => { 86 onDateChange: (date: RMCalendarBean) => {
  87 + this.isShowSkeleton = true
86 console.log("onDateChange-日历选择弹框", "date:", JSON.stringify(date)) 88 console.log("onDateChange-日历选择弹框", "date:", JSON.stringify(date))
87 if (date.fullYear && date.month && date.date) { 89 if (date.fullYear && date.month && date.date) {
88 let month: number = date.month + 1 90 let month: number = date.month + 1
@@ -254,7 +256,7 @@ export struct ENewspaperPageComponent { @@ -254,7 +256,7 @@ export struct ENewspaperPageComponent {
254 }) 256 })
255 .id('e_newspaper_top') 257 .id('e_newspaper_top')
256 258
257 - if (!this.newspaperListBean || !this.newspaperListBean.list || this.newspaperListBean.list.length == 0) { 259 + if (!this.newspaperListBean || !this.newspaperListBean.list || this.newspaperListBean.list.length == 0 || this.isShowSkeleton) {
258 newsSkeleton() 260 newsSkeleton()
259 .alignRules({ 261 .alignRules({
260 top: { anchor: "e_newspaper_top", align: VerticalAlign.Bottom }, 262 top: { anchor: "e_newspaper_top", align: VerticalAlign.Bottom },
@@ -476,6 +478,7 @@ export struct ENewspaperPageComponent { @@ -476,6 +478,7 @@ export struct ENewspaperPageComponent {
476 let listBean = 478 let listBean =
477 await NewspaperViewModel.getNewspaperList(this.calendarDate, this.itemPicWidth + 'x' + this.itemPicHeight) 479 await NewspaperViewModel.getNewspaperList(this.calendarDate, this.itemPicWidth + 'x' + this.itemPicHeight)
478 this.newspaperListBean = listBean; 480 this.newspaperListBean = listBean;
  481 + this.isShowSkeleton = false
479 } else { 482 } else {
480 this.showToastTip('网络出小差了,请检查网络后重试') 483 this.showToastTip('网络出小差了,请检查网络后重试')
481 } 484 }
@@ -109,7 +109,7 @@ struct PeopleShipHomePage { @@ -109,7 +109,7 @@ struct PeopleShipHomePage {
109 topHeight: this.topHeight 109 topHeight: this.topHeight
110 }) 110 })
111 .width("100%") 111 .width("100%")
112 - .height(this.topHeight) 112 + // .height(this.topHeight)
113 // 列表 113 // 列表
114 PeopleShipHomeListComponent({ 114 PeopleShipHomeListComponent({
115 publishCount: this.publishCount, 115 publishCount: this.publishCount,