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-21 16:02:43 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
361a73948602f74cbe0b0aa690f33ee417ad2574
361a7394
2 parents
efd9b216
d013ee66
Merge remote-tracking branch 'origin/main'
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
30 additions
and
5 deletions
sight_harmony/commons/wdRouter/src/main/ets/utils/ProcessUtils.ets
sight_harmony/features/wdBean/src/main/ets/bean/component/extra/ExtraDTO.ts
sight_harmony/features/wdBean/src/main/ets/bean/content/ContentDTO.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/ChildCommentComponent.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailPlayShortVideoPage.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailVideoListPage.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/view/CommentDialogView.ets
sight_harmony/commons/wdRouter/src/main/ets/utils/ProcessUtils.ets
View file @
361a739
...
...
@@ -189,12 +189,12 @@ export class ProcessUtils {
if (typeof type == "number") {
type = `${type}`
}
//
Logger.debug(TAG, `
objectType, ${JSON.stringify(content)}`);
//
console.log(TAG, `DetailVideoListPage
objectType, ${JSON.stringify(content)}`);
switch (type) {
case ContentConstants.TYPE_NONE:
// Logger.debug(TAG, "processPage, do nothing");
break;
case ContentConstants.TYPE_VOD:
case ContentConstants.TYPE_VOD:
// 视频详情
// Logger.debug(TAG, "processPage, nonsupport!!!");
ProcessUtils.gotoVod(content)
break;
...
...
@@ -282,7 +282,7 @@ export class ProcessUtils {
} as Params,
};
WDRouterRule.jumpWithAction(taskAction)
Logger.debug(TAG, `gotoDynamicDetailPage, ${content.objectId}`);
//
Logger.debug(TAG, `gotoDynamicDetailPage, ${content.objectId}`);
}
/**
...
...
@@ -473,7 +473,8 @@ export class ProcessUtils {
relType: content?.relType,
relId: content?.relId,
sourcePage: '5',
commentId: content?.commentInfo?.commentId
commentId: content?.commentInfo?.commentId,
showComment: content.showComment
} as ExtraDTO,
targetLayout: content.customParamTargetLayout
} as Params,
...
...
sight_harmony/features/wdBean/src/main/ets/bean/component/extra/ExtraDTO.ts
View file @
361a739
...
...
@@ -20,4 +20,5 @@ export interface ExtraDTO extends ItemDTO {
commentId
?:
string
;
extra
?:
string
title
:
string
showComment
?:
boolean
}
\ No newline at end of file
...
...
sight_harmony/features/wdBean/src/main/ets/bean/content/ContentDTO.ets
View file @
361a739
...
...
@@ -146,6 +146,9 @@ export class ContentDTO implements BaseDTO {
author: string = ""; ///撰稿人
clickComment:boolean = false;
// 号主页评论列表点击跳转到视频详情判断评论弹框是否展开
showComment?:boolean = false;
static clone(old: ContentDTO): ContentDTO {
let content = new ContentDTO();
content.liveType = old.liveType;
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/ChildCommentComponent.ets
View file @
361a739
...
...
@@ -299,6 +299,7 @@ function getParams(item: CommentListItem) : ContentDTO{
contentDTO.relId = item.targetRelId;
contentDTO.objectType = item.targetType + "";
contentDTO.newsTitle = item.targetTitle
contentDTO.showComment = true
return contentDTO
}
...
...
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailPlayShortVideoPage.ets
View file @
361a739
...
...
@@ -285,6 +285,7 @@ export struct DetailPlayShortVideoPage {
}
showCommentListChanged() {
// console.log('DetailVideoListPage showCommentListChanged this.showCommentList', this.showCommentList)
if (this.showCommentList) {
this.playerWidth = px2vp(this.windowWidth)
// this.playerHeight = px2vp(this.windowWidth) / (16 / 9.0)
...
...
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailVideoListPage.ets
View file @
361a739
...
...
@@ -99,7 +99,7 @@ export struct DetailVideoListPage {
aboutToAppear() {
// 在视频详情页
this.peopleShipHomeCreatorId = AppStorage.get<string>('peopleShipHomeCreatorId') || '';
console.info(TAG, `cj2024 peopleShipHomeCreatorId = ${this.peopleShipHomeCreatorId}`)
//
console.info(TAG, `cj2024 peopleShipHomeCreatorId = ${this.peopleShipHomeCreatorId}`)
if (this.peopleShipHomeCreatorId) {
// 从人民号号主传过来的
this.getPeopleShipHomeDetail(this.peopleShipHomeCreatorId);
...
...
@@ -110,6 +110,8 @@ export struct DetailVideoListPage {
}
async getPeopleShipHomeDetail(peopleShipHomeCreatorId: string) {
// 注册监听网络连接
this.netStatus = undefined
...
...
@@ -165,6 +167,19 @@ export struct DetailVideoListPage {
this.AudioSuspension.minimize()
}
});
const action: Action = router.getParams() as Action;
if (action) {
if (action.params && action.params.extra) {
if(action.params.extra.showComment) {
// 目的子组件watch生效
setTimeout(() => {
this.showCommentList = true
}, 300)
}
}
}
// console.log(TAG, 'onPageShow', JSON.stringify(action.params))
}
onPageHide(): void {
...
...
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/view/CommentDialogView.ets
View file @
361a739
...
...
@@ -17,11 +17,14 @@ export struct CommentDialogView {
@State @Watch("innerShowCommentChange") innerShowComment: boolean = false
showCommentListChange(val: boolean) {
// console.log('DetailVideoListPage this.showCommentList', this.showCommentList)
if (this.showCommentList && this.index === this.currentIndex) {
this.innerShowComment = true
} else {
this.innerShowComment = false
}
// console.log('DetailVideoListPage this.index', this.index)
// console.log('DetailVideoListPage this.currentIndex', this.currentIndex)
}
innerShowCommentChange() {
...
...
Please
register
or
login
to post a comment