王士厅
@@ -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 }
@@ -131,11 +131,11 @@ export struct RmhTitle { @@ -131,11 +131,11 @@ export struct RmhTitle {
131 build() { 131 build() {
132 Flex() { 132 Flex() {
133 Stack() { 133 Stack() {
134 - Image(this.loadImg ? this.rmhInfo?.rmhHeadUrl : this.rmhInfo.userType == '1'?$r('app.media.default_head_userPage'):$r('app.media.comment_rmh_tag'))  
135 - .alt(this.rmhInfo.userType == '1'?$r('app.media.default_head_userPage'):$r('app.media.comment_rmh_tag')) 134 + Image(this.loadImg ? this.rmhInfo?.rmhHeadUrl : this.rmhInfo.userType == '1'?$r('app.media.default_head_userPage'):$r('app.media.AccountOwner_DefaultIcon'))
  135 + .alt(this.rmhInfo.userType == '1'?$r('app.media.default_head_userPage'):$r('app.media.AccountOwner_DefaultIcon'))
136 .width(36) 136 .width(36)
137 .height(36) 137 .height(36)
138 - .borderRadius(50) 138 + .borderRadius(18)
139 .border({ 139 .border({
140 width: 0.5, 140 width: 0.5,
141 color: '#0D000000', // 5% 透明度的黑色 141 color: '#0D000000', // 5% 透明度的黑色
@@ -78,8 +78,8 @@ export struct Card12Component { @@ -78,8 +78,8 @@ export struct Card12Component {
78 CarderInteraction({contentDTO: this.contentDTO}) 78 CarderInteraction({contentDTO: this.contentDTO})
79 } 79 }
80 .padding({ 80 .padding({
81 - left: 16,  
82 - right: 16, 81 + left: 10,
  82 + right: 10,
83 top: $r('app.float.card_comp_pagePadding_tb'), 83 top: $r('app.float.card_comp_pagePadding_tb'),
84 bottom: $r('app.float.card_comp_pagePadding_tb') 84 bottom: $r('app.float.card_comp_pagePadding_tb')
85 }) 85 })
@@ -100,8 +100,8 @@ export struct Card14Component { @@ -100,8 +100,8 @@ export struct Card14Component {
100 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件 100 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件
101 } 101 }
102 .padding({ 102 .padding({
103 - left: 16,  
104 - right: 16, 103 + left: 10,
  104 + right: 10,
105 top: $r('app.float.card_comp_pagePadding_tb'), 105 top: $r('app.float.card_comp_pagePadding_tb'),
106 bottom: $r('app.float.card_comp_pagePadding_tb') 106 bottom: $r('app.float.card_comp_pagePadding_tb')
107 }) 107 })
@@ -98,8 +98,8 @@ export struct Card15Component { @@ -98,8 +98,8 @@ export struct Card15Component {
98 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件 98 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件
99 } 99 }
100 .padding({ 100 .padding({
101 - left: 16,  
102 - right: 16, 101 + left: 10,
  102 + right: 10,
103 top: $r('app.float.card_comp_pagePadding_tb'), 103 top: $r('app.float.card_comp_pagePadding_tb'),
104 bottom: $r('app.float.card_comp_pagePadding_tb') 104 bottom: $r('app.float.card_comp_pagePadding_tb')
105 }) 105 })
@@ -131,8 +131,8 @@ export struct Card16Component { @@ -131,8 +131,8 @@ export struct Card16Component {
131 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件 131 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件
132 } 132 }
133 .padding({ 133 .padding({
134 - left: 16,  
135 - right: 16, 134 + left: 10,
  135 + right: 10,
136 top: 8, 136 top: 8,
137 bottom: $r('app.float.card_comp_pagePadding_tb') 137 bottom: $r('app.float.card_comp_pagePadding_tb')
138 }) 138 })
@@ -86,8 +86,8 @@ export struct Card19Component { @@ -86,8 +86,8 @@ export struct Card19Component {
86 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件 86 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件
87 } 87 }
88 .padding({ 88 .padding({
89 - left: 16,  
90 - right: 16, 89 + left: 10,
  90 + right: 10,
91 top: $r('app.float.card_comp_pagePadding_tb'), 91 top: $r('app.float.card_comp_pagePadding_tb'),
92 bottom: $r('app.float.card_comp_pagePadding_tb') 92 bottom: $r('app.float.card_comp_pagePadding_tb')
93 }) 93 })
@@ -109,8 +109,8 @@ export struct Card20Component { @@ -109,8 +109,8 @@ export struct Card20Component {
109 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件 109 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件
110 } 110 }
111 .padding({ 111 .padding({
112 - left: 16,  
113 - right: 16, 112 + left: 10,
  113 + right: 10,
114 top: $r('app.float.card_comp_pagePadding_tb'), 114 top: $r('app.float.card_comp_pagePadding_tb'),
115 bottom: $r('app.float.card_comp_pagePadding_tb') 115 bottom: $r('app.float.card_comp_pagePadding_tb')
116 }) 116 })
@@ -105,8 +105,8 @@ export struct Card21Component { @@ -105,8 +105,8 @@ export struct Card21Component {
105 ProcessUtils.processPage(this.contentDTO) 105 ProcessUtils.processPage(this.contentDTO)
106 }) 106 })
107 .padding({ 107 .padding({
108 - left: 16,  
109 - right: 16, 108 + left: 10,
  109 + right: 10,
110 top: $r('app.float.card_comp_pagePadding_tb'), 110 top: $r('app.float.card_comp_pagePadding_tb'),
111 bottom: $r('app.float.card_comp_pagePadding_tb') 111 bottom: $r('app.float.card_comp_pagePadding_tb')
112 }) 112 })
@@ -124,7 +124,7 @@ export struct Card6Component { @@ -124,7 +124,7 @@ export struct Card6Component {
124 .borderRadius(5) 124 .borderRadius(5)
125 .aspectRatio(this.contentDTO.appStyle === CompStyle.Card_13 ? 3 / 2 : 3 / 4) 125 .aspectRatio(this.contentDTO.appStyle === CompStyle.Card_13 ? 3 / 2 : 3 / 4)
126 .height(this.contentDTO.appStyle === CompStyle.Card_13 ? 78 : 156) 126 .height(this.contentDTO.appStyle === CompStyle.Card_13 ? 78 : 156)
127 - .border({width: 0.5, color: 0xf5f5f5}) 127 + .border({width: 0.5, color: '#0D000000'})
128 .borderStyle(BorderStyle.Solid) 128 .borderStyle(BorderStyle.Solid)
129 CardMediaInfo({ contentDTO: this.contentDTO }) 129 CardMediaInfo({ contentDTO: this.contentDTO })
130 } 130 }
@@ -65,7 +65,7 @@ export struct ZhCarouselLayout01 { @@ -65,7 +65,7 @@ export struct ZhCarouselLayout01 {
65 Logger.info(TAG, 65 Logger.info(TAG,
66 `aboutToAppear, beanList:${this.compDTO?.operDataList?.length}, currentBreakpoint:${this.currentBreakpoint}`); 66 `aboutToAppear, beanList:${this.compDTO?.operDataList?.length}, currentBreakpoint:${this.currentBreakpoint}`);
67 let list: number[] = [] 67 let list: number[] = []
68 - for (let i = 1; i <= this.compDTO?.operDataList?.length; i++) { 68 + for (let i = 1; i <= this.filterAtv()?.length; i++) {
69 list.push(i); 69 list.push(i);
70 } 70 }
71 this.data = new MyDataSource(list) 71 this.data = new MyDataSource(list)
@@ -84,17 +84,23 @@ export struct ZhCarouselLayout01 { @@ -84,17 +84,23 @@ export struct ZhCarouselLayout01 {
84 } 84 }
85 } 85 }
86 86
  87 + filterAtv() {
  88 + return this.compDTO.operDataList.filter(((item: ContentDTO) => {
  89 + return !item.linkUrl.includes('/h/atv')
  90 + }))
  91 + }
  92 +
87 build() { 93 build() {
88 94
89 if (this.compDTO?.operDataList?.length) { 95 if (this.compDTO?.operDataList?.length) {
90 if (this.compDTO?.operDataList.length > 1) { 96 if (this.compDTO?.operDataList.length > 1) {
91 Stack() { 97 Stack() {
92 Swiper() { 98 Swiper() {
93 - ForEach(this.compDTO?.operDataList, (item: ContentDTO, index: number) => { 99 + ForEach(this.filterAtv(), (item: ContentDTO, index: number) => {
94 CarouselLayout01CardView({ 100 CarouselLayout01CardView({
95 item: item, 101 item: item,
96 - length: this.compDTO.operDataList.length,  
97 - showPicBorderRadius: this.compDTO.operDataList.length == 1 102 + length: this.filterAtv().length,
  103 + showPicBorderRadius: this.filterAtv().length == 1
98 }) 104 })
99 .onClick((event: ClickEvent) => { 105 .onClick((event: ClickEvent) => {
100 InfomationCardClick.track(this.compDTO, item, this.pageId, this.pageName) 106 InfomationCardClick.track(this.compDTO, item, this.pageId, this.pageName)
@@ -172,13 +178,13 @@ export struct ZhCarouselLayout01 { @@ -172,13 +178,13 @@ export struct ZhCarouselLayout01 {
172 .width(CommonConstants.FULL_WIDTH) 178 .width(CommonConstants.FULL_WIDTH)
173 } else { 179 } else {
174 CarouselLayout01CardView({ 180 CarouselLayout01CardView({
175 - item: this.compDTO.operDataList[0], 181 + item: this.filterAtv()[0],
176 length: 1, 182 length: 1,
177 - showPicBorderRadius: this.compDTO.operDataList.length == 1 183 + showPicBorderRadius: this.filterAtv().length == 1
178 }) 184 })
179 .onClick((event: ClickEvent) => { 185 .onClick((event: ClickEvent) => {
180 - InfomationCardClick.track(this.compDTO, this.compDTO.operDataList[0], this.pageId, this.pageName)  
181 - ProcessUtils.processPage(this.compDTO.operDataList[0]) 186 + InfomationCardClick.track(this.compDTO, this.filterAtv()[0], this.pageId, this.pageName)
  187 + ProcessUtils.processPage(this.filterAtv()[0])
182 }) 188 })
183 .padding({ 189 .padding({
184 left: 10, 190 left: 10,
@@ -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,
@@ -107,7 +107,7 @@ export struct HorizontalStrokeCardThreeTwoRadioForMoreComponent { @@ -107,7 +107,7 @@ export struct HorizontalStrokeCardThreeTwoRadioForMoreComponent {
107 .width(this.compDTO.operDataList.length == 2 ? 210 : 150) 107 .width(this.compDTO.operDataList.length == 2 ? 210 : 150)
108 .objectFit(ImageFit.Contain) 108 .objectFit(ImageFit.Contain)
109 .borderRadius(4) 109 .borderRadius(4)
110 - .border({width: 0.5, color: 0xf5f5f5}) 110 + .border({width: 0.5, color: '#0D000000'})
111 CardMediaInfo({ 111 CardMediaInfo({
112 livePeopleNum:false, 112 livePeopleNum:false,
113 contentDTO: item 113 contentDTO: item
@@ -168,7 +168,7 @@ export struct LiveHorizontalCardComponent { @@ -168,7 +168,7 @@ export struct LiveHorizontalCardComponent {
168 }) 168 })
169 } 169 }
170 .borderRadius(4) 170 .borderRadius(4)
171 - .border({width: 1, color: 0xf5f5f5}) 171 + .border({width: 1, color: '#0D000000'})
172 172
173 Text(item.newsTitle) 173 Text(item.newsTitle)
174 .fontSize(15) 174 .fontSize(15)