王士厅

Merge remote-tracking branch 'origin/main'

@@ -113,7 +113,7 @@ export struct Card16Component { @@ -113,7 +113,7 @@ export struct Card16Component {
113 }) 113 })
114 } 114 }
115 .width(CommonConstants.FULL_PARENT) 115 .width(CommonConstants.FULL_PARENT)
116 - .alignContent(Alignment.BottomEnd) 116 + .alignContent(Alignment.TopEnd)
117 // Flex() { 117 // Flex() {
118 // ForEach(this.contentDTO.fullColumnImgUrls.slice(0, 3), (item: fullColumnImgUrlItem, index: number) => { 118 // ForEach(this.contentDTO.fullColumnImgUrls.slice(0, 3), (item: fullColumnImgUrlItem, index: number) => {
119 // Image(this.loadImg ? item.url : '') 119 // Image(this.loadImg ? item.url : '')
@@ -148,6 +148,14 @@ struct createImg { @@ -148,6 +148,14 @@ struct createImg {
148 radius.bottomLeft = index === 0 ? $r('app.float.image_border_radius') : 0 148 radius.bottomLeft = index === 0 ? $r('app.float.image_border_radius') : 0
149 radius.topRight = index === 1 ? $r('app.float.image_border_radius') : 0 149 radius.topRight = index === 1 ? $r('app.float.image_border_radius') : 0
150 radius.bottomRight = index === 1 ? $r('app.float.image_border_radius') : 0 150 radius.bottomRight = index === 1 ? $r('app.float.image_border_radius') : 0
  151 + } else if (this.fullColumnImgUrls.length === 3) {
  152 + radius.bottomLeft = index === 0 ? $r('app.float.image_border_radius') : 0
  153 + radius.topRight = index === 2 ? $r('app.float.image_border_radius') : 0
  154 + radius.bottomRight = index === 2 ? $r('app.float.image_border_radius') : 0
  155 + } else if (this.fullColumnImgUrls.length === 6) {
  156 + radius.topRight = index === 2 ? $r('app.float.image_border_radius') : 0
  157 + radius.bottomLeft = index === 3 ? $r('app.float.image_border_radius') : 0
  158 + radius.bottomRight = index === 5 ? $r('app.float.image_border_radius') : 0
151 } else if (this.fullColumnImgUrls.length === 5 && !this.fullColumnImgUrls[2].fullUrl) { 159 } else if (this.fullColumnImgUrls.length === 5 && !this.fullColumnImgUrls[2].fullUrl) {
152 radius.topRight = index === 1 ? $r('app.float.image_border_radius') : 0 160 radius.topRight = index === 1 ? $r('app.float.image_border_radius') : 0
153 radius.bottomLeft = index === 3 ? $r('app.float.image_border_radius') : 0 161 radius.bottomLeft = index === 3 ? $r('app.float.image_border_radius') : 0
@@ -161,6 +169,7 @@ struct createImg { @@ -161,6 +169,7 @@ struct createImg {
161 } 169 }
162 170
163 getPicType(picWidth: number, picHeight: number) { 171 getPicType(picWidth: number, picHeight: number) {
  172 + //console.info(`cj2024 getPicType picWidth = ${picWidth} picHeight = ${picHeight} picWidth / picHeight = ${picWidth / picHeight}`)
164 if (picWidth && picHeight) { 173 if (picWidth && picHeight) {
165 if (picWidth / picHeight > 2/1) { 174 if (picWidth / picHeight > 2/1) {
166 return 1; //横长图 175 return 1; //横长图