张善主

fix(详情页):动态详情页+关注样式调整

@@ -142,15 +142,23 @@ export struct DynamicDetailComponent { @@ -142,15 +142,23 @@ export struct DynamicDetailComponent {
142 .margin({right: $r('app.float.margin_6')}) 142 .margin({right: $r('app.float.margin_6')})
143 if(!StringUtils.isEmpty(this.followStatus)){ 143 if(!StringUtils.isEmpty(this.followStatus)){
144 if (this.followStatus == '0') { 144 if (this.followStatus == '0') {
145 - Text('+关注')  
146 - .width($r('app.float.margin_54'))  
147 - .height($r('app.float.margin_24'))  
148 - .textAlign(TextAlign.Center)  
149 - .fontSize($r('app.float.font_size_12'))  
150 - .borderRadius($r('app.float.vp_3'))  
151 - .backgroundColor($r('app.color.color_ED2800'))  
152 - .fontColor($r('app.color.color_fff'))  
153 - .onClick(() => { 145 + Row() {
  146 + Blank().layoutWeight(1)
  147 + Image($r('app.media.icon_add_attention'))
  148 + .width($r('app.float.vp_12'))
  149 + .height($r('app.float.vp_12'))
  150 + .margin({right:2})
  151 + Text('关注')
  152 + .textAlign(TextAlign.Center)
  153 + .fontSize($r('app.float.font_size_12'))
  154 + .fontColor($r('app.color.color_fff'))
  155 + Blank().layoutWeight(1)
  156 + }
  157 + .width($r('app.float.margin_54'))
  158 + .height($r('app.float.margin_24'))
  159 + .borderRadius($r('app.float.vp_3'))
  160 + .backgroundColor($r('app.color.color_ED2800'))
  161 + .onClick(() => {
154 this.handleAccention() 162 this.handleAccention()
155 }) 163 })
156 } else { 164 } else {