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
陈剑华
2024-06-04 10:20:30 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
8f1767d6aa789232e2986a1bb6ff9821258e1175
8f1767d6
2 parents
16289548
40d6cb83
Merge remote-tracking branch 'origin/main'
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
13 deletions
sight_harmony/features/wdComponent/src/main/ets/components/page/ChannelSubscriptionLayout.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/TopNavigationComponentNew.ets
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/details/video/TopPlayComponet.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/ChannelSubscriptionLayout.ets
View file @
8f1767d
...
...
@@ -40,7 +40,7 @@ struct ChannelSubscriptionLayout {
aboutToAppear() {
this.currentTopNavSelectedItem = this.myChannelList[this.currentTopNavSelectedIndex]
this.myChannelList.forEach(item
=>
{
this.myChannelList.forEach(item
=>
{
this.channelIds.push(item.channelId)
})
}
...
...
@@ -53,8 +53,9 @@ struct ChannelSubscriptionLayout {
this.channelIds.splice(index2, 0, channelIdTmp[0])
AppStorage.setOrCreate('channelIds', this.channelIds.join(','))
}
//删除频道
delChannelItem(index: number){
delChannelItem(index: number)
{
let item = this.myChannelList.splice(index, 1)[0]
this.channelIds.splice(index, 1)
AppStorage.setOrCreate('channelIds', JSON.stringify(this.channelIds))
...
...
@@ -65,8 +66,9 @@ struct ChannelSubscriptionLayout {
this.localChannelList.unshift(item)
}
}
// 添加频道
addChannelItem(item: TopNavDTO){
addChannelItem(item: TopNavDTO)
{
this.channelIds.push(item.channelId)
this.myChannelList.push(item)
AppStorage.setOrCreate('channelIds', this.channelIds.join(','))
...
...
@@ -323,9 +325,10 @@ struct ChannelSubscriptionLayout {
}
.width('23%')
.height(40)
.borderRadius(3)
.border({
width: item.headlinesOn === 1 || item.movePermitted === 0 ? 0 : 1,
color: '#EDEDED',
width: 0.7,
color: item.headlinesOn === 1 || item.movePermitted === 0 ? '#F5F5F5' : '#EDEDED',
radius: 3
})
.zIndex(this.dragItem == item.num ? 1 : 0)
...
...
@@ -427,8 +430,9 @@ struct ChannelSubscriptionLayout {
.width(80)
.height(40)
.border({
width: 1,
color: '#EDEDED'
width: 0.7,
color: '#EDEDED',
radius: 3
})
}, (item: TopNavDTO) => JSON.stringify(item))
}
...
...
@@ -471,8 +475,9 @@ struct ChannelSubscriptionLayout {
.width(80)
.height(40)
.border({
width: 1,
color: '#EDEDED'
width: 0.7,
color: '#EDEDED',
radius: 3
})
}, (item: TopNavDTO) => JSON.stringify(item))
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/page/TopNavigationComponentNew.ets
View file @
8f1767d
...
...
@@ -203,7 +203,6 @@ export struct TopNavigationComponentNew {
moreChannelList: $moreChannelList,
localChannelList: $localChannelList,
changeTab: (index) => {
this.changePage(index)
}
})
...
...
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/details/video/TopPlayComponet.ets
View file @
8f1767d
...
...
@@ -125,7 +125,6 @@ export struct TopPlayComponent {
} else {
Logger.debug(TAG, `---0------>${playUrl}`)
if (StringUtils.isNotEmpty(playUrl)) {
Logger.debug(TAG, `---isNotEmpty------>`)
this.playUrl = playUrl
this.tryToPlay()
}
...
...
@@ -152,8 +151,8 @@ export struct TopPlayComponent {
this.previewUrl = ''
}
}
Logger.debug(TAG,
`---0------>` + this.isWait + ' ->' + this.isHideLoading + ' ->' + this.isEnd + ' -->' + this.isVideoSource)
// Logger.debug(TAG,
// `---0------>` + this.isWait + ' ->' + this.isHideLoading + ' ->' + this.isEnd + ' -->' + this.isVideoSource)
}
tryToPlay() {
...
...
Please
register
or
login
to post a comment