张善主

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

@@ -142,14 +142,22 @@ export struct DynamicDetailComponent { @@ -142,14 +142,22 @@ 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')) 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('关注')
148 .textAlign(TextAlign.Center) 152 .textAlign(TextAlign.Center)
149 .fontSize($r('app.float.font_size_12')) 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'))
150 .borderRadius($r('app.float.vp_3')) 159 .borderRadius($r('app.float.vp_3'))
151 .backgroundColor($r('app.color.color_ED2800')) 160 .backgroundColor($r('app.color.color_ED2800'))
152 - .fontColor($r('app.color.color_fff'))  
153 .onClick(() => { 161 .onClick(() => {
154 this.handleAccention() 162 this.handleAccention()
155 }) 163 })