Showing
1 changed file
with
8 additions
and
8 deletions
| @@ -50,7 +50,7 @@ export function viewBlogInsightIntentShare(context: common.UIAbilityContext, ent | @@ -50,7 +50,7 @@ export function viewBlogInsightIntentShare(context: common.UIAbilityContext, ent | ||
| 50 | blogTitle: item?.newsTitle, | 50 | blogTitle: item?.newsTitle, |
| 51 | blogType: 'Normal', | 51 | blogType: 'Normal', |
| 52 | blogCategory: entityGroupId === '2001' ? '推荐' : '热点', | 52 | blogCategory: entityGroupId === '2001' ? '推荐' : '热点', |
| 53 | - categoryDisplayName: item.newsTitle, //卡片上的主标题 | 53 | + categoryDisplayName: item?.newsTitle, //卡片上的主标题 |
| 54 | description: item?.newsSummary || '', //必传 | 54 | description: item?.newsSummary || '', //必传 |
| 55 | blogSubTitle: item?.newsSummary.length > 20 ? | 55 | blogSubTitle: item?.newsSummary.length > 20 ? |
| 56 | item?.newsSummary.substring(0, 20) : item?.newsSummary, | 56 | item?.newsSummary.substring(0, 20) : item?.newsSummary, |
| @@ -102,19 +102,19 @@ export function viewBlogItemInsightIntentShare(executedStartTime: number ,contex | @@ -102,19 +102,19 @@ export function viewBlogItemInsightIntentShare(executedStartTime: number ,contex | ||
| 102 | entityId: `objectId=${item?.newsId}&objectType=${item?.newsType}` || '', | 102 | entityId: `objectId=${item?.newsId}&objectType=${item?.newsType}` || '', |
| 103 | displayName: item?.newsTitle || '', | 103 | displayName: item?.newsTitle || '', |
| 104 | entityGroupId: String(item?.reLInfo?.channelId), //channelId | 104 | entityGroupId: String(item?.reLInfo?.channelId), //channelId |
| 105 | - logoURL: item.fullColumnImgUrls.length > 0 ? item.fullColumnImgUrls[0]?.url : | ||
| 106 | - item.firstFrameImageUri || 'https://cdnjdphoto.aikan.pdnews.cn/WapApi/800/launcher_icon.png', | ||
| 107 | - metadataModificationTime: new Date(item.publishTime).getTime() || 0, | 105 | + logoURL: item?.fullColumnImgUrls?.length > 0 ? item.fullColumnImgUrls[0]?.url : |
| 106 | + item?.firstFrameImageUri || 'https://cdnjdphoto.aikan.pdnews.cn/WapApi/800/launcher_icon.png', | ||
| 107 | + metadataModificationTime: new Date(item?.publishTime).getTime() || 0, | ||
| 108 | blogTitle: item?.newsTitle, | 108 | blogTitle: item?.newsTitle, |
| 109 | blogType: 'Normal', | 109 | blogType: 'Normal', |
| 110 | blogCategory: item?.reLInfo?.channelId === 2001 ? '推荐' : '热点', | 110 | blogCategory: item?.reLInfo?.channelId === 2001 ? '推荐' : '热点', |
| 111 | - categoryDisplayName: item.newsTitle || '', | ||
| 112 | - blogSubTitle: item?.newsSummary.length > 20 ? | 111 | + categoryDisplayName: item?.newsTitle || '', |
| 112 | + blogSubTitle: item?.newsSummary?.length > 20 ? | ||
| 113 | item?.newsSummary.substring(0, 20) : item?.newsSummary, | 113 | item?.newsSummary.substring(0, 20) : item?.newsSummary, |
| 114 | description: item?.newsSummary || '', //必传 | 114 | description: item?.newsSummary || '', //必传 |
| 115 | blogAuthor: item?.newsSourceName, | 115 | blogAuthor: item?.newsSourceName, |
| 116 | - blogPublishTime: `${new Date(item.publishTime).getTime()}` || '', | ||
| 117 | - tag: item?.newsTags.split(','), | 116 | + blogPublishTime: `${new Date(item?.publishTime).getTime()}` || '', |
| 117 | + tag: item?.newsTags?.split(','), | ||
| 118 | viewCount: item?.viewCount || 0, | 118 | viewCount: item?.viewCount || 0, |
| 119 | likeCount: interactData?.likeNum || 0, | 119 | likeCount: interactData?.likeNum || 0, |
| 120 | forwardCount: interactData?.shareNum || 0, | 120 | forwardCount: interactData?.shareNum || 0, |
-
Please register or login to post a comment