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-07-22 18:13:24 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dd7dd9ba965f777da13047ca5c537d168cb6fd02
dd7dd9ba
1 parent
19fabc90
fix: 视频引导手势问题
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailVideoListPage.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/VideoChannelDetail.ets
sight_harmony/products/phone/src/main/ets/pages/MainPage.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailVideoListPage.ets
View file @
dd7dd9b
...
...
@@ -15,7 +15,6 @@ import { BusinessError } from '@kit.BasicServicesKit';
const storage = LocalStorage.getShared();
const TAG = 'DetailVideoListPage'
PersistentStorage.persistProp('DetailVideoListGestureLoadStrategy', 0); // 点播视频手势动画0为用户首次进入视频点播,1为用户已进入视频点播
@Entry(storage)
@Component
...
...
@@ -47,7 +46,7 @@ export struct DetailVideoListPage {
@Provide toastTextVisible: boolean = false
private AudioSuspension = new AudioSuspensionModel()
@State isShowAudioCom: boolean = false
@StorageLink('
DetailVideoListGestureLoadStrategy') DetailVideoList
GestureLoadStrategy: number = 0
@StorageLink('
GestureLoadStrategy')
GestureLoadStrategy: number = 0
async aboutToAppear(): Promise<void> {
// 注册监听网络连接
...
...
@@ -285,10 +284,10 @@ export struct DetailVideoListPage {
.justifyContent(FlexAlign.Center)
.width('100%')
.height('100%')
.visibility(this.
DetailVideoList
GestureLoadStrategy == 0 ? Visibility.Visible : Visibility.Hidden)
.visibility(this.GestureLoadStrategy == 0 ? Visibility.Visible : Visibility.Hidden)
.backgroundColor('rgba(0, 0, 0, 0.50)')
.onTouch(() => {
this.
DetailVideoList
GestureLoadStrategy = 1
this.GestureLoadStrategy = 1
})
// 手势动画 初次进入显示
LottieView({
...
...
@@ -299,9 +298,9 @@ export struct DetailVideoListPage {
autoplay: true,
loop: true
})
.visibility(this.
DetailVideoList
GestureLoadStrategy == 0 ? Visibility.Visible : Visibility.Hidden)
.visibility(this.GestureLoadStrategy == 0 ? Visibility.Visible : Visibility.Hidden)
.onTouch(() => {
this.
DetailVideoList
GestureLoadStrategy = 1
this.GestureLoadStrategy = 1
})
}
}
...
...
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/VideoChannelDetail.ets
View file @
dd7dd9b
...
...
@@ -25,7 +25,6 @@ interface loadMoreData {
const TAG = 'VideoChannelDetail'
const storage = LocalStorage.getShared();
PersistentStorage.persistProp('GestureLoadStrategy', 0); // 点播视频手势动画0为用户首次进入视频点播,1为用户已进入视频点播
@Entry(storage)
@Component
...
...
sight_harmony/products/phone/src/main/ets/pages/MainPage.ets
View file @
dd7dd9b
...
...
@@ -15,6 +15,8 @@ import LaunchDataModel from './viewModel/LaunchDataModel';
const TAG = 'MainPage';
PersistentStorage.persistProp('GestureLoadStrategy', 0); // 点播视频手势动画0为用户首次进入视频点播,1为用户已进入视频点播
@Entry
@Component
struct MainPage {
...
...
Please
register
or
login
to post a comment