王士厅

fix: 进入动态视频详情页,播放视频,实际播放视频非对应动态的视频

@@ -99,7 +99,7 @@ export struct DetailVideoListPage { @@ -99,7 +99,7 @@ export struct DetailVideoListPage {
99 aboutToAppear() { 99 aboutToAppear() {
100 // 在视频详情页 100 // 在视频详情页
101 this.peopleShipHomeCreatorId = AppStorage.get<string>('peopleShipHomeCreatorId') || ''; 101 this.peopleShipHomeCreatorId = AppStorage.get<string>('peopleShipHomeCreatorId') || '';
102 - // console.info(TAG, `cj2024 peopleShipHomeCreatorId = ${this.peopleShipHomeCreatorId}`) 102 + console.info(TAG, `cj2024 peopleShipHomeCreatorId = ${this.peopleShipHomeCreatorId}`)
103 if (this.peopleShipHomeCreatorId) { 103 if (this.peopleShipHomeCreatorId) {
104 // 从人民号号主传过来的 104 // 从人民号号主传过来的
105 this.getPeopleShipHomeDetail(this.peopleShipHomeCreatorId); 105 this.getPeopleShipHomeDetail(this.peopleShipHomeCreatorId);
@@ -120,13 +120,16 @@ export struct DetailVideoListPage { @@ -120,13 +120,16 @@ export struct DetailVideoListPage {
120 if (action) { 120 if (action) {
121 this.contentId = action.params?.contentID || ''; 121 this.contentId = action.params?.contentID || '';
122 if (action.params && action.params.extra) { 122 if (action.params && action.params.extra) {
123 - this.relId = action.params.extra.relId || '';  
124 - this.relType = action.params.extra.relType || ''; 123 + this.relId = action.params.extra.relId != "undefined" && action.params.extra.relId != '' ? action.params.extra.relId : '';
  124 + this.relType = action.params.extra.relType != "undefined" && action.params.extra.relType != '' ? action.params.extra.relType : '';
125 } 125 }
126 // console.info(TAG, `cj2024 getPeopleShipHomeDetail contentId = ${this.contentId}`) 126 // console.info(TAG, `cj2024 getPeopleShipHomeDetail contentId = ${this.contentId}`)
  127 + // console.info(TAG, `cj2024 getPeopleShipHomeDetail relId = ${this.relId}`)
  128 + // console.info(TAG, `cj2024 getPeopleShipHomeDetail relType = ${this.relType}`)
127 await this.getRmhContentDetail(this.contentId, this.relId, this.relType) 129 await this.getRmhContentDetail(this.contentId, this.relId, this.relType)
128 this.getRmhPublishNexts(peopleShipHomeCreatorId, this.contentId, 1, 1, 10, systemDateTime.getTime(false)); 130 this.getRmhPublishNexts(peopleShipHomeCreatorId, this.contentId, 1, 1, 10, systemDateTime.getTime(false));
129 } 131 }
  132 + // console.log(TAG, 'aboutToAppear', JSON.stringify(action.params))
130 } else { 133 } else {
131 // 无网络 134 // 无网络
132 this.netStatus = 1 135 this.netStatus = 1