视频阅读量++

This commit is contained in:
xiaoxiao 2025-06-17 13:50:34 +08:00
parent 61a28b9150
commit 7e8836fadf
2 changed files with 3 additions and 12 deletions

View File

@ -35,22 +35,13 @@ export struct ItemCompVideo {
.padding({left:10,right:10,bottom:10}) .padding({left:10,right:10,bottom:10})
.width('100%') .width('100%')
.margin({top:6}) .margin({top:6})
}.backgroundColor(Color.White) }.backgroundColor(Color.White)
.borderRadius(5) .borderRadius(5)
.onClick(()=>{ .onClick(()=>{
const newReadNumber:number = Number(this.item.readnum)+1;
this.item.readnum = newReadNumber.toString();
videoTools.getVideoDetail(this.item.uuid) videoTools.getVideoDetail(this.item.uuid)
}) })
.width('100%').clip(true) .width('100%').clip(true)
} }
} }

View File

@ -38,7 +38,7 @@ export struct ListCompGandan {
let routerInfo: uiObserver.RouterPageInfo | undefined = this.queryRouterPageInfo(); let routerInfo: uiObserver.RouterPageInfo | undefined = this.queryRouterPageInfo();
if (info.pageId == routerInfo?.pageId) { if (info.pageId == routerInfo?.pageId) {
if (info.state == uiObserver.RouterPageState.ON_PAGE_SHOW) { if (info.state == uiObserver.RouterPageState.ON_PAGE_SHOW) {
this.onRefresh() // this.onRefresh()
} else if (info.state == uiObserver.RouterPageState.ON_PAGE_HIDE) { } else if (info.state == uiObserver.RouterPageState.ON_PAGE_HIDE) {
} }