Showing
1 changed file
with
8 additions
and
6 deletions
| @@ -71,7 +71,7 @@ export struct CommentComponent { | @@ -71,7 +71,7 @@ export struct CommentComponent { | ||
| 71 | if (this.publishCommentModel.lastCommentModel.parentId == '-1') { | 71 | if (this.publishCommentModel.lastCommentModel.parentId == '-1') { |
| 72 | this.allDatas.addFirstItem(model) | 72 | this.allDatas.addFirstItem(model) |
| 73 | //TODO 跳转顶部 | 73 | //TODO 跳转顶部 |
| 74 | - }else{ | 74 | + } else { |
| 75 | //二级评论 | 75 | //二级评论 |
| 76 | this.allDatas.getDataArray().forEach(element => { | 76 | this.allDatas.getDataArray().forEach(element => { |
| 77 | if (element.id == this.publishCommentModel.lastCommentModel.rootCommentId) { | 77 | if (element.id == this.publishCommentModel.lastCommentModel.rootCommentId) { |
| @@ -98,7 +98,7 @@ export struct CommentComponent { | @@ -98,7 +98,7 @@ export struct CommentComponent { | ||
| 98 | 98 | ||
| 99 | } | 99 | } |
| 100 | .margin({ left: 16 }) | 100 | .margin({ left: 16 }) |
| 101 | - .onClick(()=>{ | 101 | + .onClick(() => { |
| 102 | // this.allDatas.push(new commentItemModel()) | 102 | // this.allDatas.push(new commentItemModel()) |
| 103 | // this.allDatas.addFirstItem(new commentItemModel()) | 103 | // this.allDatas.addFirstItem(new commentItemModel()) |
| 104 | // this.allDatas.reloadData(); | 104 | // this.allDatas.reloadData(); |
| @@ -148,7 +148,7 @@ export struct CommentComponent { | @@ -148,7 +148,7 @@ export struct CommentComponent { | ||
| 148 | .onClick(() => { | 148 | .onClick(() => { |
| 149 | console.log(TAG) | 149 | console.log(TAG) |
| 150 | }) | 150 | }) |
| 151 | - },(childItem: commentItemModel, subIndex: number) => JSON.stringify(childItem) + subIndex.toString()) | 151 | + }, (childItem: commentItemModel, subIndex: number) => JSON.stringify(childItem) + subIndex.toString()) |
| 152 | } | 152 | } |
| 153 | } else { | 153 | } else { |
| 154 | ListItemGroup({ header: this.CommentHeaderItem(item, index) }) { | 154 | ListItemGroup({ header: this.CommentHeaderItem(item, index) }) { |
| @@ -163,12 +163,14 @@ export struct CommentComponent { | @@ -163,12 +163,14 @@ export struct CommentComponent { | ||
| 163 | .onClick(() => { | 163 | .onClick(() => { |
| 164 | console.log(TAG) | 164 | console.log(TAG) |
| 165 | }) | 165 | }) |
| 166 | - },(childItem: commentItemModel, subIndex: number) => JSON.stringify(childItem) + subIndex.toString()) | 166 | + }, (childItem: commentItemModel, subIndex: number) => JSON.stringify(childItem) + subIndex.toString()) |
| 167 | } | 167 | } |
| 168 | } | 168 | } |
| 169 | - },(item: commentItemModel, index: number) => JSON.stringify(item) + index.toString()) | ||
| 170 | - }.layoutWeight(1) | 169 | + }, (item: commentItemModel, index: number) => JSON.stringify(item) + index.toString()) |
| 170 | + } | ||
| 171 | + .enableScrollInteraction(false) | ||
| 171 | } | 172 | } |
| 173 | + | ||
| 172 | } | 174 | } |
| 173 | 175 | ||
| 174 | //获取数据 | 176 | //获取数据 |
-
Please register or login to post a comment