张善主

fix(规范):本地字段重命名

@@ -14,37 +14,37 @@ export interface ShareInfoDTO { @@ -14,37 +14,37 @@ export interface ShareInfoDTO {
14 //分享链接 14 //分享链接
15 shareUrl: string; 15 shareUrl: string;
16 //首发时间 16 //首发时间
17 - publishTime:string; 17 + appCustomPublishTime:string;
18 //图片 18 //图片
19 - imageUrl:string; 19 + appCustomImageUrl:string;
20 //直播和内容的举报,仅针对人民号发布的才能举报,cms创建的没有举报按钮 20 //直播和内容的举报,仅针对人民号发布的才能举报,cms创建的没有举报按钮
21 - showReport:boolean; 21 + appCustomShowReport:boolean;
22 //点赞按钮显示 -1:不展示 0:未点赞 1:已点赞 22 //点赞按钮显示 -1:不展示 0:未点赞 1:已点赞
23 - showLike:number; 23 + appCustomShowLike:number;
24 //0 分享海报关闭,1 分享海报开启 24 //0 分享海报关闭,1 分享海报开启
25 - posterShareControl:string; 25 + appCustomPosterShareControl:string;
26 //是否展示海报 -1-不展示图标 26 //是否展示海报 -1-不展示图标
27 - showPoster:number; 27 + appCustomShowPoster:number;
28 //海报展示类型 1:专题、文章、图文、视频、直播 2:人民号 3:评论 4:电子报海报 5:音频专题海报 6:早晚报专题海报 7:榜单H5 8:H5普通文章专题,包含时间链 28 //海报展示类型 1:专题、文章、图文、视频、直播 2:人民号 3:评论 4:电子报海报 5:音频专题海报 6:早晚报专题海报 7:榜单H5 8:H5普通文章专题,包含时间链
29 - showPosterType:number; 29 + appCustomShowPosterType:number;
30 //接口返回: 内容id、内容类型 30 //接口返回: 内容id、内容类型
31 - contentId:string; 31 + appCustomContentId:string;
32 //内容类型,分享的类型 0:不跳转 1:点播,2:直播,3:活动,4:广告,5:专题,6:链接,7:榜单,8:图文,9:组图,10:H5新闻,11:频道,12:组件,13:音频,14动态图文,15动态视频 32 //内容类型,分享的类型 0:不跳转 1:点播,2:直播,3:活动,4:广告,5:专题,6:链接,7:榜单,8:图文,9:组图,10:H5新闻,11:频道,12:组件,13:音频,14动态图文,15动态视频
33 - contentType:string; 33 + appCustomContentType:string;
34 //关系id 34 //关系id
35 - targetRelId:string; 35 + appCustomTargetRelId:string;
36 //关系类型,1.频道关系;2.专题关系 36 //关系类型,1.频道关系;2.专题关系
37 - targetRelType:string; 37 + appCustomTargetRelType:string;
38 //21:文章专题,22:音频专题,23:直播专题,24:话题专题,25:早晚报专题 38 //21:文章专题,22:音频专题,23:直播专题,24:话题专题,25:早晚报专题
39 - topicType:string; 39 + appCustomTopicType:string;
40 //早晚报;1-早报;2-午报;3-晚报 40 //早晚报;1-早报;2-午报;3-晚报
41 - topicPattern:number; 41 + appCustomTopicPattern:number;
42 //是否有头版 42 //是否有头版
43 - isFrontDaily:boolean; 43 + appCustomIsFrontDaily:boolean;
44 //分享海报简介 44 //分享海报简介
45 - posterSummary:string;  
46 - sharePosterItemList: SharePosterItemBean[] 45 + appCustomPosterSummary:string;
  46 + appCustomSharePosterItemList: SharePosterItemBean[]
47 //分享海报标题 47 //分享海报标题
48 - posterTitle:string; 48 + appCustomPosterTitle:string;
49 49
50 } 50 }
@@ -444,17 +444,17 @@ export struct ENewspaperPageComponent { @@ -444,17 +444,17 @@ export struct ENewspaperPageComponent {
444 let contentDetailData: ContentDetailDTO = { 444 let contentDetailData: ContentDetailDTO = {
445 shareInfo:{ 445 shareInfo:{
446 shareTitle:this.newspaperListBean?.list[this.swiperIndex].pageName, 446 shareTitle:this.newspaperListBean?.list[this.swiperIndex].pageName,
447 - publishTime:this.newspaperListBean?.list[this.swiperIndex].periodNum,  
448 - imageUrl:this.newspaperListBean?.list[this.swiperIndex].pagePic, 447 + appCustomPublishTime:this.newspaperListBean?.list[this.swiperIndex].periodNum,
  448 + appCustomImageUrl:this.newspaperListBean?.list[this.swiperIndex].pagePic,
449 shareUrl:this.newspaperListBean?.list[this.swiperIndex].sharePagePic.shareUrl, 449 shareUrl:this.newspaperListBean?.list[this.swiperIndex].sharePagePic.shareUrl,
450 sharePosterCoverUrl:this.newspaperListBean?.list[this.swiperIndex].sharePagePic.sharePosterCoverUrl, 450 sharePosterCoverUrl:this.newspaperListBean?.list[this.swiperIndex].sharePagePic.sharePosterCoverUrl,
451 - showReport:false,  
452 - showLike:-1, 451 + appCustomShowReport:false,
  452 + appCustomShowLike:-1,
453 shareOpen:1, 453 shareOpen:1,
454 sharePosterOpen:1, 454 sharePosterOpen:1,
455 - posterShareControl:'-1',  
456 - showPoster:-1,  
457 - showPosterType:4, 455 + appCustomPosterShareControl:'-1',
  456 + appCustomShowPoster:-1,
  457 + appCustomShowPosterType:4,
458 } 458 }
459 } as ContentDetailDTO 459 } as ContentDetailDTO
460 WDShare.shareContent(contentDetailData,TrackConstants.PageName.NewsPaperPage,TrackConstants.PageName.NewsPaperPage) 460 WDShare.shareContent(contentDetailData,TrackConstants.PageName.NewsPaperPage,TrackConstants.PageName.NewsPaperPage)
@@ -157,20 +157,20 @@ export struct PaperTitleComponent { @@ -157,20 +157,20 @@ export struct PaperTitleComponent {
157 let contentDetailData: ContentDetailDTO = { 157 let contentDetailData: ContentDetailDTO = {
158 newsId:Number.parseInt(this.topicInfo.topicId), 158 newsId:Number.parseInt(this.topicInfo.topicId),
159 shareInfo:{ 159 shareInfo:{
160 - contentId:this.topicInfo.topicId,  
161 - contentType:this.topicInfo.topicType+'', 160 + appCustomContentId:this.topicInfo.topicId,
  161 + appCustomContentType:this.topicInfo.topicType+'',
162 shareTitle:this.topicInfo.shareTitle, 162 shareTitle:this.topicInfo.shareTitle,
163 shareSummary:this.topicInfo.shareSummary, 163 shareSummary:this.topicInfo.shareSummary,
164 - imageUrl:this.topicInfo.shareCoverUrl, 164 + appCustomImageUrl:this.topicInfo.shareCoverUrl,
165 sharePosterCoverUrl:this.topicInfo.sharePosterCoverUrl, 165 sharePosterCoverUrl:this.topicInfo.sharePosterCoverUrl,
166 shareUrl:this.topicInfo.shareUrl, 166 shareUrl:this.topicInfo.shareUrl,
167 - targetRelId:this.topicInfo.relId,  
168 - targetRelType:this.topicInfo.relType,  
169 - showReport:false,  
170 - showLike:-1, 167 + appCustomTargetRelId:this.topicInfo.relId,
  168 + appCustomTargetRelType:this.topicInfo.relType,
  169 + appCustomShowReport:false,
  170 + appCustomShowLike:-1,
171 shareOpen:1, 171 shareOpen:1,
172 sharePosterOpen:this.topicInfo.posterFlag, 172 sharePosterOpen:this.topicInfo.posterFlag,
173 - showPoster:this.topicInfo.posterFlag>0?1:-1, 173 + appCustomShowPoster:this.topicInfo.posterFlag>0?1:-1,
174 } 174 }
175 } as ContentDetailDTO 175 } as ContentDetailDTO
176 WDShare.setTopicBeanToShareBean(contentDetailData.shareInfo,this.topicInfo) 176 WDShare.setTopicBeanToShareBean(contentDetailData.shareInfo,this.topicInfo)
@@ -32,21 +32,21 @@ export class WDShare { @@ -32,21 +32,21 @@ export class WDShare {
32 32
33 //专题分享数据转换 33 //专题分享数据转换
34 static setTopicBeanToShareBean(shareBean: ShareInfoDTO, topicInfoBean: TopicInfo){ 34 static setTopicBeanToShareBean(shareBean: ShareInfoDTO, topicInfoBean: TopicInfo){
35 - shareBean.topicType = topicInfoBean.topicType+'' 35 + shareBean.appCustomTopicType = topicInfoBean.topicType+''
36 //21:文章专题,22:音频专题,23:直播专题,24:话题专题,25:早晚报专题,26:时间链 36 //21:文章专题,22:音频专题,23:直播专题,24:话题专题,25:早晚报专题,26:时间链
37 if(25 == topicInfoBean.topicType){ 37 if(25 == topicInfoBean.topicType){
38 - shareBean.showPosterType = 6  
39 - shareBean.topicPattern = topicInfoBean.topicPattern  
40 - shareBean.publishTime = topicInfoBean.topicDate 38 + shareBean.appCustomShowPosterType = 6
  39 + shareBean.appCustomTopicPattern = topicInfoBean.topicPattern
  40 + shareBean.appCustomPublishTime = topicInfoBean.topicDate
41 if(topicInfoBean.frontLinkObject == null){ 41 if(topicInfoBean.frontLinkObject == null){
42 - shareBean.isFrontDaily = false 42 + shareBean.appCustomIsFrontDaily = false
43 if(topicInfoBean.shareContentList != null && topicInfoBean.shareContentList.length>0){ 43 if(topicInfoBean.shareContentList != null && topicInfoBean.shareContentList.length>0){
44 - shareBean.sharePosterItemList = [] as SharePosterItemBean[]  
45 - shareBean.sharePosterItemList.length = topicInfoBean.shareContentList.length 44 + shareBean.appCustomSharePosterItemList = [] as SharePosterItemBean[]
  45 + shareBean.appCustomSharePosterItemList.length = topicInfoBean.shareContentList.length
46 for (let index = 0; index < topicInfoBean.shareContentList.length; index++) { 46 for (let index = 0; index < topicInfoBean.shareContentList.length; index++) {
47 let element = topicInfoBean.shareContentList[index] 47 let element = topicInfoBean.shareContentList[index]
48 if(element != null){ 48 if(element != null){
49 - shareBean.sharePosterItemList[index] = { 49 + shareBean.appCustomSharePosterItemList[index] = {
50 title:topicInfoBean.shareContentList[index].newsTitle, 50 title:topicInfoBean.shareContentList[index].newsTitle,
51 imageUrl:topicInfoBean.shareContentList[index].coverUrl, 51 imageUrl:topicInfoBean.shareContentList[index].coverUrl,
52 } as SharePosterItemBean 52 } as SharePosterItemBean
@@ -54,25 +54,25 @@ export class WDShare { @@ -54,25 +54,25 @@ export class WDShare {
54 } 54 }
55 } 55 }
56 }else{ 56 }else{
57 - shareBean.isFrontDaily = true 57 + shareBean.appCustomIsFrontDaily = true
58 shareBean.sharePosterCoverUrl = topicInfoBean.frontLinkObject.coverUrl 58 shareBean.sharePosterCoverUrl = topicInfoBean.frontLinkObject.coverUrl
59 - shareBean.posterSummary = topicInfoBean.frontLinkObject.summary 59 + shareBean.appCustomPosterSummary = topicInfoBean.frontLinkObject.summary
60 } 60 }
61 }else{ 61 }else{
62 //文章/直播/话题专题(H5普通文章专题,包含时间链) 62 //文章/直播/话题专题(H5普通文章专题,包含时间链)
63 - shareBean.showPosterType = 8 63 + shareBean.appCustomShowPosterType = 8
64 //海报的头图 64 //海报的头图
65 shareBean.sharePosterCoverUrl = topicInfoBean.backgroundImgUrl 65 shareBean.sharePosterCoverUrl = topicInfoBean.backgroundImgUrl
66 - shareBean.isFrontDaily = false  
67 - shareBean.posterTitle = topicInfoBean.title  
68 - shareBean.posterSummary = topicInfoBean.summary 66 + shareBean.appCustomIsFrontDaily = false
  67 + shareBean.appCustomPosterTitle = topicInfoBean.title
  68 + shareBean.appCustomPosterSummary = topicInfoBean.summary
69 if(topicInfoBean.shareContentList != null && topicInfoBean.shareContentList.length>0){ 69 if(topicInfoBean.shareContentList != null && topicInfoBean.shareContentList.length>0){
70 - shareBean.sharePosterItemList = [] as SharePosterItemBean[]  
71 - shareBean.sharePosterItemList.length = topicInfoBean.shareContentList.length 70 + shareBean.appCustomSharePosterItemList = [] as SharePosterItemBean[]
  71 + shareBean.appCustomSharePosterItemList.length = topicInfoBean.shareContentList.length
72 for (let index = 0; index < topicInfoBean.shareContentList.length; index++) { 72 for (let index = 0; index < topicInfoBean.shareContentList.length; index++) {
73 let element = topicInfoBean.shareContentList[index] 73 let element = topicInfoBean.shareContentList[index]
74 if(element != null){ 74 if(element != null){
75 - shareBean.sharePosterItemList[index] = { 75 + shareBean.appCustomSharePosterItemList[index] = {
76 title:topicInfoBean.shareContentList[index].newsTitle, 76 title:topicInfoBean.shareContentList[index].newsTitle,
77 imageUrl:topicInfoBean.shareContentList[index].coverUrl, 77 imageUrl:topicInfoBean.shareContentList[index].coverUrl,
78 timeNode:topicInfoBean.shareContentList[index].publishTime, 78 timeNode:topicInfoBean.shareContentList[index].publishTime,