陈剑华

Merge remote-tracking branch 'origin/main'

@@ -185,7 +185,25 @@ export struct CommentIconComponent { @@ -185,7 +185,25 @@ export struct CommentIconComponent {
185 Image(this.styleType == 1 ? $r('app.media.comment_icon') : 185 Image(this.styleType == 1 ? $r('app.media.comment_icon') :
186 $r('app.media.comment_icon_white')).width(24).height(24) 186 $r('app.media.comment_icon_white')).width(24).height(24)
187 // Stack({alignContent:Alignment.Start}) { 187 // Stack({alignContent:Alignment.Start}) {
  188 +
  189 + if (this.showMainText) {
  190 + this.commentIcon()
  191 + }else {
188 if (Number.parseInt(this.publishCommentModel.totalCommentNumer) != 0) { 192 if (Number.parseInt(this.publishCommentModel.totalCommentNumer) != 0) {
  193 + this.commentIcon()
  194 + }
  195 + }
  196 + }
  197 + }
  198 + .width(24)
  199 + .height(24)
  200 + .visibility(this.contentDetail.appstyle !== 9 ? Visibility.Visible : Visibility.Hidden)
  201 +
  202 + // .backgroundColor(Color.Blue)
  203 + }
  204 +
  205 + @Builder
  206 + commentIcon() {
189 RelativeContainer() { 207 RelativeContainer() {
190 Image(this.styleType == 1 ? this.showMainText?$r('app.media.comment_icon_text_bg'):$r('app.media.comment_icon_number_bg') : this.showMainText?$r('app.media.comment_icon_text_block_bg'):$r('app.media.ic_like_back_Select')) 208 Image(this.styleType == 1 ? this.showMainText?$r('app.media.comment_icon_text_bg'):$r('app.media.comment_icon_number_bg') : this.showMainText?$r('app.media.comment_icon_text_block_bg'):$r('app.media.ic_like_back_Select'))
191 .objectFit(ImageFit.Fill) 209 .objectFit(ImageFit.Fill)
@@ -231,15 +249,6 @@ export struct CommentIconComponent { @@ -231,15 +249,6 @@ export struct CommentIconComponent {
231 x: this.showMainText?8:12, 249 x: this.showMainText?8:12,
232 y: -2 250 y: -2
233 }) 251 })
234 -  
235 - }  
236 - }  
237 - }  
238 - .width(24)  
239 - .height(24)  
240 - .visibility(this.contentDetail.appstyle !== 9 ? Visibility.Visible : Visibility.Hidden)  
241 -  
242 - // .backgroundColor(Color.Blue)  
243 } 252 }
244 253
245 private getMeasureText(text: string) { 254 private getMeasureText(text: string) {
@@ -140,6 +140,14 @@ export struct ZhSingleRow06 { @@ -140,6 +140,14 @@ export struct ZhSingleRow06 {
140 .borderRadius(4) 140 .borderRadius(4)
141 .margin({bottom: 12}) 141 .margin({bottom: 12})
142 .onClick(() => { 142 .onClick(() => {
  143 + let contentBean = ProcessUtils.commentBeanToContentBean(this.compDTO.operDataList[0]?.commentInfo as commentInfo)
  144 + if(contentBean !== null && contentBean !== undefined){
  145 + let type = contentBean.objectType;
  146 + if (type == "1") {
  147 + AppStorage.setOrCreate<number>('isZhingleRow06', 1)
  148 + }
  149 + }
  150 +
143 ProcessUtils.commentGotoWeb(this.compDTO.operDataList[0]?.commentInfo as commentInfo) 151 ProcessUtils.commentGotoWeb(this.compDTO.operDataList[0]?.commentInfo as commentInfo)
144 }) 152 })
145 153
@@ -31,6 +31,7 @@ struct AppointmentListPage { @@ -31,6 +31,7 @@ struct AppointmentListPage {
31 } 31 }
32 }.width("100%") 32 }.width("100%")
33 .height("100%") 33 .height("100%")
  34 + .backgroundColor(Color.White)
34 .padding({top:px2vp(this.topSafeHeight),bottom:px2vp(this.bottomSafeHeight)}) 35 .padding({top:px2vp(this.topSafeHeight),bottom:px2vp(this.bottomSafeHeight)})
35 36
36 } 37 }
@@ -498,7 +498,10 @@ export struct OperRowListView { @@ -498,7 +498,10 @@ export struct OperRowListView {
498 WDRouterRule.jumpWithPage(WDRouterPage.loginPage) 498 WDRouterRule.jumpWithPage(WDRouterPage.loginPage)
499 return 499 return
500 } 500 }
501 - const params: postExecuteCollectRecordParams = { 501 +
  502 + let params: postExecuteCollectRecordParams = {} as postExecuteCollectRecordParams
  503 +
  504 + params = {
502 status: this.newsStatusOfUser?.collectStatus === 1 ? '0' : '1', 505 status: this.newsStatusOfUser?.collectStatus === 1 ? '0' : '1',
503 contentList: [{ 506 contentList: [{
504 contentId: this.contentDetailData?.newsId + '', 507 contentId: this.contentDetailData?.newsId + '',
@@ -506,8 +509,21 @@ export struct OperRowListView { @@ -506,8 +509,21 @@ export struct OperRowListView {
506 relType: this.contentDetailData?.reLInfo?.relType || '' + '', 509 relType: this.contentDetailData?.reLInfo?.relType || '' + '',
507 contentRelId: this.contentDetailData?.reLInfo?.relId || '' + '', 510 contentRelId: this.contentDetailData?.reLInfo?.relId || '' + '',
508 }], 511 }],
  512 + }
509 513
  514 + //专题
  515 + if (this.topicInfo && Object.keys(this.topicInfo).length > 0){
  516 + params = {
  517 + status: this.newsStatusOfUser?.collectStatus === 1 ? '0' : '1',
  518 + contentList: [{
  519 + contentId: this.topicInfo?.topicId + '',
  520 + contentType: '5',
  521 + relType: this.topicInfo?.relType || '' + '',
  522 + contentRelId: this.topicInfo?.relId || '' + '',
  523 + }],
510 } 524 }
  525 + }
  526 +
511 console.log(TAG, '收藏点击', JSON.stringify(params)) 527 console.log(TAG, '收藏点击', JSON.stringify(params))
512 PageRepository.postExecuteCollectRecord(params).then(res => { 528 PageRepository.postExecuteCollectRecord(params).then(res => {
513 if (this.newsStatusOfUser) { 529 if (this.newsStatusOfUser) {
@@ -69,7 +69,6 @@ export struct TabLiveItemComponent { @@ -69,7 +69,6 @@ export struct TabLiveItemComponent {
69 }) 69 })
70 .borderRadius(2) 70 .borderRadius(2)
71 .margin({ left: 8 }) 71 .margin({ left: 8 })
72 - .width(100)  
73 .visibility(1 == this.item.isTop ? Visibility.Visible : Visibility.None) 72 .visibility(1 == this.item.isTop ? Visibility.Visible : Visibility.None)
74 } 73 }
75 .justifyContent(FlexAlign.Start) 74 .justifyContent(FlexAlign.Start)
@@ -213,12 +213,12 @@ export struct PlayUIComponent { @@ -213,12 +213,12 @@ export struct PlayUIComponent {
213 LottieView({ 213 LottieView({
214 name: 'live_status_wait', 214 name: 'live_status_wait',
215 path: "lottie/live_detail_living.json", 215 path: "lottie/live_detail_living.json",
216 - lottieWidth: 9,  
217 - lottieHeight: 9, 216 + lottieWidth: 12,
  217 + lottieHeight: 12,
218 autoplay: true, 218 autoplay: true,
219 loop: true, 219 loop: true,
220 }) 220 })
221 - .margin({ right: 2 }) 221 + .margin({ right: 3 })
222 } 222 }
223 223
224 Text('直播中') 224 Text('直播中')
@@ -121,12 +121,12 @@ export struct PlayerTitleComponent { @@ -121,12 +121,12 @@ export struct PlayerTitleComponent {
121 LottieView({ 121 LottieView({
122 name: 'live_status_wait', 122 name: 'live_status_wait',
123 path: "lottie/live_detail_living.json", 123 path: "lottie/live_detail_living.json",
124 - lottieWidth: 9,  
125 - lottieHeight: 9, 124 + lottieWidth: 12,
  125 + lottieHeight: 12,
126 autoplay: true, 126 autoplay: true,
127 loop: true, 127 loop: true,
128 }) 128 })
129 - .margin({ right: 2 }) 129 + .margin({ right: 3 })
130 }.margin({ right: 1 }) 130 }.margin({ right: 1 })
131 131
132 // Image($r('app.media.icon_live_status_running')) 132 // Image($r('app.media.icon_live_status_running'))
@@ -45,6 +45,7 @@ export struct PlayerRightView { @@ -45,6 +45,7 @@ export struct PlayerRightView {
45 @Consume pageId: string 45 @Consume pageId: string
46 followUserId: string = '' 46 followUserId: string = ''
47 followUserName: string = '' 47 followUserName: string = ''
  48 + @State isZhingleRow06: number = AppStorage.get<number>('isZhingleRow06') || 0
48 49
49 aboutToAppear() { 50 aboutToAppear() {
50 // 内容用 点赞样式 1红心(点赞) 2大拇指(祈福) 3蜡烛(默哀) 4置空 51 // 内容用 点赞样式 1红心(点赞) 2大拇指(祈福) 3蜡烛(默哀) 4置空
@@ -53,6 +54,14 @@ export struct PlayerRightView { @@ -53,6 +54,14 @@ export struct PlayerRightView {
53 // console.log(TAG, 'this.likesStyle', this.likesStyle) 54 // console.log(TAG, 'this.likesStyle', this.likesStyle)
54 // console.log(TAG, 'this.openLikes', this.openLikes) 55 // console.log(TAG, 'this.openLikes', this.openLikes)
55 this.contentTrackingDict() 56 this.contentTrackingDict()
  57 + if (this.isZhingleRow06 == 1) { //锐评精选卡视频类自动弹评论框
  58 + this.showCommentList = true
  59 + }
  60 + }
  61 +
  62 + aboutToDisappear(): void {
  63 + AppStorage.setOrCreate<number>('isZhingleRow06', 0)
  64 + this.showCommentList = false
56 } 65 }
57 66
58 contentTrackingDict() { 67 contentTrackingDict() {