王士厅
@@ -115,6 +115,7 @@ export struct CompParser { @@ -115,6 +115,7 @@ export struct CompParser {
115 } 115 }
116 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_02) { 116 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_02) {
117 ZhSingleRow02({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName }) 117 ZhSingleRow02({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName })
  118 + Divider().strokeWidth(1).color('#f5f5f5').width(CommonConstants.FULL_WIDTH).padding({ left: 10, right: 10 })
118 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_03) { 119 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_03) {
119 ZhSingleRow03({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName }) 120 ZhSingleRow03({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName })
120 } else if (this.compDTO.compStyle === CompStyle.Zh_Grid_Layout_02) { //双列流小视频,一行两图卡 ->标题 121 } else if (this.compDTO.compStyle === CompStyle.Zh_Grid_Layout_02) { //双列流小视频,一行两图卡 ->标题
@@ -131,6 +132,7 @@ export struct CompParser { @@ -131,6 +132,7 @@ export struct CompParser {
131 132
132 } else if (this.compDTO.compStyle === CompStyle.Zh_Grid_Layout_03) { 133 } else if (this.compDTO.compStyle === CompStyle.Zh_Grid_Layout_03) {
133 ZhGridLayout03({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName }) 134 ZhGridLayout03({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName })
  135 + Divider().strokeWidth(1).color('#f5f5f5').width(CommonConstants.FULL_WIDTH).padding({ left: 10, right: 10 })
134 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_04) { 136 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_04) {
135 ZhSingleRow04({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName }) 137 ZhSingleRow04({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName })
136 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_05) { 138 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_05) {
@@ -178,6 +180,7 @@ export struct CompParser { @@ -178,6 +180,7 @@ export struct CompParser {
178 }) 180 })
179 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_04) { 181 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_04) {
180 ZhSingleColumn04({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName }) 182 ZhSingleColumn04({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName })
  183 + Divider().strokeWidth(1).color('#f5f5f5').width(CommonConstants.FULL_WIDTH).padding({ left: 10, right: 10 })
181 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_05) { 184 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_05) {
182 // ZhSingleColumn05({ compDTO: compDTO }) 185 // ZhSingleColumn05({ compDTO: compDTO })
183 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_09) { 186 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_09) {
@@ -216,7 +219,8 @@ export struct CompParser { @@ -216,7 +219,8 @@ export struct CompParser {
216 Divider().strokeWidth(5).color('#f5f5f5').width('120%').margin({left: -6}) 219 Divider().strokeWidth(5).color('#f5f5f5').width('120%').margin({left: -6})
217 } 220 }
218 } else if (this.compDTO.compStyle === CompStyle.Zh_Carousel_Layout_01) { 221 } else if (this.compDTO.compStyle === CompStyle.Zh_Carousel_Layout_01) {
219 - Divider().strokeWidth(1).color('#f5f5f5').width(CommonConstants.FULL_WIDTH).padding({ left: 10, right: 10 }) 222 + // Divider().strokeWidth(1).color('#f5f5f5').width(CommonConstants.FULL_WIDTH).padding({ left: 10, right: 10 })
  223 + Divider().strokeWidth(5).color('#f5f5f5').width('120%').margin({left: -6})
220 } else if (this.compDTO?.operDataList?.[0]?.appStyle === CompStyle.Card_10) { 224 } else if (this.compDTO?.operDataList?.[0]?.appStyle === CompStyle.Card_10) {
221 // 大专题 225 // 大专题
222 if (this.nextCompDTO?.operDataList?.[0]?.appStyle === CompStyle.Card_10) { 226 if (this.nextCompDTO?.operDataList?.[0]?.appStyle === CompStyle.Card_10) {
@@ -163,9 +163,9 @@ export struct MorningEveningPaperComponent { @@ -163,9 +163,9 @@ export struct MorningEveningPaperComponent {
163 this.getAllContentInteractData(this.compListItem.operDataList) 163 this.getAllContentInteractData(this.compListItem.operDataList)
164 } 164 }
165 console.log(TAG, 'compInfoBean?.compList[0].audioDataList', JSON.stringify(compInfoBean?.compList[0].audioDataList)) 165 console.log(TAG, 'compInfoBean?.compList[0].audioDataList', JSON.stringify(compInfoBean?.compList[0].audioDataList))
166 - if (compInfoBean?.compList[0].audioDataList) {  
167 - this.audioPlayUrl = compInfoBean?.compList[0].audioDataList[0].audioUrl  
168 - this.audioTitle = compInfoBean?.compList[0].audioDataList[0].title 166 + if (compInfoBean?.compList[0].audioDataList.length > 0) {
  167 + this.audioPlayUrl = compInfoBean?.compList[0].audioDataList[0]?.audioUrl
  168 + this.audioTitle = compInfoBean?.compList[0].audioDataList[0]?.title
169 console.log(TAG, 'this.audioPlayUrl', this.audioPlayUrl) 169 console.log(TAG, 'this.audioPlayUrl', this.audioPlayUrl)
170 } 170 }
171 } 171 }
@@ -215,6 +215,11 @@ export struct MorningEveningPaperComponent { @@ -215,6 +215,11 @@ export struct MorningEveningPaperComponent {
215 // 图片转换为PixelMap对象 215 // 图片转换为PixelMap对象
216 // const pixelMap: image.PixelMap = await image2PixelMap(item.icon); 216 // const pixelMap: image.PixelMap = await image2PixelMap(item.icon);
217 console.log(TAG, "compInfoBean compStyle = " + imageUrl) 217 console.log(TAG, "compInfoBean compStyle = " + imageUrl)
  218 +
  219 + if (this.pageInfoBean.backgroundColor.length > 0){
  220 + this.mixedBgColor = this.pageInfoBean.backgroundColor
  221 + return
  222 + }
218 223
219 if (imageUrl.length > 0 && this.pageInfoBean.topicInfo.frontFlag === 1) { 224 if (imageUrl.length > 0 && this.pageInfoBean.topicInfo.frontFlag === 1) {
220 const imageSource: image.ImageSource | undefined = await getPicture(imageUrl) 225 const imageSource: image.ImageSource | undefined = await getPicture(imageUrl)
@@ -245,9 +245,9 @@ struct createImg { @@ -245,9 +245,9 @@ struct createImg {
245 // .aspectRatio(this.onePicW > this.onePicH ? 343 / 198 : 228 / 305) 245 // .aspectRatio(this.onePicW > this.onePicH ? 343 / 198 : 228 / 305)
246 .width('100%') 246 .width('100%')
247 .autoResize(true) 247 .autoResize(true)
248 - .objectFit(ImageFit.Cover) 248 + // .objectFit(ImageFit.Cover)
249 .autoResize(true) 249 .autoResize(true)
250 - .aspectRatio(3/4) 250 + // .aspectRatio(3/4)
251 .borderRadius(this.caclImageRadius(index)) 251 .borderRadius(this.caclImageRadius(index))
252 .opacity(!item.weight && !item.height ? 0 : 1) 252 .opacity(!item.weight && !item.height ? 0 : 1)
253 .onComplete((event?) => { 253 .onComplete((event?) => {
@@ -69,7 +69,7 @@ export struct ZhGridLayout03 { @@ -69,7 +69,7 @@ export struct ZhGridLayout03 {
69 .maxLines(1) 69 .maxLines(1)
70 .margin({ 70 .margin({
71 top: 8, 71 top: 8,
72 - bottom: 11 72 + bottom: 8
73 }) 73 })
74 .textOverflow({ overflow: TextOverflow.Ellipsis }) 74 .textOverflow({ overflow: TextOverflow.Ellipsis })
75 75
@@ -253,10 +253,10 @@ struct MineHomePage { @@ -253,10 +253,10 @@ struct MineHomePage {
253 Tabs({controller: this.controller}) { 253 Tabs({controller: this.controller}) {
254 TabContent() { 254 TabContent() {
255 HomePageBottomCommentComponent({commentNum:$commentNum}) 255 HomePageBottomCommentComponent({commentNum:$commentNum})
256 - } 256 + }.gesture(PanGesture(new PanGestureOptions({ direction: PanDirection.Right })))
257 TabContent() { 257 TabContent() {
258 HomePageBottomFollowComponent() 258 HomePageBottomFollowComponent()
259 - } 259 + }.gesture(PanGesture(new PanGestureOptions({ direction: PanDirection.Left })))
260 } 260 }
261 .backgroundColor($r('app.color.white')) 261 .backgroundColor($r('app.color.white'))
262 .animationDuration(0) 262 .animationDuration(0)
@@ -93,7 +93,7 @@ export struct VideoChannelPage { @@ -93,7 +93,7 @@ export struct VideoChannelPage {
93 return this.navItem.channelChooseColor ? this.navItem.channelChooseColor : '#222222' 93 return this.navItem.channelChooseColor ? this.navItem.channelChooseColor : '#222222'
94 } else { 94 } else {
95 let ccolor = this.navItem.channelChooseCColor.replace('#', '#B3') 95 let ccolor = this.navItem.channelChooseCColor.replace('#', '#B3')
96 - return this.navItem.channelChooseCColor ? ccolor : '#B3FFFFFF' 96 + return this.navItem.channelChooseCColor ? ccolor : '#666666'
97 } 97 }
98 98
99 } 99 }