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-11-07 16:32:51 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1b269f73072b73ded31f22d4fc3e3d923c030523
1b269f73
1 parent
1ee7be64
fix |>修复视频tabbar中视频在右没有声音的问题
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/VideoChannelDetail.ets
sight_harmony/products/phone/src/main/ets/pages/view/VideoChannelPage.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/VideoChannelDetail.ets
View file @
1b269f7
...
...
@@ -44,6 +44,7 @@ export struct VideoChannelDetail {
// private recommend?: string = '' // 0.非推荐,1.推荐;
@Link @Watch('navIndexChange') bottomNavIndex: number
@Link @Watch('navIndexChange') topNavIndex: number
@State navVideoIndex: number = 0
@Prop @Watch('autoRefreshChange') autoRefresh: number = 0
@Consume barBackgroundColor: Color
private swiperController: SwiperController = new SwiperController()
...
...
@@ -80,7 +81,7 @@ export struct VideoChannelDetail {
@State endIndex: number = 0
@Link isRefreshList: boolean
autoRefreshChange() {
if (this.topNavIndex ===
0
&& !this.isRequesting) {
if (this.topNavIndex ===
this.navVideoIndex
&& !this.isRequesting) {
this.data = []
this.interactDataList = []
this.totalCount = 0
...
...
@@ -92,7 +93,7 @@ export struct VideoChannelDetail {
pageShowChange() {
if (this.bottomNavIndex === 2 && this.topNavIndex ===
0
) {
if (this.bottomNavIndex === 2 && this.topNavIndex ===
this.navVideoIndex
) {
this.barBackgroundColor = Color.Black
this.switchVideoStatus = true
this.openFullScreen()
...
...
@@ -119,7 +120,7 @@ export struct VideoChannelDetail {
*/
navIndexChange() {
// console.log('navIndexChange', this.bottomNavIndex, this.topNavIndex)
if (this.bottomNavIndex === 2 && this.topNavIndex ===
0
) {
if (this.bottomNavIndex === 2 && this.topNavIndex ===
this.navVideoIndex
) {
// this.barBackgroundColor = Color.Black
this.switchVideoStatus = true
this.openFullScreen()
...
...
sight_harmony/products/phone/src/main/ets/pages/view/VideoChannelPage.ets
View file @
1b269f7
...
...
@@ -326,6 +326,7 @@ export struct VideoChannelPage {
VideoChannelDetail({
bottomNavIndex: $_currentNavIndex,
topNavIndex: $currentTopNavSelectedIndex,
navVideoIndex:index,
groupId: this.groupId + '',
pageId: item.pageId + '',
pageName: item.name + '',
...
...
Please
register
or
login
to post a comment