张善主

fix(18643): UI还原问题-【生产】进入直播频道,进入预告直播间,日期显示效果和ios 不一致,多了个0

@@ -154,7 +154,12 @@ export struct LiveCountdownComponent { @@ -154,7 +154,12 @@ export struct LiveCountdownComponent {
154 if (StringUtils.isNotEmpty(this.liveDetailsBean.liveInfo?.planStartTime)) { 154 if (StringUtils.isNotEmpty(this.liveDetailsBean.liveInfo?.planStartTime)) {
155 let playStartTimeTmp = this.liveDetailsBean.liveInfo?.planStartTime + '' 155 let playStartTimeTmp = this.liveDetailsBean.liveInfo?.planStartTime + ''
156 this.month = Number(playStartTimeTmp.substring(5, 7)).toString() 156 this.month = Number(playStartTimeTmp.substring(5, 7)).toString()
157 - this.day = playStartTimeTmp.substring(8, 10) 157 + let tempDay = playStartTimeTmp.substring(8, 10)
  158 + if(tempDay.startsWith('0')){
  159 + this.day = playStartTimeTmp.substring(9, 10)
  160 + }else{
  161 + this.day = tempDay
  162 + }
158 this.hour = playStartTimeTmp.substring(11, 13) 163 this.hour = playStartTimeTmp.substring(11, 13)
159 this.minute = playStartTimeTmp.substring(14, 16) 164 this.minute = playStartTimeTmp.substring(14, 16)
160 } 165 }