zhenghy

修改直播入口接口顺序

@@ -33,8 +33,8 @@ export struct DetailPlayLiveCommon { @@ -33,8 +33,8 @@ export struct DetailPlayLiveCommon {
33 this.relId = params?.extra?.relId || ''; 33 this.relId = params?.extra?.relId || '';
34 this.relType = params?.extra?.relType || ''; 34 this.relType = params?.extra?.relType || '';
35 this.contentId = params?.contentID || ''; 35 this.contentId = params?.contentID || '';
36 - await this.getContentDetail()  
37 - this.getLiveDetails() 36 + this.getContentDetail()
  37 +
38 } 38 }
39 39
40 build() { 40 build() {
@@ -55,8 +55,8 @@ export struct DetailPlayLiveCommon { @@ -55,8 +55,8 @@ export struct DetailPlayLiveCommon {
55 /** 55 /**
56 * 查询视频详情用于评论展示 56 * 查询视频详情用于评论展示
57 */ 57 */
58 - async getContentDetail() {  
59 - await this.liveViewModel.getContentDetail(this.contentId, this.relId, this.relType) 58 + getContentDetail() {
  59 + this.liveViewModel.getContentDetail(this.contentId, this.relId, this.relType)
60 .then((data: Array<ContentDetailDTO>) => { 60 .then((data: Array<ContentDetailDTO>) => {
61 console.log(TAG, '查询视频详情用于评论展示 getContentDetail:', JSON.stringify(data)) 61 console.log(TAG, '查询视频详情用于评论展示 getContentDetail:', JSON.stringify(data))
62 if (data) { 62 if (data) {
@@ -72,6 +72,8 @@ export struct DetailPlayLiveCommon { @@ -72,6 +72,8 @@ export struct DetailPlayLiveCommon {
72 this.publishCommentModel.targetType = String(this.contentDetailData?.newsType || '') 72 this.publishCommentModel.targetType = String(this.contentDetailData?.newsType || '')
73 this.publishCommentModel.visitorComment = String(this.contentDetailData?.visitorComment || '') 73 this.publishCommentModel.visitorComment = String(this.contentDetailData?.visitorComment || '')
74 this.publishCommentModel.commentContent = '' 74 this.publishCommentModel.commentContent = ''
  75 +
  76 + this.getLiveDetails()
75 // } 77 // }
76 } 78 }
77 }) 79 })