wangliang_wd

feat:调整早晚班渐变线逻辑

1 import router from '@ohos.router'; 1 import router from '@ohos.router';
2 import { ContentDetailDTO, TopicInfo } from 'wdBean/Index'; 2 import { ContentDetailDTO, TopicInfo } from 'wdBean/Index';
3 -import { ToastUtils } from 'wdKit'; 3 +import { DisplayUtils, ToastUtils } from 'wdKit';
4 import { WDShare } from 'wdShare/Index'; 4 import { WDShare } from 'wdShare/Index';
5 import { TrackConstants } from 'wdTracking/Index'; 5 import { TrackConstants } from 'wdTracking/Index';
6 import font from '@ohos.font'; 6 import font from '@ohos.font';
@@ -130,11 +130,11 @@ export struct PaperTitleComponent { @@ -130,11 +130,11 @@ export struct PaperTitleComponent {
130 @Builder 130 @Builder
131 rightDecorateBuilder() { 131 rightDecorateBuilder() {
132 Row() 132 Row()
133 - .width('80vp') 133 + .width(DisplayUtils.getDeviceWidth() - 265)
134 .height('18vp') 134 .height('18vp')
135 - .clip(new Path({  
136 - commands: `M${vp2px(9)} 0 H${vp2px(91)} V${vp2px(18)} L0 ${vp2px(18)} Z`  
137 - })) 135 + // .clip(new Path({
  136 + // commands: `M${vp2px(9)} 0 H${vp2px(91)} V${vp2px(18)} L0 ${vp2px(18)} Z`
  137 + // }))
138 .linearGradient({ 138 .linearGradient({
139 direction: GradientDirection.Right, // 渐变方向 139 direction: GradientDirection.Right, // 渐变方向
140 repeating: false, // 渐变颜色是否重复 140 repeating: false, // 渐变颜色是否重复
@@ -172,7 +172,7 @@ export struct HomePageBottomCommentComponent { @@ -172,7 +172,7 @@ export struct HomePageBottomCommentComponent {
172 parentCommentUserName)) 172 parentCommentUserName))
173 }) 173 })
174 174
175 - this.bottomCompH = DisplayUtils.getDeviceHeight() - data.length*160 175 + this.bottomCompH = DisplayUtils.getDeviceHeight() - data.length*160 - 140
176 if (status.commentIdList.length === 0) { 176 if (status.commentIdList.length === 0) {
177 177
178 if (this.curPageNum === 1) this.data_comment.clear() 178 if (this.curPageNum === 1) this.data_comment.clear()