yangsunyue_wd

no message

@@ -17,7 +17,7 @@ export class publishCommentModel { @@ -17,7 +17,7 @@ export class publishCommentModel {
17 /*内容类别, 1:点播,2:直播,3:活动,4:广告,5:专题,6:链接,7:榜单,8:图文,9:组图,10:H5新闻,11:频道,12:组件,13:音频,14:动态(13和14为中文版新增) 页面必传*/ 17 /*内容类别, 1:点播,2:直播,3:活动,4:广告,5:专题,6:链接,7:榜单,8:图文,9:组图,10:H5新闻,11:频道,12:组件,13:音频,14:动态(13和14为中文版新增) 页面必传*/
18 targetType: string = '' 18 targetType: string = ''
19 /*评论总数*/ 19 /*评论总数*/
20 - totalCommentNumer: string = '' 20 + totalCommentNumer: string = '0'
21 21
22 //评论传参 22 //评论传参
23 /*评论图片url,多个逗号隔开*/ 23 /*评论图片url,多个逗号隔开*/
1 -  
2 import { publishCommentModel } from '../model/PublishCommentModel' 1 import { publishCommentModel } from '../model/PublishCommentModel'
3 2
4 @Preview 3 @Preview
5 @Component 4 @Component
6 export struct CommentTabComponent { 5 export struct CommentTabComponent {
7 @ObjectLink publishCommentModel: publishCommentModel 6 @ObjectLink publishCommentModel: publishCommentModel
  7 + /*展示类型*/
  8 + @State type:number = 1
  9 + @State placeHolder: string = '说两句...'
  10 +
  11 + build() {
  12 + Row(){
  13 + Stack({alignContent:Alignment.Start}){
  14 + Image($r('app.media.comment_img_input_hui')).width(151).height(30)
  15 + Text(this.placeHolder).fontSize(12).fontColor('#999999').margin({left:10})
  16 + }
  17 + }.width(151).height(30)
  18 + }
  19 +}
  20 +
  21 +@Preview
  22 +@Component
  23 +export struct CommentIconComponent {
  24 + @ObjectLink publishCommentModel: publishCommentModel
  25 + /*展示类型*/
  26 + @State type:number = 1
8 27
9 build() { 28 build() {
  29 + Row(){
  30 + Stack({alignContent:Alignment.TopEnd}){
  31 + Image($r('app.media.comment_icon')).width(24).height(24)
  32 + // Stack({alignContent:Alignment.Start}) {
  33 + // Image($r('app.media.comment_icon_number')).objectFit(ImageFit.Fill).width(12).height(12)
  34 + Text(this.publishCommentModel.totalCommentNumer + '12345' +' ')
  35 + .fontSize(8)
  36 + .fontColor('#ffffff')
  37 + // .backgroundColor('#ED2800')
  38 + .height(12)
  39 + .margin({ left: 6 })
  40 + .backgroundImage($r('app.media.comment_icon_number'))
  41 + // }.width(25)
  42 +
  43 + .offset({
  44 + x:12
  45 + })
  46 + }
  47 + }.width(24).height(24)
10 } 48 }
11 } 49 }
@@ -196,8 +196,8 @@ export struct QualityCommentsComponent { @@ -196,8 +196,8 @@ export struct QualityCommentsComponent {
196 // alldata:[], 196 // alldata:[],
197 // scroller:this.scroller, 197 // scroller:this.scroller,
198 // customList:()=>{ 198 // customList:()=>{
199 - // // this.listLayout()  
200 - // this.testLayout() 199 + // this.listLayout()
  200 + // // this.testLayout()
201 // }, 201 // },
202 // onRefresh:(resolve)=>{ 202 // onRefresh:(resolve)=>{
203 // this.currentPage = 1 203 // this.currentPage = 1
@@ -269,7 +269,7 @@ export struct QualityCommentsComponent { @@ -269,7 +269,7 @@ export struct QualityCommentsComponent {
269 List({ space: 12, scroller:this.scroller }){ 269 List({ space: 12, scroller:this.scroller }){
270 LazyForEach(this.allDatas, (item: commentItemModel, index: number) => { 270 LazyForEach(this.allDatas, (item: commentItemModel, index: number) => {
271 ListItem() { 271 ListItem() {
272 - // QualityCommentItem({ item: item, index: index }).margin({ left: 12, right: 12 }) 272 + QualityCommentItem({ item: item, index: index }).margin({ left: 12, right: 12 })
273 } 273 }
274 }) 274 })
275 } 275 }