zhaojunkai

人民号-相关交互元素缺失修复,新增分享显示/隐藏逻辑

@@ -21,6 +21,7 @@ export struct Card19Component { @@ -21,6 +21,7 @@ export struct Card19Component {
21 21
22 async aboutToAppear(): Promise<void> { 22 async aboutToAppear(): Promise<void> {
23 this.titleInit(); 23 this.titleInit();
  24 + console.log('card19',JSON.stringify(this.contentDTO))
24 } 25 }
25 26
26 titleInit() { 27 titleInit() {
@@ -66,7 +67,7 @@ export struct Card19Component { @@ -66,7 +67,7 @@ export struct Card19Component {
66 const photo: PhotoListBean = { 67 const photo: PhotoListBean = {
67 width: item.weight, 68 width: item.weight,
68 height: item.height, 69 height: item.height,
69 - picPath: item.fullUrl, 70 + picPath: item.fullUrl||item.url,
70 picDesc: '' 71 picDesc: ''
71 } 72 }
72 return photo 73 return photo
@@ -110,6 +111,7 @@ struct createImg { @@ -110,6 +111,7 @@ struct createImg {
110 fullUrl: '' 111 fullUrl: ''
111 } as FullColumnImgUrlDTO) 112 } as FullColumnImgUrlDTO)
112 } 113 }
  114 + console.log('card19-this.fullColumnImgUrls',JSON.stringify(this.fullColumnImgUrls))
113 } 115 }
114 116
115 caclImageRadius(index: number) { 117 caclImageRadius(index: number) {
@@ -164,14 +166,14 @@ struct createImg { @@ -164,14 +166,14 @@ struct createImg {
164 alignContent: Alignment.BottomEnd 166 alignContent: Alignment.BottomEnd
165 }) { 167 }) {
166 if (this.getPicType() === 1) { 168 if (this.getPicType() === 1) {
167 - Image(this.loadImg ? item.fullUrl : '') 169 + Image(this.loadImg ? item.fullUrl||item.url : '')
168 .backgroundColor(0xf5f5f5) 170 .backgroundColor(0xf5f5f5)
169 .width('100%') 171 .width('100%')
170 .height(172) 172 .height(172)
171 .autoResize(true) 173 .autoResize(true)
172 .borderRadius(this.caclImageRadius(index)) 174 .borderRadius(this.caclImageRadius(index))
173 } else if (this.getPicType() === 2) { 175 } else if (this.getPicType() === 2) {
174 - Image(this.loadImg ? item.fullUrl : '') 176 + Image(this.loadImg ? item.fullUrl||item.url : '')
175 .width('100%') 177 .width('100%')
176 .height(305) 178 .height(305)
177 .autoResize(true) 179 .autoResize(true)