Showing
1 changed file
with
12 additions
and
1 deletions
| @@ -137,7 +137,8 @@ export struct MorningEveningPaperComponent { | @@ -137,7 +137,8 @@ export struct MorningEveningPaperComponent { | ||
| 137 | let pageInfoBean = await MorningEveningViewModel.getMorningEveningPageInfo("" + this.dailyPaperTopicPageId) //"25091" | 137 | let pageInfoBean = await MorningEveningViewModel.getMorningEveningPageInfo("" + this.dailyPaperTopicPageId) //"25091" |
| 138 | this.pageInfoBean = pageInfoBean; | 138 | this.pageInfoBean = pageInfoBean; |
| 139 | 139 | ||
| 140 | - this.title = this.pageInfoBean?.topicInfo?.title | 140 | + // this.title = this.pageInfoBean?.topicInfo?.title |
| 141 | + this.setComponentTitle() | ||
| 141 | this.topicInfo = this.pageInfoBean?.topicInfo | 142 | this.topicInfo = this.pageInfoBean?.topicInfo |
| 142 | let dateTime = DateTimeUtils.parseDate(this.pageInfoBean?.topicInfo?.topicDate ?? '', DateTimeUtils.PATTERN_DATE_HYPHEN) | 143 | let dateTime = DateTimeUtils.parseDate(this.pageInfoBean?.topicInfo?.topicDate ?? '', DateTimeUtils.PATTERN_DATE_HYPHEN) |
| 143 | const dateShow = new Date(dateTime) | 144 | const dateShow = new Date(dateTime) |
| @@ -230,6 +231,16 @@ export struct MorningEveningPaperComponent { | @@ -230,6 +231,16 @@ export struct MorningEveningPaperComponent { | ||
| 230 | } | 231 | } |
| 231 | } | 232 | } |
| 232 | 233 | ||
| 234 | + setComponentTitle() { | ||
| 235 | + if (this.pageInfoBean.topicInfo.topicPattern === 1) { | ||
| 236 | + this.title = '新闻早读' | ||
| 237 | + }else if(this.pageInfoBean.topicInfo.topicPattern === 2){ | ||
| 238 | + this.title = '新闻午报' | ||
| 239 | + }else { | ||
| 240 | + this.title = '新闻夜读' | ||
| 241 | + } | ||
| 242 | + } | ||
| 243 | + | ||
| 233 | private async pickColor(imageSource: image.ImageSource | undefined) { | 244 | private async pickColor(imageSource: image.ImageSource | undefined) { |
| 234 | if (imageSource) { | 245 | if (imageSource) { |
| 235 | const pixelMap: image.PixelMap = await imageNet2PixelMap(imageSource); | 246 | const pixelMap: image.PixelMap = await imageNet2PixelMap(imageSource); |
-
Please register or login to post a comment