陈剑华

fix: 20198 搜索结果、收藏列表、文章详情页推荐列表中单图卡封面图未展示

@@ -46,9 +46,9 @@ export struct Card2Component { @@ -46,9 +46,9 @@ export struct Card2Component {
46 46
47 getCover() { 47 getCover() {
48 if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_03) { 48 if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_03) {
49 - return this.contentDTO.coverUrl 49 + return this.contentDTO.coverUrl || this.contentDTO.fullColumnImgUrls?.[0]?.url || this.contentDTO.fullColumnImgUrls?.[0]?.fullUrl
50 } else if (this.contentDTO.appStyle === CompStyle.Card_02) { 50 } else if (this.contentDTO.appStyle === CompStyle.Card_02) {
51 - return this.contentDTO.fullColumnImgUrls?.[0]?.url || this.contentDTO.fullColumnImgUrls?.[0]?.fullUrl 51 + return this.contentDTO.fullColumnImgUrls?.[0]?.url || this.contentDTO.fullColumnImgUrls?.[0]?.fullUrl || this.contentDTO.coverUrl
52 } 52 }
53 return '' 53 return ''
54 } 54 }
@@ -44,9 +44,9 @@ export struct Card5Component { @@ -44,9 +44,9 @@ export struct Card5Component {
44 44
45 getCover() { 45 getCover() {
46 if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_02) { 46 if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_02) {
47 - return this.contentDTO.coverUrl 47 + return this.contentDTO.coverUrl || this.contentDTO.fullColumnImgUrls?.[0]?.url || this.contentDTO.fullColumnImgUrls?.[0]?.fullUrl
48 } else if (this.contentDTO.appStyle === CompStyle.Card_05) { 48 } else if (this.contentDTO.appStyle === CompStyle.Card_05) {
49 - return this.contentDTO.fullColumnImgUrls?.[0]?.url || this.contentDTO.fullColumnImgUrls?.[0]?.fullUrl 49 + return this.contentDTO.fullColumnImgUrls?.[0]?.url || this.contentDTO.fullColumnImgUrls?.[0]?.fullUrl || this.contentDTO.coverUrl
50 } 50 }
51 return '' 51 return ''
52 } 52 }
@@ -44,9 +44,9 @@ export struct Card6Component { @@ -44,9 +44,9 @@ export struct Card6Component {
44 44
45 getCover() { 45 getCover() {
46 if (this.compDTO.compStyle === CompStyle.Card_13) { 46 if (this.compDTO.compStyle === CompStyle.Card_13) {
47 - return this.contentDTO.coverUrl 47 + return this.contentDTO.coverUrl || this.contentDTO.fullColumnImgUrls?.[0]?.url || this.contentDTO.fullColumnImgUrls?.[0]?.fullUrl
48 } else if (this.contentDTO.appStyle === CompStyle.Card_06) { 48 } else if (this.contentDTO.appStyle === CompStyle.Card_06) {
49 - return this.contentDTO.fullColumnImgUrls?.[0]?.url || this.contentDTO.fullColumnImgUrls?.[0]?.fullUrl 49 + return this.contentDTO.fullColumnImgUrls?.[0]?.url || this.contentDTO.fullColumnImgUrls?.[0]?.fullUrl || this.contentDTO.coverUrl
50 } 50 }
51 return '' 51 return ''
52 } 52 }