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
yangsunyue_wd
2024-04-28 10:52:49 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
af08c2732c53e5ec2d5ec6766826d06d0bcad776
af08c273
1 parent
d3b81818
desc:评论相关
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
9 deletions
sight_harmony/commons/wdJsBridge/BuildProfile.ets
sight_harmony/features/wdComponent/src/main/ets/components/comment/model/CommentModel.ets
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentTabComponent.ets
sight_harmony/commons/wdJsBridge/BuildProfile.ets
0 → 100644
View file @
af08c27
export default class BuildProfile {
static readonly HAR_VERSION = '1.0.0';
static readonly BUILD_MODE_NAME = 'debug';
static readonly DEBUG = true;
}
\ No newline at end of file
...
...
sight_harmony/features/wdComponent/src/main/ets/components/comment/model/CommentModel.ets
View file @
af08c27
...
...
@@ -32,6 +32,7 @@ export class commentListModel extends PageModel {
pageNum: number = 1
pageSize: number = 10
totalCount: number = 0
totalCommentNum: string = '0'
hasNext: number = 0
list: commentItemModel[] = []
// constructor(pageNum:number, pageSize:number, totalCount: number, hasNext: number, list: commentItemModel[]) {
...
...
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentComponent.ets
View file @
af08c27
...
...
@@ -177,6 +177,7 @@ export struct CommentComponent {
async getData() {
commentViewModel.fetchContentCommentList('1', this.publishCommentModel.targetId, this.publishCommentModel.targetType)
.then(commentListModel => {
this.publishCommentModel.totalCommentNumer = commentListModel.totalCount + ''
if (commentListModel && commentListModel.list && commentListModel.list.length > 0) {
commentListModel.list.forEach(element => {
element.hasMore = Number.parseInt(element.childCommentNum) ? true : false
...
...
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentTabComponent.ets
View file @
af08c27
...
...
@@ -57,16 +57,16 @@ export struct CommentIconComponent {
/*展示类型*/
@State type: number = 1
aboutToAppear(): void {
setTimeout(() => {
this.publishCommentModel.totalCommentNumer = '444'
}, 3000);
// aboutToAppear(): void {
// setTimeout(() => {
// this.publishCommentModel.totalCommentNumer = '444'
// }, 3000);
//
// setTimeout(() => {
// this.publishCommentModel.totalCommentNumer = '2'
// }, 4000);
setTimeout(() => {
this.publishCommentModel.totalCommentNumer = '2'
}, 4000);
}
// }
/*回调方法*/
onClickItem: () => void = () => {
...
...
Please
register
or
login
to post a comment