wangliang_wd

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

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