陈剑华

Merge remote-tracking branch 'origin/main'

@@ -299,7 +299,7 @@ export struct DynamicDetailComponent { @@ -299,7 +299,7 @@ export struct DynamicDetailComponent {
299 }.padding({ 299 }.padding({
300 left: $r('app.float.vp_16') 300 left: $r('app.float.vp_16')
301 , right: $r('app.float.vp_16') 301 , right: $r('app.float.vp_16')
302 - }) 302 + }).width('100%')
303 //标题 303 //标题
304 Text(this.titleText()) 304 Text(this.titleText())
305 .fontColor($r('app.color.color_222222')) 305 .fontColor($r('app.color.color_222222'))
@@ -1221,6 +1221,11 @@ struct createImg { @@ -1221,6 +1221,11 @@ struct createImg {
1221 } 1221 }
1222 }) 1222 })
1223 } 1223 }
  1224 + .margin({
  1225 + left: $r('app.float.margin_16'),
  1226 + right: $r('app.float.margin_16'),
  1227 + top: $r('app.float.margin_8')
  1228 + })
1224 } 1229 }
1225 } 1230 }
1226 1231
@@ -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,