Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
陈剑华
2024-09-19 14:16:59 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
ed5ab62a090eb1f16d5ba07d865da177cd80276a
ed5ab62a
2 parents
4d18ae55
c3a47673
Merge remote-tracking branch 'origin/main'
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
6 deletions
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/LiveFollowComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/ChildCommentComponent.ets
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/details/LiveCountdownComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/LiveFollowComponent.ets
View file @
ed5ab62
...
...
@@ -63,7 +63,7 @@ export struct LiveFollowComponent {
bottom: 0,
})
//号主名称
Text(this.
rmhInfo.rmhName
)
Text(this.
getRmhName()
)
.fontColor(Color.White)
.textOverflow({ overflow: TextOverflow.Ellipsis })
.maxLines(1)
...
...
@@ -151,4 +151,11 @@ export struct LiveFollowComponent {
}
})
}
getRmhName() {
if (this.rmhInfo.rmhName.length > 7) {
return this.rmhInfo.rmhName.substring(0, 7) + "..."
}
return this.rmhInfo.rmhName
}
}
\ No newline at end of file
...
...
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentComponent.ets
View file @
ed5ab62
...
...
@@ -832,7 +832,7 @@ struct commentFooterView {
if (this.item.id) { // 审核通过的才显示点赞
Row({ space: 6 }) {
Text(this.item.likeNum)
.fontColor($r('app.color.color_666666'))
.fontColor(
this.item.api_status?$r('app.color.color_ED2800') :
$r('app.color.color_666666'))
.fontSize(14)
Image(this.item.api_status ? $r('app.media.comment_like_select') : $r('app.media.comment_like_normal'))
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/ChildCommentComponent.ets
View file @
ed5ab62
...
...
@@ -159,7 +159,7 @@ export struct ChildCommentComponent {
.width('100%')
.height(0.5)
.strokeWidth(0.5)
.
backgroundC
olor($r('app.color.color_EDEDED'))
.
c
olor($r('app.color.color_EDEDED'))
.margin({ top: 10, bottom: 10 })
}
...
...
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/details/LiveCountdownComponent.ets
View file @
ed5ab62
import font from '@ohos.font'
import { ContentDetailDTO } from 'wdBean/Index'
import { DateTimeUtils, StringUtils, ToastUtils } from 'wdKit/Index'
import {
CustomToast,
DateTimeUtils, StringUtils, ToastUtils } from 'wdKit/Index'
import { LiveViewModel } from '../../viewModel/LiveViewModel'
import { HttpUtils } from 'wdNetwork/Index'
import { WDRouterPage, WDRouterRule } from 'wdRouter/Index'
...
...
@@ -22,6 +22,24 @@ export struct LiveCountdownComponent {
liveViewModel: LiveViewModel = new LiveViewModel()
pageParam: ParamType = {}
@State toastText: ResourceStr = ""
dialogToast: CustomDialogController = new CustomDialogController({
builder: CustomToast({
bgColor: 0xB3000000,
opacityValue: 1,
msg: this.toastText,
}),
autoCancel: false,
alignment: DialogAlignment.Center,
customStyle: true,
maskColor: "#00000000"
})
showToastTip(msg: ResourceStr) {
this.toastText = msg
this.dialogToast.open()
}
aboutToAppear(): void {
//注册字体
font.registerFont({
...
...
@@ -187,11 +205,13 @@ export struct LiveCountdownComponent {
if (data.success) {
this.isAppointmentLive = !this.isAppointmentLive
if (this.isAppointmentLive) {
ToastUtils.showToast('预约成功', 1000)
// ToastUtils.showToast('预约成功', 1000)
this.showToastTip('预约成功')
TrackingContent.subscribeClick(true, TrackConstants.PageName.Live_Detail,
TrackConstants.PageName.Live_Detail, this.pageParam)
} else {
ToastUtils.showToast('取消预约成功', 1000)
// ToastUtils.showToast('取消预约成功', 1000)
this.showToastTip('取消预约成功')
TrackingContent.subscribeClick(false, TrackConstants.PageName.Live_Detail,
TrackConstants.PageName.Live_Detail, this.pageParam)
}
...
...
Please
register
or
login
to post a comment