chenjun

人民号-动态图片卡 6图缺少圆角

@@ -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; //横长图