陈剑华

Merge remote-tracking branch 'origin/main'

@@ -4,7 +4,7 @@ import { @@ -4,7 +4,7 @@ import {
4 PageInfoBean, 4 PageInfoBean,
5 ContentDTO, 5 ContentDTO,
6 contentListParams, 6 contentListParams,
7 - InteractDataDTO 7 + InteractDataDTO, TopicInfo
8 } from 'wdBean'; 8 } from 'wdBean';
9 import { DateTimeUtils, Logger, SPHelper, WindowModel } from 'wdKit/Index'; 9 import { DateTimeUtils, Logger, SPHelper, WindowModel } from 'wdKit/Index';
10 import { PaperReaderSimpleDialog } from '../../dialog/PaperReaderDialog'; 10 import { PaperReaderSimpleDialog } from '../../dialog/PaperReaderDialog';
@@ -61,6 +61,7 @@ export struct MorningEveningPaperComponent { @@ -61,6 +61,7 @@ export struct MorningEveningPaperComponent {
61 @Provide title: string = '' 61 @Provide title: string = ''
62 @Provide subTitle: string = '' 62 @Provide subTitle: string = ''
63 @Provide audioTitle: string = '' 63 @Provide audioTitle: string = ''
  64 + @Provide topicInfo: TopicInfo = {} as TopicInfo
64 @Provide isAudioPlaying: boolean = false 65 @Provide isAudioPlaying: boolean = false
65 @Provide status: number = PlayerConstants.STATUS_START; 66 @Provide status: number = PlayerConstants.STATUS_START;
66 @Provide currentTime: string = "00:00"; 67 @Provide currentTime: string = "00:00";
@@ -142,6 +143,7 @@ export struct MorningEveningPaperComponent { @@ -142,6 +143,7 @@ export struct MorningEveningPaperComponent {
142 viewColumInsightIntentShare(context,String(dailyPaperTopicPageId), this.pageInfoBean) 143 viewColumInsightIntentShare(context,String(dailyPaperTopicPageId), this.pageInfoBean)
143 144
144 this.title = this.pageInfoBean?.topicInfo?.title 145 this.title = this.pageInfoBean?.topicInfo?.title
  146 + this.topicInfo = this.pageInfoBean?.topicInfo
145 let dateTime = DateTimeUtils.parseDate(this.pageInfoBean?.topicInfo?.topicDate ?? '', DateTimeUtils.PATTERN_DATE_HYPHEN) 147 let dateTime = DateTimeUtils.parseDate(this.pageInfoBean?.topicInfo?.topicDate ?? '', DateTimeUtils.PATTERN_DATE_HYPHEN)
146 const dateShow = new Date(dateTime) 148 const dateShow = new Date(dateTime)
147 this.subTitle = `${dateShow.getFullYear()}年\n${(dateShow.getMonth() + 1)}月${dateShow.getDate()}日` 149 this.subTitle = `${dateShow.getFullYear()}年\n${(dateShow.getMonth() + 1)}月${dateShow.getDate()}日`
@@ -314,7 +316,7 @@ export struct MorningEveningPaperComponent { @@ -314,7 +316,7 @@ export struct MorningEveningPaperComponent {
314 @Builder 316 @Builder
315 topPaperTitle(){ 317 topPaperTitle(){
316 Column(){ 318 Column(){
317 - PaperTitleComponent({topicInfo:this.pageInfoBean?.topicInfo}) 319 + PaperTitleComponent()
318 .margin({top:this.topSafeHeight}) 320 .margin({top:this.topSafeHeight})
319 } 321 }
320 .height(44+this.topSafeHeight) 322 .height(44+this.topSafeHeight)
@@ -12,7 +12,7 @@ import { TrackConstants } from 'wdTracking/Index'; @@ -12,7 +12,7 @@ import { TrackConstants } from 'wdTracking/Index';
12 export struct PaperTitleComponent { 12 export struct PaperTitleComponent {
13 @Consume title?: string 13 @Consume title?: string
14 @Consume subTitle?: string 14 @Consume subTitle?: string
15 - topicInfo: TopicInfo = {} as TopicInfo 15 + @Consume topicInfo: TopicInfo
16 aboutToAppear() { 16 aboutToAppear() {
17 } 17 }
18 18
@@ -98,18 +98,18 @@ export struct PaperTitleComponent { @@ -98,18 +98,18 @@ export struct PaperTitleComponent {
98 }) 98 })
99 .margin({ right: 16 }) 99 .margin({ right: 16 })
100 100
101 - // Image($r('app.media.icon_share'))  
102 - // .height($r('app.float.top_arrow_size'))  
103 - // .width($r('app.float.top_arrow_size'))  
104 - // .alignRules({  
105 - // right: { anchor: "img_close", align: HorizontalAlign.Start },  
106 - // center: { anchor: "__container__", align: VerticalAlign.Center }  
107 - // })  
108 - // .id('img_share')  
109 - // .margin({ right: 16 })  
110 - // .onClick(() => {  
111 - // this.share()  
112 - // }) 101 + Image($r('app.media.icon_share'))
  102 + .height($r('app.float.top_arrow_size'))
  103 + .width($r('app.float.top_arrow_size'))
  104 + .alignRules({
  105 + right: { anchor: "img_close", align: HorizontalAlign.Start },
  106 + center: { anchor: "__container__", align: VerticalAlign.Center }
  107 + })
  108 + .id('img_share')
  109 + .margin({ right: 16 })
  110 + .onClick(() => {
  111 + this.share()
  112 + })
113 } 113 }
114 // .margin({ left: 14, right: 14 }) 114 // .margin({ left: 14, right: 14 })
115 .height($r('app.float.top_bar_height')) 115 .height($r('app.float.top_bar_height'))