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
xugenyuan
2024-09-23 10:28:30 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
722569562b890244c312d867decfc8323f90fa74
72256956
1 parent
f193cad1
ref |> 修复直播频道预告卡上预约状态在登录和退出时未刷新问题
Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletions
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhSingleRow03.ets
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhSingleRow03.ets
View file @
7225695
...
...
@@ -46,6 +46,7 @@ export struct ZhSingleRow03 {
@State moreWidth:number = 22
@State moreTips: string = ''
scroller: Scroller = new Scroller()
@Consume @Watch('pageShowForUpdateData') pageShow :number
resetMoreTips() {
console.log('resetMoreTips', this.moreWidth, this.initMoreWidth)
...
...
@@ -89,7 +90,7 @@ export struct ZhSingleRow03 {
}
async aboutToAppear(): Promise<void> {
if (HttpUtils.
getUserId
()) {
if (HttpUtils.
isLogin
()) {
this.getReserveState();
}
this.loadImg = await onlyWifiLoadImg();
...
...
@@ -118,11 +119,23 @@ export struct ZhSingleRow03 {
}
}
})
// 可能有被动强制退出清空
EmitterUtils.receiveEvent(EmitterEventId.FORCE_USER_LOGIN_OUT, () => {
this.getReserveState()
})
}
pageShowForUpdateData() {
this.getReserveState()
}
// 请求所有预约状态
async getReserveState() {
if (false == HttpUtils.isLogin()) {
this.reservedIds = []
return
}
const reserveBean: reserveReqItem[] = this.compDTO.operDataList.map((item: ContentDTO) => {
const reqItem: reserveReqItem = {
liveId: item.objectId.toString(),
...
...
Please
register
or
login
to post a comment