陈剑华

Merge remote-tracking branch 'origin/main'

@@ -185,53 +185,13 @@ export struct CommentIconComponent { @@ -185,53 +185,13 @@ 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 - if (Number.parseInt(this.publishCommentModel.totalCommentNumer) != 0) {  
189 - 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'))  
191 - .objectFit(ImageFit.Fill)  
192 - .resizable({  
193 - slice: {  
194 - top: 1,  
195 - left: 20,  
196 - right: 1,  
197 - bottom: 1  
198 - }  
199 - })  
200 - .alignRules({  
201 - top: { anchor: "Text", align: VerticalAlign.Top },  
202 - left: { anchor: "Text", align: HorizontalAlign.Start },  
203 - right: { anchor: "Text", align: HorizontalAlign.End },  
204 - bottom: { anchor: "Text", align: VerticalAlign.Bottom },  
205 - })// .offset({  
206 - // x:-6  
207 - // })  
208 - .id("Image")  
209 - Text(this.showMainText?'正文':NumberFormatterUtils.formatNumberWithWan(this.publishCommentModel.totalCommentNumer))// Text("44444444")  
210 - .fontSize(8)  
211 - .fontColor(this.showMainText?'#222222':'#ffffff')// .backgroundColor('#ED2800')  
212 - .height(12)  
213 - .textAlign(TextAlign.Center)  
214 - .alignRules({  
215 - top: { anchor: "__container__", align: VerticalAlign.Top },  
216 - left: { anchor: "__container__", align: HorizontalAlign.Start }  
217 - })// .margin({left: 4,right:4  
218 - // })  
219 - /*动态计算文字宽度*/  
220 - .width(this.getMeasureText(NumberFormatterUtils.formatNumberWithWan(this.publishCommentModel.totalCommentNumer)) +  
221 - 12)// .backgroundColor(Color.Green)  
222 - .id("Text")  
223 - .visibility(this.publishCommentModel.totalCommentNumer ? Visibility.Visible : Visibility.Hidden)  
224 - // .offset({  
225 - // x: 3  
226 - // })  
227 188
  189 + if (this.showMainText) {
  190 + this.commentIcon()
  191 + }else {
  192 + if (Number.parseInt(this.publishCommentModel.totalCommentNumer) != 0) {
  193 + this.commentIcon()
228 } 194 }
229 - // }  
230 - .offset({  
231 - x: this.showMainText?8:12,  
232 - y: -2  
233 - })  
234 -  
235 } 195 }
236 } 196 }
237 } 197 }
@@ -242,6 +202,55 @@ export struct CommentIconComponent { @@ -242,6 +202,55 @@ export struct CommentIconComponent {
242 // .backgroundColor(Color.Blue) 202 // .backgroundColor(Color.Blue)
243 } 203 }
244 204
  205 + @Builder
  206 + commentIcon() {
  207 + RelativeContainer() {
  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'))
  209 + .objectFit(ImageFit.Fill)
  210 + .resizable({
  211 + slice: {
  212 + top: 1,
  213 + left: 20,
  214 + right: 1,
  215 + bottom: 1
  216 + }
  217 + })
  218 + .alignRules({
  219 + top: { anchor: "Text", align: VerticalAlign.Top },
  220 + left: { anchor: "Text", align: HorizontalAlign.Start },
  221 + right: { anchor: "Text", align: HorizontalAlign.End },
  222 + bottom: { anchor: "Text", align: VerticalAlign.Bottom },
  223 + })// .offset({
  224 + // x:-6
  225 + // })
  226 + .id("Image")
  227 + Text(this.showMainText?'正文':NumberFormatterUtils.formatNumberWithWan(this.publishCommentModel.totalCommentNumer))// Text("44444444")
  228 + .fontSize(8)
  229 + .fontColor(this.showMainText?'#222222':'#ffffff')// .backgroundColor('#ED2800')
  230 + .height(12)
  231 + .textAlign(TextAlign.Center)
  232 + .alignRules({
  233 + top: { anchor: "__container__", align: VerticalAlign.Top },
  234 + left: { anchor: "__container__", align: HorizontalAlign.Start }
  235 + })// .margin({left: 4,right:4
  236 + // })
  237 + /*动态计算文字宽度*/
  238 + .width(this.getMeasureText(NumberFormatterUtils.formatNumberWithWan(this.publishCommentModel.totalCommentNumer)) +
  239 + 12)// .backgroundColor(Color.Green)
  240 + .id("Text")
  241 + .visibility(this.publishCommentModel.totalCommentNumer ? Visibility.Visible : Visibility.Hidden)
  242 + // .offset({
  243 + // x: 3
  244 + // })
  245 +
  246 + }
  247 + // }
  248 + .offset({
  249 + x: this.showMainText?8:12,
  250 + y: -2
  251 + })
  252 + }
  253 +
245 private getMeasureText(text: string) { 254 private getMeasureText(text: string) {
246 255
247 256
@@ -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 + }],
  524 + }
510 } 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() {