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
chenquansheng
2024-08-14 16:00:52 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5515c942319980e074134d1c9d6b03e6ac2ed43b
5515c942
1 parent
9a461ab5
fix |> 在直播预约详情页面点击直播预约后返回直播频道列表预约状态没有更新
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
2 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 @
5515c94
...
...
@@ -4,9 +4,8 @@ import { postInteractAccentionOperateParams } from 'wdBean';
import { PageRepository } from '../../repository/PageRepository';
import { ProcessUtils } from 'wdRouter';
import { HttpUtils } from 'wdNetwork/Index';
import { DateTimeUtils, SPHelper } from 'wdKit';
import { DateTimeUtils, SPHelper
,Logger, ToastUtils,EmitterUtils,EmitterEventId
} from 'wdKit';
import { LiveModel } from '../../viewmodel/LiveModel'
import { Logger, ToastUtils } from 'wdKit';
import { onlyWifiLoadImg } from '../../utils/lazyloadImg';
import { SpConstants } from 'wdConstant/Index'
import { InfomationCardClick } from '../../utils/infomationCardClick';
...
...
@@ -94,6 +93,31 @@ export struct ZhSingleRow03 {
this.getReserveState();
}
this.loadImg = await onlyWifiLoadImg();
// 获取预约
EmitterUtils.receiveEvent(EmitterEventId.LIVE_ROOM_SUBSCRIBE, (str?: string) => {
Logger.debug(TAG, 'receiveEvent LIVE_ROOM_SUBSCRIBE: ' + str)
if (str) {
// 跳转指定频道场景,传参底导id、频道id
const model: ReserveItemBean = JSON.parse(str)
for (let contentItem of this.compDTO.operDataList) {
let liveStr = new String(model.liveId)
if (contentItem.objectId == liveStr) {
if (model.subscribe){
this.reservedIds.push(contentItem.objectId.toString())
}else {
let index = this.reservedIds.findIndex(item => item == contentItem.objectId);
if (index > -1) {
this.reservedIds.splice(index, 1);
}
}
let time = DateTimeUtils.getTimeStamp().toString()
this.compDTO.timestamp = time
return
}
}
}
})
}
...
...
Please
register
or
login
to post a comment