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
liyubing
2024-06-13 17:06:48 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
a4c79e9ec0f62f61b2ade158cd6199430a12748f
a4c79e9e
2 parents
2fe43fac
10ef4874
Merge remote-tracking branch 'origin/main'
Hide whitespace changes
Inline
Side-by-side
Showing
57 changed files
with
155 additions
and
1541 deletions
sight_harmony/.gitignore
sight_harmony/commons/wdConstant/.gitignore
sight_harmony/commons/wdJsBridge/.gitignore
sight_harmony/commons/wdJsBridge/BuildProfile.ets
sight_harmony/commons/wdKit/.gitignore
sight_harmony/commons/wdKit/oh-package-lock.json5
sight_harmony/commons/wdNetwork/.gitignore
sight_harmony/commons/wdNetwork/oh-package-lock.json5
sight_harmony/commons/wdRouter/.gitignore
sight_harmony/commons/wdRouter/oh-package-lock.json5
sight_harmony/commons/wdShareBase/.gitignore
sight_harmony/commons/wdWebComponent/.gitignore
sight_harmony/commons/wdWebComponent/oh-package-lock.json5
sight_harmony/features/wdBean/.gitignore
sight_harmony/features/wdComponent/.gitignore
sight_harmony/features/wdComponent/oh-package-lock.json5
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/MorningEveningPaperComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card10Component.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card4Component.ets
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhSingleRow04.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/HomePageBottomFollowComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/OtherHomePageBottomFollowComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/CardView.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/EditUserInfoPage.ets
sight_harmony/features/wdComponent/src/main/ets/model/EditInfoModel.ets
sight_harmony/features/wdComponent/src/main/ets/viewmodel/EditInfoViewModel.ets
sight_harmony/features/wdDetailPlayApi/.gitignore
sight_harmony/features/wdDetailPlayApi/oh-package-lock.json5
sight_harmony/features/wdDetailPlayLive/.gitignore
sight_harmony/features/wdDetailPlayLive/oh-package-lock.json5
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/vertical/PlayerComponent.ets
sight_harmony/features/wdDetailPlayShortVideo/.gitignore
sight_harmony/features/wdDetailPlayShortVideo/oh-package-lock.json5
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailPlayShortVideoPage.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailVideoListPage.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/VideoChannelDetail.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/view/PlayerBottomView.ets
sight_harmony/features/wdDetailPlayVod/.gitignore
sight_harmony/features/wdDetailPlayVod/oh-package-lock.json5
sight_harmony/features/wdHwAbility/.gitignore
sight_harmony/features/wdHwAbility/oh-package-lock.json5
sight_harmony/features/wdLayout/.gitignore
sight_harmony/features/wdLogin/.gitignore
sight_harmony/features/wdLogin/oh-package-lock.json5
sight_harmony/features/wdLogin/src/main/ets/pages/login/LoginPage.ets
sight_harmony/features/wdLogin/src/main/module.json5
sight_harmony/features/wdPlayer/.gitignore
sight_harmony/features/wdPlayer/oh-package-lock.json5
sight_harmony/features/wdPlayer/src/main/ets/controller/WDAliPlayerController.ets
sight_harmony/features/wdShare/.gitignore
sight_harmony/features/wdShare/oh-package-lock.json5
sight_harmony/features/wdTracking/.gitignore
sight_harmony/features/wdTracking/oh-package-lock.json5
sight_harmony/oh-package-lock.json5
sight_harmony/products/phone/oh-package-lock.json5
sight_harmony/products/phone/src/main/ets/pages/view/AudioComponent.ets
sight_harmony/products/phone/src/main/ets/utils/InsightIntentExecutorImpl.ets
sight_harmony/.gitignore
View file @
a4c79e9
...
...
@@ -8,4 +8,6 @@
/.clangd
/.clang-format
/.clang-tidy
**/.test
\ No newline at end of file
**/.test
**/oh-package-lock.json5
/oh-package-lock.json5
\ No newline at end of file
...
...
sight_harmony/commons/wdConstant/.gitignore
View file @
a4c79e9
...
...
@@ -3,4 +3,5 @@
/.preview
/build
/.cxx
/.test
\ No newline at end of file
/.test
/oh-package-lock.json5
\ No newline at end of file
...
...
sight_harmony/commons/wdJsBridge/.gitignore
View file @
a4c79e9
...
...
@@ -3,4 +3,6 @@
/.preview
/build
/.cxx
/.test
\ No newline at end of file
/.test
/oh-package-lock.json5
/BuildProfile.ets
\ No newline at end of file
...
...
sight_harmony/commons/wdJsBridge/BuildProfile.ets
deleted
100644 → 0
View file @
2fe43fa
export default class BuildProfile {
static readonly HAR_VERSION = '1.0.0';
static readonly BUILD_MODE_NAME = 'debug';
static readonly DEBUG = true;
static readonly TARGET_NAME = 'default';
static readonly BUILD_VERSION = '';
}
\ No newline at end of file
sight_harmony/commons/wdKit/.gitignore
View file @
a4c79e9
...
...
@@ -3,4 +3,5 @@
/.preview
/build
/.cxx
/.test
\ No newline at end of file
/.test
/oh-package-lock.json5
\ No newline at end of file
...
...
sight_harmony/commons/wdKit/oh-package-lock.json5
deleted
100644 → 0
View file @
2fe43fa
{
"meta"
:
{
"stableOrder"
:
true
},
"lockfileVersion"
:
3
,
"ATTENTION"
:
"THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."
,
"specifiers"
:
{
"@umeng/analytics@^1.0.19"
:
"@umeng/analytics@1.0.19"
,
"@umeng/common@^1.0.21"
:
"@umeng/common@1.0.21"
,
"libcommon.so@../../oh_modules/.ohpm/@umeng+common@1.0.21/oh_modules/@umeng/common/src/main/cpp/types/libcommon"
:
"libcommon.so@../../oh_modules/.ohpm/@umeng+common@1.0.21/oh_modules/@umeng/common/src/main/cpp/types/libcommon"
},
"packages"
:
{
"@umeng/analytics@1.0.19"
:
{
"name"
:
"@umeng/analytics"
,
"integrity"
:
"sha512-0m9z5l8to+POjDl9UkCQC8s4P+e2E1OILwUglC7ME4QwqfH44e59GLJtQdwF0h6kwpsy3YBft4SoWK8MYbuP7g=="
,
"resolved"
:
"https://ohpm.openharmony.cn/ohpm/@umeng/analytics/-/analytics-1.0.19.har"
,
"registryType"
:
"ohpm"
},
"@umeng/common@1.0.21"
:
{
"name"
:
"@umeng/common"
,
"integrity"
:
"sha512-EbXsd4OoRisTQf5egNY/+z1D2bvrYw9VwC2xu3EJA9TiDPSbnaJZ5+yltA/Se6yZ4oCcFvq6e5/AAfPuumunbw=="
,
"resolved"
:
"https://ohpm.openharmony.cn/ohpm/@umeng/common/-/common-1.0.21.har"
,
"registryType"
:
"ohpm"
,
"dependencies"
:
{
"libcommon.so"
:
"./src/main/cpp/types/libcommon"
}
},
"libcommon.so@../../oh_modules/.ohpm/@umeng+common@1.0.21/oh_modules/@umeng/common/src/main/cpp/types/libcommon"
:
{
"name"
:
"libcommon.so"
,
"resolved"
:
"../../oh_modules/.ohpm/@umeng+common@1.0.21/oh_modules/@umeng/common/src/main/cpp/types/libcommon"
,
"registryType"
:
"local"
}
}
}
\ No newline at end of file
sight_harmony/commons/wdNetwork/.gitignore
View file @
a4c79e9
...
...
@@ -3,4 +3,5 @@
/.preview
/build
/.cxx
/.test
\ No newline at end of file
/.test
/oh-package-lock.json5
\ No newline at end of file
...
...
sight_harmony/commons/wdNetwork/oh-package-lock.json5
deleted
100644 → 0
View file @
2fe43fa
{
"meta"
:
{
"stableOrder"
:
true
},
"lockfileVersion"
:
3
,
"ATTENTION"
:
"THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."
,
"specifiers"
:
{
"@ohos/axios@^2.1.1"
:
"@ohos/axios@2.2.0"
,
"@umeng/analytics@^1.0.19"
:
"@umeng/analytics@1.0.19"
,
"@umeng/common@^1.0.21"
:
"@umeng/common@1.0.21"
,
"libcommon.so@../../oh_modules/.ohpm/@umeng+common@1.0.21/oh_modules/@umeng/common/src/main/cpp/types/libcommon"
:
"libcommon.so@../../oh_modules/.ohpm/@umeng+common@1.0.21/oh_modules/@umeng/common/src/main/cpp/types/libcommon"
,
"wdConstant@../wdConstant"
:
"wdConstant@../wdConstant"
,
"wdKit@../wdKit"
:
"wdKit@../wdKit"
},
"packages"
:
{
"@ohos/axios@2.2.0"
:
{
"name"
:
"@ohos/axios"
,
"integrity"
:
"sha512-v1QBWk6DfcN8wUW3D0ieFbHTR1taSI5cOgxp5l6B5cegXuNYhSc8ggKlAIXe6h/14LsfM+NW0ZGfSXcNEIM5yA=="
,
"resolved"
:
"https://repo.harmonyos.com/ohpm/@ohos/axios/-/axios-2.2.0.har"
,
"registryType"
:
"ohpm"
},
"@umeng/analytics@1.0.19"
:
{
"name"
:
"@umeng/analytics"
,
"integrity"
:
"sha512-0m9z5l8to+POjDl9UkCQC8s4P+e2E1OILwUglC7ME4QwqfH44e59GLJtQdwF0h6kwpsy3YBft4SoWK8MYbuP7g=="
,
"resolved"
:
"https://ohpm.openharmony.cn/ohpm/@umeng/analytics/-/analytics-1.0.19.har"
,
"registryType"
:
"ohpm"
},
"@umeng/common@1.0.21"
:
{
"name"
:
"@umeng/common"
,
"integrity"
:
"sha512-EbXsd4OoRisTQf5egNY/+z1D2bvrYw9VwC2xu3EJA9TiDPSbnaJZ5+yltA/Se6yZ4oCcFvq6e5/AAfPuumunbw=="
,
"resolved"
:
"https://ohpm.openharmony.cn/ohpm/@umeng/common/-/common-1.0.21.har"
,
"registryType"
:
"ohpm"
,
"dependencies"
:
{
"libcommon.so"
:
"./src/main/cpp/types/libcommon"
}
},
"libcommon.so@../../oh_modules/.ohpm/@umeng+common@1.0.21/oh_modules/@umeng/common/src/main/cpp/types/libcommon"
:
{
"name"
:
"libcommon.so"
,
"resolved"
:
"../../oh_modules/.ohpm/@umeng+common@1.0.21/oh_modules/@umeng/common/src/main/cpp/types/libcommon"
,
"registryType"
:
"local"
},
"wdConstant@../wdConstant"
:
{
"name"
:
"wdconstant"
,
"resolved"
:
"../wdConstant"
,
"registryType"
:
"local"
},
"wdKit@../wdKit"
:
{
"name"
:
"wdkit"
,
"resolved"
:
"../wdKit"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"@umeng/common"
:
"^1.0.21"
,
"@umeng/analytics"
:
"^1.0.19"
}
}
}
}
\ No newline at end of file
sight_harmony/commons/wdRouter/.gitignore
View file @
a4c79e9
...
...
@@ -3,4 +3,5 @@
/.preview
/build
/.cxx
/.test
\ No newline at end of file
/.test
/oh-package-lock.json5
\ No newline at end of file
...
...
sight_harmony/commons/wdRouter/oh-package-lock.json5
deleted
100644 → 0
View file @
2fe43fa
{
"meta"
:
{
"stableOrder"
:
true
},
"lockfileVersion"
:
3
,
"ATTENTION"
:
"THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."
,
"specifiers"
:
{
"wdBean@../../features/wdBean"
:
"wdBean@../../features/wdBean"
,
"wdKit@../wdKit"
:
"wdKit@../wdKit"
},
"packages"
:
{
"wdBean@../../features/wdBean"
:
{
"name"
:
"wdbean"
,
"resolved"
:
"../../features/wdBean"
,
"registryType"
:
"local"
},
"wdKit@../wdKit"
:
{
"name"
:
"wdkit"
,
"resolved"
:
"../wdKit"
,
"registryType"
:
"local"
}
}
}
\ No newline at end of file
sight_harmony/commons/wdShareBase/.gitignore
View file @
a4c79e9
...
...
@@ -3,4 +3,5 @@
/.preview
/build
/.cxx
/.test
\ No newline at end of file
/.test
/oh-package-lock.json5
\ No newline at end of file
...
...
sight_harmony/commons/wdWebComponent/.gitignore
View file @
a4c79e9
...
...
@@ -3,4 +3,5 @@
/.preview
/build
/.cxx
/.test
\ No newline at end of file
/.test
/oh-package-lock.json5
\ No newline at end of file
...
...
sight_harmony/commons/wdWebComponent/oh-package-lock.json5
deleted
100644 → 0
View file @
2fe43fa
{
"meta"
:
{
"stableOrder"
:
true
},
"lockfileVersion"
:
3
,
"ATTENTION"
:
"THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."
,
"specifiers"
:
{
"wdBean@../../features/wdBean"
:
"wdBean@../../features/wdBean"
,
"wdConstant@../wdConstant"
:
"wdConstant@../wdConstant"
,
"wdJsBridge@../wdJsBridge"
:
"wdJsBridge@../wdJsBridge"
,
"wdKit@../wdKit"
:
"wdKit@../wdKit"
,
"wdRouter@../wdRouter"
:
"wdRouter@../wdRouter"
},
"packages"
:
{
"wdBean@../../features/wdBean"
:
{
"name"
:
"wdbean"
,
"resolved"
:
"../../features/wdBean"
,
"registryType"
:
"local"
},
"wdConstant@../wdConstant"
:
{
"name"
:
"wdconstant"
,
"resolved"
:
"../wdConstant"
,
"registryType"
:
"local"
},
"wdJsBridge@../wdJsBridge"
:
{
"name"
:
"wdjsbridge"
,
"resolved"
:
"../wdJsBridge"
,
"registryType"
:
"local"
},
"wdKit@../wdKit"
:
{
"name"
:
"wdkit"
,
"resolved"
:
"../wdKit"
,
"registryType"
:
"local"
},
"wdRouter@../wdRouter"
:
{
"name"
:
"wdrouter"
,
"resolved"
:
"../wdRouter"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdKit"
:
"file:../wdKit"
,
"wdBean"
:
"file:../../features/wdBean"
}
}
}
}
\ No newline at end of file
sight_harmony/features/wdBean/.gitignore
View file @
a4c79e9
...
...
@@ -3,4 +3,5 @@
/.preview
/build
/.cxx
/.test
\ No newline at end of file
/.test
/oh-package-lock.json5
\ No newline at end of file
...
...
sight_harmony/features/wdComponent/.gitignore
View file @
a4c79e9
...
...
@@ -3,4 +3,5 @@
/.preview
/build
/.cxx
/.test
\ No newline at end of file
/.test
/oh-package-lock.json5
\ No newline at end of file
...
...
sight_harmony/features/wdComponent/oh-package-lock.json5
deleted
100644 → 0
View file @
2fe43fa
{
"meta"
:
{
"stableOrder"
:
true
},
"lockfileVersion"
:
3
,
"ATTENTION"
:
"THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."
,
"specifiers"
:
{
"@ohos/axios@^2.1.1"
:
"@ohos/axios@2.2.0"
,
"@ohos/lottie@2.0.0"
:
"@ohos/lottie@2.0.0"
,
"wdBean@../wdBean"
:
"wdBean@../wdBean"
,
"wdConstant@../../commons/wdConstant"
:
"wdConstant@../../commons/wdConstant"
,
"wdDetailPlayApi@../wdDetailPlayApi"
:
"wdDetailPlayApi@../wdDetailPlayApi"
,
"wdDetailPlayShortVideo@../wdDetailPlayShortVideo"
:
"wdDetailPlayShortVideo@../wdDetailPlayShortVideo"
,
"wdJsBridge@../../commons/wdJsBridge"
:
"wdJsBridge@../../commons/wdJsBridge"
,
"wdKit@../../commons/wdKit"
:
"wdKit@../../commons/wdKit"
,
"wdLogin@../wdLogin"
:
"wdLogin@../wdLogin"
,
"wdNetwork@../../commons/wdNetwork"
:
"wdNetwork@../../commons/wdNetwork"
,
"wdPlayer@../wdPlayer"
:
"wdPlayer@../wdPlayer"
,
"wdRouter@../../commons/wdRouter"
:
"wdRouter@../../commons/wdRouter"
,
"wdWebComponent@../../commons/wdWebComponent"
:
"wdWebComponent@../../commons/wdWebComponent"
},
"packages"
:
{
"@ohos/axios@2.2.0"
:
{
"name"
:
"@ohos/axios"
,
"integrity"
:
"sha512-v1QBWk6DfcN8wUW3D0ieFbHTR1taSI5cOgxp5l6B5cegXuNYhSc8ggKlAIXe6h/14LsfM+NW0ZGfSXcNEIM5yA=="
,
"resolved"
:
"https://repo.harmonyos.com/ohpm/@ohos/axios/-/axios-2.2.0.har"
,
"registryType"
:
"ohpm"
},
"@ohos/lottie@2.0.0"
:
{
"name"
:
"@ohos/lottie"
,
"integrity"
:
"sha512-jFEFYfuqGO323aMiwtzHmDGRJI0qTxjZD2Lzbn+LxRdoHSfu5OVu22I8gVm5ej019tCw3WOk547NHZ2GuWiNSg=="
,
"resolved"
:
"https://repo.harmonyos.com/ohpm/@ohos/lottie/-/lottie-2.0.0.har"
,
"registryType"
:
"ohpm"
},
"wdBean@../wdBean"
:
{
"name"
:
"wdbean"
,
"resolved"
:
"../wdBean"
,
"registryType"
:
"local"
},
"wdConstant@../../commons/wdConstant"
:
{
"name"
:
"wdconstant"
,
"resolved"
:
"../../commons/wdConstant"
,
"registryType"
:
"local"
},
"wdDetailPlayApi@../wdDetailPlayApi"
:
{
"name"
:
"wddetailplayapi"
,
"resolved"
:
"../wdDetailPlayApi"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdPlayer"
:
"file:../../features/wdPlayer"
,
"wdKit"
:
"file:../../commons/wdKit"
,
"wdBean"
:
"file:../../features/wdBean"
,
"wdRouter"
:
"file:../../commons/wdRouter"
,
"wdNetwork"
:
"file:../../commons/wdNetwork"
}
},
"wdDetailPlayShortVideo@../wdDetailPlayShortVideo"
:
{
"name"
:
"wddetailplayshortvideo"
,
"resolved"
:
"../wdDetailPlayShortVideo"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"@ohos/lottie"
:
"2.0.0"
,
"wdPlayer"
:
"file:../../features/wdPlayer"
,
"wdKit"
:
"file:../../commons/wdKit"
,
"wdBean"
:
"file:../../features/wdBean"
,
"wdRouter"
:
"file:../../commons/wdRouter"
,
"wdNetwork"
:
"file:../../commons/wdNetwork"
,
"wdDetailPlayApi"
:
"file:../../features/wdDetailPlayApi"
}
},
"wdJsBridge@../../commons/wdJsBridge"
:
{
"name"
:
"wdjsbridge"
,
"resolved"
:
"../../commons/wdJsBridge"
,
"registryType"
:
"local"
},
"wdKit@../../commons/wdKit"
:
{
"name"
:
"wdkit"
,
"resolved"
:
"../../commons/wdKit"
,
"registryType"
:
"local"
},
"wdLogin@../wdLogin"
:
{
"name"
:
"wdlogin"
,
"resolved"
:
"../wdLogin"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdConstant"
:
"file:../../commons/wdConstant"
,
"wdKit"
:
"file:../../commons/wdKit"
,
"wdWebComponent"
:
"file:../../commons/wdWebComponent"
,
"wdBean"
:
"file:../../features/wdBean"
,
"wdRouter"
:
"file:../../commons/wdRouter"
,
"wdNetwork"
:
"file:../../commons/wdNetwork"
}
},
"wdNetwork@../../commons/wdNetwork"
:
{
"name"
:
"wdnetwork"
,
"resolved"
:
"../../commons/wdNetwork"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdConstant"
:
"file:../wdConstant"
,
"wdKit"
:
"file:../wdKit"
,
"@ohos/axios"
:
"^2.1.1"
}
},
"wdPlayer@../wdPlayer"
:
{
"name"
:
"wdplayer"
,
"resolved"
:
"../wdPlayer"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdKit"
:
"file:../../commons/wdKit"
}
},
"wdRouter@../../commons/wdRouter"
:
{
"name"
:
"wdrouter"
,
"resolved"
:
"../../commons/wdRouter"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdKit"
:
"file:../wdKit"
,
"wdBean"
:
"file:../../features/wdBean"
}
},
"wdWebComponent@../../commons/wdWebComponent"
:
{
"name"
:
"wdwebcomponent"
,
"resolved"
:
"../../commons/wdWebComponent"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdConstant"
:
"file:../wdConstant"
,
"wdKit"
:
"file:../wdKit"
,
"wdJsBridge"
:
"file:../wdJsBridge"
,
"wdBean"
:
"file:../../features/wdBean"
,
"wdRouter"
:
"file:../wdRouter"
}
}
}
}
\ No newline at end of file
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/MorningEveningPaperComponent.ets
View file @
a4c79e9
...
...
@@ -91,14 +91,14 @@ export struct MorningEveningPaperComponent {
private AudioSuspension = new AudioSuspensionModel()
onCancel() {
Logger.info
(TAG, "cj2024 onCancel = ")
console.log
(TAG, "cj2024 onCancel = ")
}
/**
* 回调无用
**/
onConfirm() {
Logger.info
(TAG, "cj2024 onConfirm = ")
console.log
(TAG, "cj2024 onConfirm = ")
// if (this.playerController != undefined) {
//
// }
...
...
@@ -108,10 +108,10 @@ export struct MorningEveningPaperComponent {
// 续播判断
changeContinue() {
Logger.info
(TAG, "cj2024 changeContinue = 1")
console.log
(TAG, "cj2024 changeContinue = 1")
// if (this.nextContId) {
this.playerController.continue = () => {
Logger.info
(TAG, "cj2024 changeContinue = 2")
console.log
(TAG, "cj2024 changeContinue = 2")
this.playerController?.stop();
// this.playVM.playWithContentId(this.nextContId ?? '');
}
...
...
@@ -130,8 +130,8 @@ export struct MorningEveningPaperComponent {
const dailyPaperTopicPageId = await SPHelper.default.getSync('dailyPaperTopicPageId', "") as String
console.info(TAG, `aboutToAppear = ` + dailyPaperTopicPageId)
const currentTime = new Date().getTime()
Logger.info(TAG, "currentTime = " + currentTime)
Logger.info(TAG, `currentTime = ${currentTime}`)
console.log(TAG, "currentTime = " + currentTime)
console.log(TAG, `currentTime = ${currentTime}`)
try {
// let pageInfoBean = await MorningEveningViewModel.getMorningEveningPageInfo("" + this.dailyPaperTopicPageId)
...
...
@@ -145,13 +145,13 @@ export struct MorningEveningPaperComponent {
let dateTime = DateTimeUtils.parseDate(this.pageInfoBean?.topicInfo?.topicDate ?? '', DateTimeUtils.PATTERN_DATE_HYPHEN)
const dateShow = new Date(dateTime)
this.subTitle = `${dateShow.getFullYear()}年\n${(dateShow.getMonth() + 1)}月${dateShow.getDate()}日`
Logger.info(TAG, "pageInfoBean topicDate = " + this.pageInfoBean?.topicInfo?.topicDate)
Logger.info(TAG, "pageInfoBean title = " + this.pageInfoBean?.topicInfo?.title)
console.log(TAG, "pageInfoBean topicDate = " + this.pageInfoBean?.topicInfo?.topicDate)
console.log(TAG, "pageInfoBean title = " + this.pageInfoBean?.topicInfo?.title)
Logger.info(TAG, "pageInfoBean dateTime = " + dateTime)
Logger.info(TAG, "pageInfoBean subTitle = " + this.subTitle)
console.log(TAG, "pageInfoBean dateTime = " + dateTime)
console.log(TAG, "pageInfoBean subTitle = " + this.subTitle)
Logger.info
(TAG, "this.pageInfoBean = " + JSON.stringify(this.pageInfoBean))
console.log
(TAG, "this.pageInfoBean = " + JSON.stringify(this.pageInfoBean))
this.isHasTopView = this.pageInfoBean?.topicInfo?.frontLinkObject?true:false
let coverUrl = this.isHasTopView?this.pageInfoBean?.topicInfo?.frontLinkObject?.coverUrl as string :''
...
...
@@ -159,21 +159,22 @@ export struct MorningEveningPaperComponent {
let compInfoBean = await MorningEveningViewModel.getMorningEveningCompInfo(pageInfoBean?.id, pageInfoBean?.groups[0]?.id, currentTime + "", pageInfoBean?.topicInfo?.topicId)
// this.compInfoBean = compInfoBean
Logger.info
(TAG, "compInfoBean = " + JSON.stringify(compInfoBean))
console.log
(TAG, "compInfoBean = " + JSON.stringify(compInfoBean))
if (compInfoBean?.compList[0]) {
this.compListItem = compInfoBean?.compList[0]
Logger.debu
g(TAG, '获取评论数据' + `${this.compListItem.operDataList.length}`)
console.lo
g(TAG, '获取评论数据' + `${this.compListItem.operDataList.length}`)
if (this.compListItem.operDataList && this.compListItem.operDataList.length > 0) {
this.getAllContentInteractData(this.compListItem.operDataList)
}
Logger.debu
g(TAG, 'compInfoBean?.compList[0].audioDataList', JSON.stringify(compInfoBean?.compList[0].audioDataList))
console.lo
g(TAG, 'compInfoBean?.compList[0].audioDataList', JSON.stringify(compInfoBean?.compList[0].audioDataList))
if (compInfoBean?.compList[0].audioDataList) {
this.audioPlayUrl = compInfoBean?.compList[0].audioDataList[0].audioUrl
this.audioTitle = compInfoBean?.compList[0].audioDataList[0].title
console.log(TAG, 'this.audioPlayUrl', this.audioPlayUrl)
}
}
Logger.info
(TAG, "compInfoBean compStyle = " + compInfoBean.compList[0].compStyle)
console.log
(TAG, "compInfoBean compStyle = " + compInfoBean.compList[0].compStyle)
this.playerController.onTimeUpdate = (position, duration) => {
this.currentTime = DateFormatUtil.secondToTime(position);
this.totalTime = DateFormatUtil.secondToTime(duration);
...
...
@@ -203,10 +204,10 @@ export struct MorningEveningPaperComponent {
contentType: Number(item.objectType ?? '1')
})
})
Logger.debu
g(TAG, '获取评论数据' + `${JSON.stringify(params)}`)
console.lo
g(TAG, '获取评论数据' + `${JSON.stringify(params)}`)
this.commentList = await PeopleShipMainViewModel.getContentInteractInfo(params)
Logger.debu
g(TAG, '获取评论数据' + `${JSON.stringify(this.commentList)}`)
console.lo
g(TAG, '获取评论数据' + `${JSON.stringify(this.commentList)}`)
} catch (exception) {
...
...
@@ -216,7 +217,7 @@ export struct MorningEveningPaperComponent {
async setComponentBgColor(imageUrl: string) {
// 图片转换为PixelMap对象
// const pixelMap: image.PixelMap = await image2PixelMap(item.icon);
Logger.debu
g(TAG, "compInfoBean compStyle = " + imageUrl)
console.lo
g(TAG, "compInfoBean compStyle = " + imageUrl)
if (imageUrl.length > 0 && this.pageInfoBean.topicInfo.frontFlag === 1) {
const imageSource: image.ImageSource | undefined = await getPicture(imageUrl)
...
...
@@ -237,11 +238,11 @@ export struct MorningEveningPaperComponent {
const pixelMap: image.PixelMap = await imageNet2PixelMap(imageSource);
effectKit.createColorPicker(pixelMap, (err, colorPicker) => {
let color = colorPicker.getLargestProportionColor();
Logger.debu
g(TAG, "compInfoBean compStyle = " + color)
console.lo
g(TAG, "compInfoBean compStyle = " + color)
// color = ColorUtils.getMorningEveningPaperRgb({red:color.red,green:color.green,blue:color.blue,alpha:color.alpha})
// 将取色器选取的color示例转换为十六进制颜色代码
this.mixedBgColor = "#" + color.alpha.toString(16) + color.red.toString(16) + color.green.toString(16) + color.blue.toString(16);
Logger.debu
g(TAG, "compInfoBean compStyle = " + this.mixedBgColor)
console.lo
g(TAG, "compInfoBean compStyle = " + this.mixedBgColor)
});
}
...
...
@@ -267,11 +268,15 @@ export struct MorningEveningPaperComponent {
topicInfoView({ frontLinkObject: this.pageInfoBean?.topicInfo?.frontLinkObject })
}
if (this.audioPlayUrl !== ""){
ListItem() {
this.AudioBarView()
}
}
if (this.audioPlayUrl.length > 0){
ListItem() {
this.AudioBarView()
}
.margin({
top: this.isHasTopView ? 10 : 44+this.topSafeHeight
})
}
ListItem() {
...
...
@@ -282,7 +287,7 @@ export struct MorningEveningPaperComponent {
compListItem: this.compListItem,
})
.margin({
top: this.isHasTopView ? 10 : 44+this.topSafeHeight
top: this.isHasTopView
|| this.audioPlayUrl.length > 0
? 10 : 44+this.topSafeHeight
})
}
}
...
...
@@ -310,8 +315,11 @@ export struct MorningEveningPaperComponent {
@Builder
topPaperTitle(){
Column(){
PaperTitleComponent({topicInfo:this.pageInfoBean?.topicInfo}).margin({top:this.topSafeHeight})
}.height(44+this.topSafeHeight).backgroundColor(this.isHasTopView?(this.scrollOffset > 100?this.mixedBgColor:''):this.mixedBgColor)
PaperTitleComponent({topicInfo:this.pageInfoBean?.topicInfo})
.margin({top:this.topSafeHeight})
}
.height(44+this.topSafeHeight)
.backgroundColor(this.isHasTopView?(this.scrollOffset > 100?this.mixedBgColor:''):this.mixedBgColor)
}
@Builder
...
...
@@ -328,7 +336,7 @@ export struct MorningEveningPaperComponent {
.margin({ left: 10 })
.alignSelf(ItemAlign.Start)
Text(`${this.pageInfoBean.topicInfo
.topicPattern === 1 ? '早上好' : this.pageInfoBean.topicInfo
.topicPattern === 2 ? '中午好' : '晚上好'}, 请收听今日新闻播报`)
Text(`${this.pageInfoBean.topicInfo
?.topicPattern === 1 ? '早上好' : this.pageInfoBean.topicInfo?
.topicPattern === 2 ? '中午好' : '晚上好'}, 请收听今日新闻播报`)
.fontSize(14)
.margin({ left: 50 })
.fontColor(Color.Black)
...
...
@@ -350,27 +358,20 @@ export struct MorningEveningPaperComponent {
.margin({ left: 10 })// .alignSelf(ItemAlign.Center)
.objectFit(ImageFit.Contain)
.onClick(() => {
Logger.info
("TAG", "cj compInfoBean onClick1 = " + this.isAudioPlaying)
console.log
("TAG", "cj compInfoBean onClick1 = " + this.isAudioPlaying)
// dialog.open()
// this.playerController.firstPlay(this.audioPlayUrl, this.audioTitle)
this.AudioSuspension.setPlayerUrl(this.audioPlayUrl, this.audioTitle)
Logger.info(TAG, "this.audioPlayUrl = " + this.audioPlayUrl)
Logger.info("TAG", "cj compInfoBean onClick2 = " + this.isAudioPlaying)
console.log(TAG, "this.audioPlayUrl = " + this.audioPlayUrl)
console.log("TAG", "cj compInfoBean onClick2 = " + this.isAudioPlaying)
})
}
// .aspectRatio(7 / 4)
.height('100%')
// .justifyContent(FlexAlign.Center)
// .width(94)
// .width(140)
.width('20%')
// .height(56)
.onClick(() => {
// console.info(TAG, `onClick listen_right_bg`);
})
}
.margin({ left: 12, right: 12 })
// .width('100%')
.height(56)
.alignItems(VerticalAlign.Center)
.justifyContent(FlexAlign.SpaceBetween)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card10Component.ets
View file @
a4c79e9
...
...
@@ -66,7 +66,7 @@ export struct Card10Component {
.width(CommonConstants.FULL_WIDTH)
.fontSize($r('app.float.font_size_18'))
.fontWeight(600)
.maxLines(
2
)
.maxLines(
1
)
.textOverflow({ overflow: TextOverflow.Ellipsis })
.margin({ bottom: 19 })
.onClick((event: ClickEvent) => {
...
...
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card4Component.ets
View file @
a4c79e9
...
...
@@ -75,7 +75,8 @@ export struct Card4Component {
Span(this.contentDTO.newsTitle)
}
}
.fontSize($r('app.float.font_size_18'))
.fontSize(17.5)
.lineHeight(27)
.fontColor(this.clicked ? 0x848484 : $r('app.color.color_222222'))
.maxLines(3)
.textOverflow({ overflow: TextOverflow.Ellipsis })
...
...
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhSingleRow04.ets
View file @
a4c79e9
...
...
@@ -117,7 +117,7 @@ struct localCard {
.fontSize($r('app.float.font_size_18'))
.fontColor('#000000')
.align(Alignment.TopStart)
.maxLines(
1
)
.maxLines(
3
)
.textOverflow({ overflow: TextOverflow.Ellipsis })
.lineHeight(25)
.fontWeight(500)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/HomePageBottomFollowComponent.ets
View file @
a4c79e9
...
...
@@ -116,7 +116,6 @@ export struct HomePageBottomFollowComponent {
this.curPageNum = 1;
this.hasMore = true
this.isGetRequest = false
this.data_follow.clear()
if (!this.isLoading){
this.getNewPageData()
...
...
@@ -201,6 +200,7 @@ export struct HomePageBottomFollowComponent {
let object = new FollowListDetailRequestItem(-1, 20, this.curPageNum)
MinePageDatasModel.getMineFollowListData(object, getContext(this)).then((value) => {
if (this.curPageNum === 1) this.data_follow.clear()
if (!this.data_follow || value.list.length == 0) {
this.hasMore = false
} else {
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/OtherHomePageBottomFollowComponent.ets
View file @
a4c79e9
...
...
@@ -77,7 +77,6 @@ export struct OtherHomePageBottomFollowComponent{
this.curPageNum = 1;
this.hasMore = true
this.isGetRequest = false
this.data_follow.clear()
if (!this.isLoading){
this.getNewPageData()
...
...
@@ -164,6 +163,9 @@ export struct OtherHomePageBottomFollowComponent{
let object = new UserFollowListRequestItem(Number(this.curUserId),20,this.curPageNum,"1")
MinePageDatasModel.getOtherUserFollowListData(object,getContext(this)).then((value)=>{
if (this.curPageNum === 1) this.data_follow.clear()
if (!this.data_follow || value.list.length == 0){
this.hasMore = false
}else{
...
...
sight_harmony/features/wdComponent/src/main/ets/components/page/CardView.ets
View file @
a4c79e9
...
...
@@ -430,7 +430,7 @@ export struct PaperSingleColumn999CardView {
build() {
Column() {
Text(this.item?.newsTitle)
.fontColor('#222222')
.fontColor(
this.isRead ? 0x848484 :
'#222222')
.fontSize(16)
.fontWeight(FontWeight.Medium)
.alignSelf(ItemAlign.Start)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/page/EditUserInfoPage.ets
View file @
a4c79e9
...
...
@@ -57,7 +57,8 @@ struct EditUserInfoPage {
sexDialogController: CustomDialogController = new CustomDialogController({
builder: EditUserSexCustomDialog({
confirmCallback:(index)=>{
this.currentUserInfo.userExtend.sex = index;
///1男 2女
this.currentUserInfo.userExtend.sex = index == 0?2:1;
this.currentUserInfo.editDataType = WDEditDataModelType.WDEditDataModelType_sex
this.updateEditModel()
}
...
...
sight_harmony/features/wdComponent/src/main/ets/model/EditInfoModel.ets
View file @
a4c79e9
...
...
@@ -40,7 +40,7 @@ export class EditInfoModel{
//生日
birthday:string = ''
//性别
sex:number =
1
0
sex:number = 0
airec:number = 0
...
...
sight_harmony/features/wdComponent/src/main/ets/viewmodel/EditInfoViewModel.ets
View file @
a4c79e9
...
...
@@ -41,7 +41,7 @@ class EditInfoViewModel {
new EditListInfo('简介',item&&item.userExtend.introduction?item.userExtend.introduction:'待完善'),
new EditListInfo('地区',item&&item.userExtend.address?item.userExtend.address:'待完善'),
new EditListInfo('生日',item&&item.userExtend.birthday?item.userExtend.birthday:'待完善'),
new EditListInfo('性别',item?(item.userExtend.sex ===
1
0?'待完善':(item.userExtend.sex === 1?'男':'女')):'待完善'),]
new EditListInfo('性别',item?(item.userExtend.sex === 0?'待完善':(item.userExtend.sex === 1?'男':'女')):'待完善'),]
return this.editListData
}
...
...
sight_harmony/features/wdDetailPlayApi/.gitignore
View file @
a4c79e9
...
...
@@ -3,4 +3,5 @@
/.preview
/build
/.cxx
/.test
\ No newline at end of file
/.test
/oh-package-lock.json5
\ No newline at end of file
...
...
sight_harmony/features/wdDetailPlayApi/oh-package-lock.json5
deleted
100644 → 0
View file @
2fe43fa
{
"meta"
:
{
"stableOrder"
:
true
},
"lockfileVersion"
:
3
,
"ATTENTION"
:
"THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."
,
"specifiers"
:
{
"@ohos/axios@^2.1.1"
:
"@ohos/axios@2.2.0"
,
"wdBean@../wdBean"
:
"wdBean@../wdBean"
,
"wdConstant@../../commons/wdConstant"
:
"wdConstant@../../commons/wdConstant"
,
"wdKit@../../commons/wdKit"
:
"wdKit@../../commons/wdKit"
,
"wdNetwork@../../commons/wdNetwork"
:
"wdNetwork@../../commons/wdNetwork"
,
"wdPlayer@../wdPlayer"
:
"wdPlayer@../wdPlayer"
,
"wdRouter@../../commons/wdRouter"
:
"wdRouter@../../commons/wdRouter"
},
"packages"
:
{
"@ohos/axios@2.2.0"
:
{
"name"
:
"@ohos/axios"
,
"integrity"
:
"sha512-v1QBWk6DfcN8wUW3D0ieFbHTR1taSI5cOgxp5l6B5cegXuNYhSc8ggKlAIXe6h/14LsfM+NW0ZGfSXcNEIM5yA=="
,
"resolved"
:
"https://repo.harmonyos.com/ohpm/@ohos/axios/-/axios-2.2.0.har"
,
"registryType"
:
"ohpm"
},
"wdBean@../wdBean"
:
{
"name"
:
"wdbean"
,
"resolved"
:
"../wdBean"
,
"registryType"
:
"local"
},
"wdConstant@../../commons/wdConstant"
:
{
"name"
:
"wdconstant"
,
"resolved"
:
"../../commons/wdConstant"
,
"registryType"
:
"local"
},
"wdKit@../../commons/wdKit"
:
{
"name"
:
"wdkit"
,
"resolved"
:
"../../commons/wdKit"
,
"registryType"
:
"local"
},
"wdNetwork@../../commons/wdNetwork"
:
{
"name"
:
"wdnetwork"
,
"resolved"
:
"../../commons/wdNetwork"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdConstant"
:
"file:../wdConstant"
,
"wdKit"
:
"file:../wdKit"
,
"@ohos/axios"
:
"^2.1.1"
}
},
"wdPlayer@../wdPlayer"
:
{
"name"
:
"wdplayer"
,
"resolved"
:
"../wdPlayer"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdKit"
:
"file:../../commons/wdKit"
}
},
"wdRouter@../../commons/wdRouter"
:
{
"name"
:
"wdrouter"
,
"resolved"
:
"../../commons/wdRouter"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdKit"
:
"file:../wdKit"
,
"wdBean"
:
"file:../../features/wdBean"
}
}
}
}
\ No newline at end of file
sight_harmony/features/wdDetailPlayLive/.gitignore
View file @
a4c79e9
...
...
@@ -3,4 +3,5 @@
/.preview
/build
/.cxx
/.test
\ No newline at end of file
/.test
/oh-package-lock.json5
\ No newline at end of file
...
...
sight_harmony/features/wdDetailPlayLive/oh-package-lock.json5
deleted
100644 → 0
View file @
2fe43fa
{
"meta"
:
{
"stableOrder"
:
true
},
"lockfileVersion"
:
3
,
"ATTENTION"
:
"THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."
,
"specifiers"
:
{
"@ohos/axios@^2.1.1"
:
"@ohos/axios@2.2.0"
,
"@ohos/lottie@2.0.0"
:
"@ohos/lottie@2.0.0"
,
"wdBean@../wdBean"
:
"wdBean@../wdBean"
,
"wdComponent@../wdComponent"
:
"wdComponent@../wdComponent"
,
"wdConstant@../../commons/wdConstant"
:
"wdConstant@../../commons/wdConstant"
,
"wdDetailPlayApi@../wdDetailPlayApi"
:
"wdDetailPlayApi@../wdDetailPlayApi"
,
"wdDetailPlayShortVideo@../wdDetailPlayShortVideo"
:
"wdDetailPlayShortVideo@../wdDetailPlayShortVideo"
,
"wdJsBridge@../../commons/wdJsBridge"
:
"wdJsBridge@../../commons/wdJsBridge"
,
"wdKit@../../commons/wdKit"
:
"wdKit@../../commons/wdKit"
,
"wdLogin@../wdLogin"
:
"wdLogin@../wdLogin"
,
"wdNetwork@../../commons/wdNetwork"
:
"wdNetwork@../../commons/wdNetwork"
,
"wdPlayer@../wdPlayer"
:
"wdPlayer@../wdPlayer"
,
"wdRouter@../../commons/wdRouter"
:
"wdRouter@../../commons/wdRouter"
,
"wdWebComponent@../../commons/wdWebComponent"
:
"wdWebComponent@../../commons/wdWebComponent"
},
"packages"
:
{
"@ohos/axios@2.2.0"
:
{
"name"
:
"@ohos/axios"
,
"integrity"
:
"sha512-v1QBWk6DfcN8wUW3D0ieFbHTR1taSI5cOgxp5l6B5cegXuNYhSc8ggKlAIXe6h/14LsfM+NW0ZGfSXcNEIM5yA=="
,
"resolved"
:
"https://repo.harmonyos.com/ohpm/@ohos/axios/-/axios-2.2.0.har"
,
"registryType"
:
"ohpm"
},
"@ohos/lottie@2.0.0"
:
{
"name"
:
"@ohos/lottie"
,
"integrity"
:
"sha512-jFEFYfuqGO323aMiwtzHmDGRJI0qTxjZD2Lzbn+LxRdoHSfu5OVu22I8gVm5ej019tCw3WOk547NHZ2GuWiNSg=="
,
"resolved"
:
"https://repo.harmonyos.com/ohpm/@ohos/lottie/-/lottie-2.0.0.har"
,
"registryType"
:
"ohpm"
},
"wdBean@../wdBean"
:
{
"name"
:
"wdbean"
,
"resolved"
:
"../wdBean"
,
"registryType"
:
"local"
},
"wdComponent@../wdComponent"
:
{
"name"
:
"wdcomponent"
,
"resolved"
:
"../wdComponent"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"@ohos/lottie"
:
"2.0.0"
,
"wdConstant"
:
"file:../../commons/wdConstant"
,
"wdPlayer"
:
"file:../../features/wdPlayer"
,
"wdLogin"
:
"file:../../features/wdLogin"
,
"wdKit"
:
"file:../../commons/wdKit"
,
"wdWebComponent"
:
"file:../../commons/wdWebComponent"
,
"wdBean"
:
"file:../../features/wdBean"
,
"wdDetailPlayShortVideo"
:
"file:../../features/wdDetailPlayShortVideo"
,
"wdRouter"
:
"file:../../commons/wdRouter"
,
"wdNetwork"
:
"file:../../commons/wdNetwork"
,
"wdJsBridge"
:
"file:../../commons/wdJsBridge"
}
},
"wdConstant@../../commons/wdConstant"
:
{
"name"
:
"wdconstant"
,
"resolved"
:
"../../commons/wdConstant"
,
"registryType"
:
"local"
},
"wdDetailPlayApi@../wdDetailPlayApi"
:
{
"name"
:
"wddetailplayapi"
,
"resolved"
:
"../wdDetailPlayApi"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdPlayer"
:
"file:../../features/wdPlayer"
,
"wdKit"
:
"file:../../commons/wdKit"
,
"wdBean"
:
"file:../../features/wdBean"
,
"wdRouter"
:
"file:../../commons/wdRouter"
,
"wdNetwork"
:
"file:../../commons/wdNetwork"
}
},
"wdDetailPlayShortVideo@../wdDetailPlayShortVideo"
:
{
"name"
:
"wddetailplayshortvideo"
,
"resolved"
:
"../wdDetailPlayShortVideo"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"@ohos/lottie"
:
"2.0.0"
,
"wdPlayer"
:
"file:../../features/wdPlayer"
,
"wdKit"
:
"file:../../commons/wdKit"
,
"wdBean"
:
"file:../../features/wdBean"
,
"wdRouter"
:
"file:../../commons/wdRouter"
,
"wdNetwork"
:
"file:../../commons/wdNetwork"
,
"wdDetailPlayApi"
:
"file:../../features/wdDetailPlayApi"
}
},
"wdJsBridge@../../commons/wdJsBridge"
:
{
"name"
:
"wdjsbridge"
,
"resolved"
:
"../../commons/wdJsBridge"
,
"registryType"
:
"local"
},
"wdKit@../../commons/wdKit"
:
{
"name"
:
"wdkit"
,
"resolved"
:
"../../commons/wdKit"
,
"registryType"
:
"local"
},
"wdLogin@../wdLogin"
:
{
"name"
:
"wdlogin"
,
"resolved"
:
"../wdLogin"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdConstant"
:
"file:../../commons/wdConstant"
,
"wdKit"
:
"file:../../commons/wdKit"
,
"wdWebComponent"
:
"file:../../commons/wdWebComponent"
,
"wdBean"
:
"file:../../features/wdBean"
,
"wdRouter"
:
"file:../../commons/wdRouter"
,
"wdNetwork"
:
"file:../../commons/wdNetwork"
}
},
"wdNetwork@../../commons/wdNetwork"
:
{
"name"
:
"wdnetwork"
,
"resolved"
:
"../../commons/wdNetwork"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdConstant"
:
"file:../wdConstant"
,
"wdKit"
:
"file:../wdKit"
,
"@ohos/axios"
:
"^2.1.1"
}
},
"wdPlayer@../wdPlayer"
:
{
"name"
:
"wdplayer"
,
"resolved"
:
"../wdPlayer"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdKit"
:
"file:../../commons/wdKit"
}
},
"wdRouter@../../commons/wdRouter"
:
{
"name"
:
"wdrouter"
,
"resolved"
:
"../../commons/wdRouter"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdKit"
:
"file:../wdKit"
,
"wdBean"
:
"file:../../features/wdBean"
}
},
"wdWebComponent@../../commons/wdWebComponent"
:
{
"name"
:
"wdwebcomponent"
,
"resolved"
:
"../../commons/wdWebComponent"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdConstant"
:
"file:../wdConstant"
,
"wdKit"
:
"file:../wdKit"
,
"wdJsBridge"
:
"file:../wdJsBridge"
,
"wdBean"
:
"file:../../features/wdBean"
,
"wdRouter"
:
"file:../wdRouter"
}
}
}
}
\ No newline at end of file
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/vertical/PlayerComponent.ets
View file @
a4c79e9
...
...
@@ -54,6 +54,9 @@ export struct PlayerComponent {
this.playerController.onVideoSizePlayerComponentBack = (width: number, height: number) => {
if(width>height){
this.isLarge = false
if(width > 2){
this.liveStreamType = 0
}
}else{
this.isLarge = true
}
...
...
sight_harmony/features/wdDetailPlayShortVideo/.gitignore
View file @
a4c79e9
...
...
@@ -3,4 +3,5 @@
/.preview
/build
/.cxx
/.test
\ No newline at end of file
/.test
/oh-package-lock.json5
\ No newline at end of file
...
...
sight_harmony/features/wdDetailPlayShortVideo/oh-package-lock.json5
deleted
100644 → 0
View file @
2fe43fa
{
"meta"
:
{
"stableOrder"
:
true
},
"lockfileVersion"
:
3
,
"ATTENTION"
:
"THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."
,
"specifiers"
:
{
"@ohos/axios@^2.1.1"
:
"@ohos/axios@2.2.0"
,
"@ohos/lottie@2.0.0"
:
"@ohos/lottie@2.0.0"
,
"wdBean@../wdBean"
:
"wdBean@../wdBean"
,
"wdConstant@../../commons/wdConstant"
:
"wdConstant@../../commons/wdConstant"
,
"wdDetailPlayApi@../wdDetailPlayApi"
:
"wdDetailPlayApi@../wdDetailPlayApi"
,
"wdKit@../../commons/wdKit"
:
"wdKit@../../commons/wdKit"
,
"wdNetwork@../../commons/wdNetwork"
:
"wdNetwork@../../commons/wdNetwork"
,
"wdPlayer@../wdPlayer"
:
"wdPlayer@../wdPlayer"
,
"wdRouter@../../commons/wdRouter"
:
"wdRouter@../../commons/wdRouter"
},
"packages"
:
{
"@ohos/axios@2.2.0"
:
{
"name"
:
"@ohos/axios"
,
"integrity"
:
"sha512-v1QBWk6DfcN8wUW3D0ieFbHTR1taSI5cOgxp5l6B5cegXuNYhSc8ggKlAIXe6h/14LsfM+NW0ZGfSXcNEIM5yA=="
,
"resolved"
:
"https://repo.harmonyos.com/ohpm/@ohos/axios/-/axios-2.2.0.har"
,
"registryType"
:
"ohpm"
},
"@ohos/lottie@2.0.0"
:
{
"name"
:
"@ohos/lottie"
,
"integrity"
:
"sha512-jFEFYfuqGO323aMiwtzHmDGRJI0qTxjZD2Lzbn+LxRdoHSfu5OVu22I8gVm5ej019tCw3WOk547NHZ2GuWiNSg=="
,
"resolved"
:
"https://repo.harmonyos.com/ohpm/@ohos/lottie/-/lottie-2.0.0.har"
,
"registryType"
:
"ohpm"
},
"wdBean@../wdBean"
:
{
"name"
:
"wdbean"
,
"resolved"
:
"../wdBean"
,
"registryType"
:
"local"
},
"wdConstant@../../commons/wdConstant"
:
{
"name"
:
"wdconstant"
,
"resolved"
:
"../../commons/wdConstant"
,
"registryType"
:
"local"
},
"wdDetailPlayApi@../wdDetailPlayApi"
:
{
"name"
:
"wddetailplayapi"
,
"resolved"
:
"../wdDetailPlayApi"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdPlayer"
:
"file:../../features/wdPlayer"
,
"wdKit"
:
"file:../../commons/wdKit"
,
"wdBean"
:
"file:../../features/wdBean"
,
"wdRouter"
:
"file:../../commons/wdRouter"
,
"wdNetwork"
:
"file:../../commons/wdNetwork"
}
},
"wdKit@../../commons/wdKit"
:
{
"name"
:
"wdkit"
,
"resolved"
:
"../../commons/wdKit"
,
"registryType"
:
"local"
},
"wdNetwork@../../commons/wdNetwork"
:
{
"name"
:
"wdnetwork"
,
"resolved"
:
"../../commons/wdNetwork"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdConstant"
:
"file:../wdConstant"
,
"wdKit"
:
"file:../wdKit"
,
"@ohos/axios"
:
"^2.1.1"
}
},
"wdPlayer@../wdPlayer"
:
{
"name"
:
"wdplayer"
,
"resolved"
:
"../wdPlayer"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdKit"
:
"file:../../commons/wdKit"
}
},
"wdRouter@../../commons/wdRouter"
:
{
"name"
:
"wdrouter"
,
"resolved"
:
"../../commons/wdRouter"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdKit"
:
"file:../wdKit"
,
"wdBean"
:
"file:../../features/wdBean"
}
}
}
}
\ No newline at end of file
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailPlayShortVideoPage.ets
View file @
a4c79e9
...
...
@@ -58,6 +58,7 @@ export struct DetailPlayShortVideoPage {
PageName: string = ''
@State toastText: ResourceStr = "正在使用非WI-FI网络,播放将产生流量费用"
@Consume onlyWifiLoadVideo: boolean
@Consume toastTextVisible: boolean
/**
* 页面显示重查用户关注、点赞等信息
...
...
@@ -169,9 +170,12 @@ export struct DetailPlayShortVideoPage {
}
async aboutToAppear() {
if(await onlyWifiLoadVideo()){
this.onlyWifiLoadVideo = true
if (!this.onlyWifiLoadVideo) {
this.onlyWifiLoadVideo = await onlyWifiLoadVideo()
this.toastTextVisible = this.onlyWifiLoadVideo ? false : true
console.log(TAG, 'this.onlyWifiLoadVideo', this.onlyWifiLoadVideo)
}
this.videoLandScape = this.contentDetailData.videoInfo[0]?.videoLandScape
this.ratio = (this.contentDetailData.videoInfo[0]?.resolutionWidth || 16) /
(this.contentDetailData.videoInfo[0]?.resolutionHeight || 9)
...
...
@@ -280,7 +284,7 @@ export struct DetailPlayShortVideoPage {
playerController: this.playerController
})
if (
!this.onlyWifiLoadVideo
) {
if (
this.toastTextVisible
) {
this.buildContent()
}
...
...
@@ -357,6 +361,7 @@ export struct DetailPlayShortVideoPage {
})
.onClick(() => {
this.onlyWifiLoadVideo = true
this.toastTextVisible = false
this.playerController?.play()
this.imageVisible = false
})
...
...
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailVideoListPage.ets
View file @
a4c79e9
...
...
@@ -40,6 +40,7 @@ export struct DetailVideoListPage {
pageShowTime:number = 0;
pageHideTime:number = 0;
@Provide onlyWifiLoadVideo: boolean = false
@Provide toastTextVisible: boolean = false
async aboutToAppear(): Promise<void> {
// 注册监听网络连接
...
...
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/VideoChannelDetail.ets
View file @
a4c79e9
...
...
@@ -65,6 +65,7 @@ export struct VideoChannelDetail {
pageShowTime: number = 0;
pageHideTime: number = 0;
@Provide onlyWifiLoadVideo: boolean = false
@Provide toastTextVisible: boolean = false
autoRefreshChange() {
if (this.topNavIndex === 0 && !this.isRequesting) {
...
...
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/view/PlayerBottomView.ets
View file @
a4c79e9
...
...
@@ -13,7 +13,6 @@ export struct PlayerBottomView {
@Consume isDragging?: boolean
@Consume contentDetailData: ContentDetailDTO
@Consume displayDirection: DisplayDirection
@Consume onlyWifiLoadVideo: boolean
aboutToAppear(): void {
...
...
sight_harmony/features/wdDetailPlayVod/.gitignore
View file @
a4c79e9
...
...
@@ -3,4 +3,5 @@
/.preview
/build
/.cxx
/.test
\ No newline at end of file
/.test
/oh-package-lock.json5
\ No newline at end of file
...
...
sight_harmony/features/wdDetailPlayVod/oh-package-lock.json5
deleted
100644 → 0
View file @
2fe43fa
{
"meta"
:
{
"stableOrder"
:
true
},
"lockfileVersion"
:
3
,
"ATTENTION"
:
"THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."
,
"specifiers"
:
{
"@ohos/axios@^2.1.1"
:
"@ohos/axios@2.2.0"
,
"wdBean@../wdBean"
:
"wdBean@../wdBean"
,
"wdConstant@../../commons/wdConstant"
:
"wdConstant@../../commons/wdConstant"
,
"wdDetailPlayApi@../wdDetailPlayApi"
:
"wdDetailPlayApi@../wdDetailPlayApi"
,
"wdKit@../../commons/wdKit"
:
"wdKit@../../commons/wdKit"
,
"wdNetwork@../../commons/wdNetwork"
:
"wdNetwork@../../commons/wdNetwork"
,
"wdPlayer@../wdPlayer"
:
"wdPlayer@../wdPlayer"
,
"wdRouter@../../commons/wdRouter"
:
"wdRouter@../../commons/wdRouter"
},
"packages"
:
{
"@ohos/axios@2.2.0"
:
{
"name"
:
"@ohos/axios"
,
"integrity"
:
"sha512-v1QBWk6DfcN8wUW3D0ieFbHTR1taSI5cOgxp5l6B5cegXuNYhSc8ggKlAIXe6h/14LsfM+NW0ZGfSXcNEIM5yA=="
,
"resolved"
:
"https://repo.harmonyos.com/ohpm/@ohos/axios/-/axios-2.2.0.har"
,
"registryType"
:
"ohpm"
},
"wdBean@../wdBean"
:
{
"name"
:
"wdbean"
,
"resolved"
:
"../wdBean"
,
"registryType"
:
"local"
},
"wdConstant@../../commons/wdConstant"
:
{
"name"
:
"wdconstant"
,
"resolved"
:
"../../commons/wdConstant"
,
"registryType"
:
"local"
},
"wdDetailPlayApi@../wdDetailPlayApi"
:
{
"name"
:
"wddetailplayapi"
,
"resolved"
:
"../wdDetailPlayApi"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdPlayer"
:
"file:../../features/wdPlayer"
,
"wdKit"
:
"file:../../commons/wdKit"
,
"wdBean"
:
"file:../../features/wdBean"
,
"wdRouter"
:
"file:../../commons/wdRouter"
,
"wdNetwork"
:
"file:../../commons/wdNetwork"
}
},
"wdKit@../../commons/wdKit"
:
{
"name"
:
"wdkit"
,
"resolved"
:
"../../commons/wdKit"
,
"registryType"
:
"local"
},
"wdNetwork@../../commons/wdNetwork"
:
{
"name"
:
"wdnetwork"
,
"resolved"
:
"../../commons/wdNetwork"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdConstant"
:
"file:../wdConstant"
,
"wdKit"
:
"file:../wdKit"
,
"@ohos/axios"
:
"^2.1.1"
}
},
"wdPlayer@../wdPlayer"
:
{
"name"
:
"wdplayer"
,
"resolved"
:
"../wdPlayer"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdKit"
:
"file:../../commons/wdKit"
}
},
"wdRouter@../../commons/wdRouter"
:
{
"name"
:
"wdrouter"
,
"resolved"
:
"../../commons/wdRouter"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdKit"
:
"file:../wdKit"
,
"wdBean"
:
"file:../../features/wdBean"
}
}
}
}
\ No newline at end of file
sight_harmony/features/wdHwAbility/.gitignore
View file @
a4c79e9
...
...
@@ -3,4 +3,5 @@
/.preview
/build
/.cxx
/.test
\ No newline at end of file
/.test
/oh-package-lock.json5
\ No newline at end of file
...
...
sight_harmony/features/wdHwAbility/oh-package-lock.json5
deleted
100644 → 0
View file @
2fe43fa
{
"meta"
:
{
"stableOrder"
:
true
},
"lockfileVersion"
:
3
,
"ATTENTION"
:
"THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."
,
"specifiers"
:
{
"@ohos/axios@^2.1.1"
:
"@ohos/axios@2.2.0"
,
"wdBean@../wdBean"
:
"wdBean@../wdBean"
,
"wdConstant@../../commons/wdConstant"
:
"wdConstant@../../commons/wdConstant"
,
"wdJsBridge@../../commons/wdJsBridge"
:
"wdJsBridge@../../commons/wdJsBridge"
,
"wdKit@../../commons/wdKit"
:
"wdKit@../../commons/wdKit"
,
"wdLogin@../wdLogin"
:
"wdLogin@../wdLogin"
,
"wdNetwork@../../commons/wdNetwork"
:
"wdNetwork@../../commons/wdNetwork"
,
"wdRouter@../../commons/wdRouter"
:
"wdRouter@../../commons/wdRouter"
,
"wdWebComponent@../../commons/wdWebComponent"
:
"wdWebComponent@../../commons/wdWebComponent"
},
"packages"
:
{
"@ohos/axios@2.2.0"
:
{
"name"
:
"@ohos/axios"
,
"integrity"
:
"sha512-v1QBWk6DfcN8wUW3D0ieFbHTR1taSI5cOgxp5l6B5cegXuNYhSc8ggKlAIXe6h/14LsfM+NW0ZGfSXcNEIM5yA=="
,
"resolved"
:
"https://repo.harmonyos.com/ohpm/@ohos/axios/-/axios-2.2.0.har"
,
"registryType"
:
"ohpm"
},
"wdBean@../wdBean"
:
{
"name"
:
"wdbean"
,
"resolved"
:
"../wdBean"
,
"registryType"
:
"local"
},
"wdConstant@../../commons/wdConstant"
:
{
"name"
:
"wdconstant"
,
"resolved"
:
"../../commons/wdConstant"
,
"registryType"
:
"local"
},
"wdJsBridge@../../commons/wdJsBridge"
:
{
"name"
:
"wdjsbridge"
,
"resolved"
:
"../../commons/wdJsBridge"
,
"registryType"
:
"local"
},
"wdKit@../../commons/wdKit"
:
{
"name"
:
"wdkit"
,
"resolved"
:
"../../commons/wdKit"
,
"registryType"
:
"local"
},
"wdLogin@../wdLogin"
:
{
"name"
:
"wdlogin"
,
"resolved"
:
"../wdLogin"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdConstant"
:
"file:../../commons/wdConstant"
,
"wdKit"
:
"file:../../commons/wdKit"
,
"wdWebComponent"
:
"file:../../commons/wdWebComponent"
,
"wdBean"
:
"file:../../features/wdBean"
,
"wdRouter"
:
"file:../../commons/wdRouter"
,
"wdNetwork"
:
"file:../../commons/wdNetwork"
}
},
"wdNetwork@../../commons/wdNetwork"
:
{
"name"
:
"wdnetwork"
,
"resolved"
:
"../../commons/wdNetwork"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdConstant"
:
"file:../wdConstant"
,
"wdKit"
:
"file:../wdKit"
,
"@ohos/axios"
:
"^2.1.1"
}
},
"wdRouter@../../commons/wdRouter"
:
{
"name"
:
"wdrouter"
,
"resolved"
:
"../../commons/wdRouter"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdKit"
:
"file:../wdKit"
,
"wdBean"
:
"file:../../features/wdBean"
,
"wdNetwork"
:
"file:../../commons/wdNetwork"
,
"wdConstant"
:
"file:../../commons/wdConstant"
}
},
"wdWebComponent@../../commons/wdWebComponent"
:
{
"name"
:
"wdwebcomponent"
,
"resolved"
:
"../../commons/wdWebComponent"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdConstant"
:
"file:../wdConstant"
,
"wdKit"
:
"file:../wdKit"
,
"wdJsBridge"
:
"file:../wdJsBridge"
,
"wdBean"
:
"file:../../features/wdBean"
,
"wdRouter"
:
"file:../wdRouter"
}
}
}
}
\ No newline at end of file
sight_harmony/features/wdLayout/.gitignore
View file @
a4c79e9
...
...
@@ -3,4 +3,5 @@
/.preview
/build
/.cxx
/.test
\ No newline at end of file
/.test
/oh-package-lock.json5
\ No newline at end of file
...
...
sight_harmony/features/wdLogin/.gitignore
View file @
a4c79e9
...
...
@@ -3,4 +3,5 @@
/.preview
/build
/.cxx
/.test
\ No newline at end of file
/.test
/oh-package-lock.json5
\ No newline at end of file
...
...
sight_harmony/features/wdLogin/oh-package-lock.json5
deleted
100644 → 0
View file @
2fe43fa
{
"meta"
:
{
"stableOrder"
:
true
},
"lockfileVersion"
:
3
,
"ATTENTION"
:
"THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."
,
"specifiers"
:
{
"@ohos/axios@^2.1.1"
:
"@ohos/axios@2.2.0"
,
"wdBean@../wdBean"
:
"wdBean@../wdBean"
,
"wdConstant@../../commons/wdConstant"
:
"wdConstant@../../commons/wdConstant"
,
"wdJsBridge@../../commons/wdJsBridge"
:
"wdJsBridge@../../commons/wdJsBridge"
,
"wdKit@../../commons/wdKit"
:
"wdKit@../../commons/wdKit"
,
"wdNetwork@../../commons/wdNetwork"
:
"wdNetwork@../../commons/wdNetwork"
,
"wdRouter@../../commons/wdRouter"
:
"wdRouter@../../commons/wdRouter"
,
"wdWebComponent@../../commons/wdWebComponent"
:
"wdWebComponent@../../commons/wdWebComponent"
},
"packages"
:
{
"@ohos/axios@2.2.0"
:
{
"name"
:
"@ohos/axios"
,
"integrity"
:
"sha512-v1QBWk6DfcN8wUW3D0ieFbHTR1taSI5cOgxp5l6B5cegXuNYhSc8ggKlAIXe6h/14LsfM+NW0ZGfSXcNEIM5yA=="
,
"resolved"
:
"https://repo.harmonyos.com/ohpm/@ohos/axios/-/axios-2.2.0.har"
,
"registryType"
:
"ohpm"
},
"wdBean@../wdBean"
:
{
"name"
:
"wdbean"
,
"resolved"
:
"../wdBean"
,
"registryType"
:
"local"
},
"wdConstant@../../commons/wdConstant"
:
{
"name"
:
"wdconstant"
,
"resolved"
:
"../../commons/wdConstant"
,
"registryType"
:
"local"
},
"wdJsBridge@../../commons/wdJsBridge"
:
{
"name"
:
"wdjsbridge"
,
"resolved"
:
"../../commons/wdJsBridge"
,
"registryType"
:
"local"
},
"wdKit@../../commons/wdKit"
:
{
"name"
:
"wdkit"
,
"resolved"
:
"../../commons/wdKit"
,
"registryType"
:
"local"
},
"wdNetwork@../../commons/wdNetwork"
:
{
"name"
:
"wdnetwork"
,
"resolved"
:
"../../commons/wdNetwork"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdConstant"
:
"file:../wdConstant"
,
"wdKit"
:
"file:../wdKit"
,
"@ohos/axios"
:
"^2.1.1"
}
},
"wdRouter@../../commons/wdRouter"
:
{
"name"
:
"wdrouter"
,
"resolved"
:
"../../commons/wdRouter"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdKit"
:
"file:../wdKit"
,
"wdBean"
:
"file:../../features/wdBean"
}
},
"wdWebComponent@../../commons/wdWebComponent"
:
{
"name"
:
"wdwebcomponent"
,
"resolved"
:
"../../commons/wdWebComponent"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdConstant"
:
"file:../wdConstant"
,
"wdKit"
:
"file:../wdKit"
,
"wdJsBridge"
:
"file:../wdJsBridge"
,
"wdBean"
:
"file:../../features/wdBean"
,
"wdRouter"
:
"file:../wdRouter"
}
}
}
}
\ No newline at end of file
sight_harmony/features/wdLogin/src/main/ets/pages/login/LoginPage.ets
View file @
a4c79e9
...
...
@@ -8,6 +8,9 @@ import { WDRouterRule } from 'wdRouter/src/main/ets/router/WDRouterRule';
import { Params } from '../../../../../../../commons/wdRouter/oh_modules/wdBean/src/main/ets/bean/content/Params'
import {InterestsHobbiesModel} from '../../../../../../../products/phone/src/main/ets/pages/viewModel/InterestsHobbiesModel'
import { TrackingPageBrowse, TrackConstants, TrackingButton, ParamType, Tracking } from 'wdTracking/Index'
import { window } from '@kit.ArkUI';
import { BusinessError } from '@kit.BasicServicesKit';
import { common } from '@kit.AbilityKit'
@Extend(Row)
function otherStyle() {
...
...
@@ -45,6 +48,7 @@ struct LoginPage {
lastTime: number = 0
@State codeStateSuccess:boolean=false
@State toastText:string = ""
@State isPrivacyMode: boolean = true;
dialogToast: CustomDialogController = new CustomDialogController({
builder: CustomToast({
msg: this.toastText,
...
...
@@ -84,6 +88,29 @@ struct LoginPage {
this.currentChanged()
}
disableScreenCapture(){
let windowClass: window.Window|undefined = undefined;
let context = getContext(this) as common.UIAbilityContext
try {
window.getLastWindow(context, (err, data) => {
if (err.code) {
return
}
windowClass = data
windowClass.setWindowPrivacyMode(this.isPrivacyMode, (err: BusinessError) => {
const errCode: number = err.code;
if (errCode) {
console.error('Failed to set the window to privacy mode. Cause:' + JSON.stringify(err));
return;
}
console.info('Succeeded in setting the window to privacy mode.');
});
})
} catch (exception) {
console.error('Failed to set the window to privacy mode. Cause:' + JSON.stringify(exception));
}
}
aboutToDisappear(): void {
this.breakpointSystem.unregister();
}
...
...
@@ -91,6 +118,8 @@ struct LoginPage {
onPageShow() {
Logger.debug(TAG, "onPageShow:" + this.isCodeSend + " ")
this.pageShowTime = DateTimeUtils.getTimeStamp()
this.isPrivacyMode = true
this.disableScreenCapture()
}
onPageHide(): void {
...
...
@@ -103,6 +132,8 @@ struct LoginPage {
}else{
TrackingPageBrowse.trackCommonPageExposureEnd(TrackConstants.PageName.Login_Page,TrackConstants.PageName.Login_Page,duration)
}
this.isPrivacyMode = false
this.disableScreenCapture()
}
build() {
...
...
@@ -637,3 +668,5 @@ function trackTypeClick(typeValue: number,pageId: string){
Tracking.event("login_type_click", params)
}
...
...
sight_harmony/features/wdLogin/src/main/module.json5
View file @
a4c79e9
...
...
@@ -8,6 +8,11 @@
//
"tablet"
,
//
"2in1"
],
"requestPermissions"
:
[
{
"name"
:
"ohos.permission.PRIVACY_WINDOW"
}
],
"compressNativeLibs"
:
true
,
"deliveryWithInstall"
:
true
,
"pages"
:
"$profile:main_pages"
...
...
sight_harmony/features/wdPlayer/.gitignore
View file @
a4c79e9
...
...
@@ -3,4 +3,5 @@
/.preview
/build
/.cxx
/.test
\ No newline at end of file
/.test
/oh-package-lock.json5
\ No newline at end of file
...
...
sight_harmony/features/wdPlayer/oh-package-lock.json5
deleted
100644 → 0
View file @
2fe43fa
{
"meta"
:
{
"stableOrder"
:
true
},
"lockfileVersion"
:
3
,
"ATTENTION"
:
"THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."
,
"specifiers"
:
{
"@umeng/analytics@^1.0.19"
:
"@umeng/analytics@1.0.19"
,
"@umeng/common@^1.0.21"
:
"@umeng/common@1.0.21"
,
"libcommon.so@../../oh_modules/.ohpm/@umeng+common@1.0.21/oh_modules/@umeng/common/src/main/cpp/types/libcommon"
:
"libcommon.so@../../oh_modules/.ohpm/@umeng+common@1.0.21/oh_modules/@umeng/common/src/main/cpp/types/libcommon"
,
"wdKit@../../commons/wdKit"
:
"wdKit@../../commons/wdKit"
},
"packages"
:
{
"@umeng/analytics@1.0.19"
:
{
"name"
:
"@umeng/analytics"
,
"integrity"
:
"sha512-0m9z5l8to+POjDl9UkCQC8s4P+e2E1OILwUglC7ME4QwqfH44e59GLJtQdwF0h6kwpsy3YBft4SoWK8MYbuP7g=="
,
"resolved"
:
"https://ohpm.openharmony.cn/ohpm/@umeng/analytics/-/analytics-1.0.19.har"
,
"registryType"
:
"ohpm"
},
"@umeng/common@1.0.21"
:
{
"name"
:
"@umeng/common"
,
"integrity"
:
"sha512-EbXsd4OoRisTQf5egNY/+z1D2bvrYw9VwC2xu3EJA9TiDPSbnaJZ5+yltA/Se6yZ4oCcFvq6e5/AAfPuumunbw=="
,
"resolved"
:
"https://ohpm.openharmony.cn/ohpm/@umeng/common/-/common-1.0.21.har"
,
"registryType"
:
"ohpm"
,
"dependencies"
:
{
"libcommon.so"
:
"./src/main/cpp/types/libcommon"
}
},
"libcommon.so@../../oh_modules/.ohpm/@umeng+common@1.0.21/oh_modules/@umeng/common/src/main/cpp/types/libcommon"
:
{
"name"
:
"libcommon.so"
,
"resolved"
:
"../../oh_modules/.ohpm/@umeng+common@1.0.21/oh_modules/@umeng/common/src/main/cpp/types/libcommon"
,
"registryType"
:
"local"
},
"wdKit@../../commons/wdKit"
:
{
"name"
:
"wdkit"
,
"resolved"
:
"../../commons/wdKit"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"@umeng/common"
:
"^1.0.21"
,
"@umeng/analytics"
:
"^1.0.19"
}
}
}
}
\ No newline at end of file
sight_harmony/features/wdPlayer/src/main/ets/controller/WDAliPlayerController.ets
View file @
a4c79e9
...
...
@@ -187,6 +187,10 @@ export class WDAliPlayerController {
if(this.onVideoSizePlayerTitleComponentBack){
this.onVideoSizePlayerTitleComponentBack(this.avPlayer?.getVideoWidth(), this.avPlayer?.getVideoHeight());
}
if(this.onVideoSizePlayerComponentBack){
this.onVideoSizePlayerComponentBack(this.avPlayer?.getVideoWidth(), this.avPlayer?.getVideoHeight());
}
if (this.onCanplay) {
this.onCanplay()
} else {
...
...
sight_harmony/features/wdShare/.gitignore
View file @
a4c79e9
...
...
@@ -3,4 +3,5 @@
/.preview
/build
/.cxx
/.test
\ No newline at end of file
/.test
/oh-package-lock.json5
\ No newline at end of file
...
...
sight_harmony/features/wdShare/oh-package-lock.json5
deleted
100644 → 0
View file @
2fe43fa
{
"meta"
:
{
"stableOrder"
:
true
},
"lockfileVersion"
:
3
,
"ATTENTION"
:
"THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."
,
"specifiers"
:
{
"@ohos/axios@^2.1.1"
:
"@ohos/axios@2.2.0"
,
"@umeng/analytics@^1.0.19"
:
"@umeng/analytics@1.0.19"
,
"@umeng/common@^1.0.21"
:
"@umeng/common@1.0.21"
,
"libcommon.so@../../oh_modules/.ohpm/@umeng+common@1.0.21/oh_modules/@umeng/common/src/main/cpp/types/libcommon"
:
"libcommon.so@../../oh_modules/.ohpm/@umeng+common@1.0.21/oh_modules/@umeng/common/src/main/cpp/types/libcommon"
,
"wdBean@../wdBean"
:
"wdBean@../wdBean"
,
"wdConstant@../../commons/wdConstant"
:
"wdConstant@../../commons/wdConstant"
,
"wdKit@../../commons/wdKit"
:
"wdKit@../../commons/wdKit"
,
"wdNetwork@../../commons/wdNetwork"
:
"wdNetwork@../../commons/wdNetwork"
,
"wdRouter@../../commons/wdRouter"
:
"wdRouter@../../commons/wdRouter"
,
"wdShareBase@../../commons/wdShareBase"
:
"wdShareBase@../../commons/wdShareBase"
},
"packages"
:
{
"@ohos/axios@2.2.0"
:
{
"name"
:
"@ohos/axios"
,
"integrity"
:
"sha512-v1QBWk6DfcN8wUW3D0ieFbHTR1taSI5cOgxp5l6B5cegXuNYhSc8ggKlAIXe6h/14LsfM+NW0ZGfSXcNEIM5yA=="
,
"resolved"
:
"https://repo.harmonyos.com/ohpm/@ohos/axios/-/axios-2.2.0.har"
,
"registryType"
:
"ohpm"
},
"@umeng/analytics@1.0.19"
:
{
"name"
:
"@umeng/analytics"
,
"integrity"
:
"sha512-0m9z5l8to+POjDl9UkCQC8s4P+e2E1OILwUglC7ME4QwqfH44e59GLJtQdwF0h6kwpsy3YBft4SoWK8MYbuP7g=="
,
"resolved"
:
"https://ohpm.openharmony.cn/ohpm/@umeng/analytics/-/analytics-1.0.19.har"
,
"registryType"
:
"ohpm"
},
"@umeng/common@1.0.21"
:
{
"name"
:
"@umeng/common"
,
"integrity"
:
"sha512-EbXsd4OoRisTQf5egNY/+z1D2bvrYw9VwC2xu3EJA9TiDPSbnaJZ5+yltA/Se6yZ4oCcFvq6e5/AAfPuumunbw=="
,
"resolved"
:
"https://ohpm.openharmony.cn/ohpm/@umeng/common/-/common-1.0.21.har"
,
"registryType"
:
"ohpm"
,
"dependencies"
:
{
"libcommon.so"
:
"./src/main/cpp/types/libcommon"
}
},
"libcommon.so@../../oh_modules/.ohpm/@umeng+common@1.0.21/oh_modules/@umeng/common/src/main/cpp/types/libcommon"
:
{
"name"
:
"libcommon.so"
,
"resolved"
:
"../../oh_modules/.ohpm/@umeng+common@1.0.21/oh_modules/@umeng/common/src/main/cpp/types/libcommon"
,
"registryType"
:
"local"
},
"wdBean@../wdBean"
:
{
"name"
:
"wdbean"
,
"resolved"
:
"../wdBean"
,
"registryType"
:
"local"
},
"wdConstant@../../commons/wdConstant"
:
{
"name"
:
"wdconstant"
,
"resolved"
:
"../../commons/wdConstant"
,
"registryType"
:
"local"
},
"wdKit@../../commons/wdKit"
:
{
"name"
:
"wdkit"
,
"resolved"
:
"../../commons/wdKit"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"@umeng/common"
:
"^1.0.21"
,
"@umeng/analytics"
:
"^1.0.19"
}
},
"wdNetwork@../../commons/wdNetwork"
:
{
"name"
:
"wdnetwork"
,
"resolved"
:
"../../commons/wdNetwork"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdConstant"
:
"file:../wdConstant"
,
"wdKit"
:
"file:../wdKit"
,
"@ohos/axios"
:
"^2.1.1"
}
},
"wdRouter@../../commons/wdRouter"
:
{
"name"
:
"wdrouter"
,
"resolved"
:
"../../commons/wdRouter"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdKit"
:
"file:../wdKit"
,
"wdBean"
:
"file:../../features/wdBean"
,
"wdNetwork"
:
"file:../../commons/wdNetwork"
,
"wdConstant"
:
"file:../../commons/wdConstant"
}
},
"wdShareBase@../../commons/wdShareBase"
:
{
"name"
:
"wdsharebase"
,
"resolved"
:
"../../commons/wdShareBase"
,
"registryType"
:
"local"
,
"packageType"
:
"InterfaceHar"
}
}
}
\ No newline at end of file
sight_harmony/features/wdTracking/.gitignore
View file @
a4c79e9
...
...
@@ -3,4 +3,5 @@
/.preview
/build
/.cxx
/.test
\ No newline at end of file
/.test
/oh-package-lock.json5
\ No newline at end of file
...
...
sight_harmony/features/wdTracking/oh-package-lock.json5
deleted
100644 → 0
View file @
2fe43fa
{
"meta"
:
{
"stableOrder"
:
true
},
"lockfileVersion"
:
3
,
"ATTENTION"
:
"THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."
,
"specifiers"
:
{
"@ohos/axios@^2.1.1"
:
"@ohos/axios@2.2.0"
,
"@sensorsdata/analytics@^0.0.2"
:
"@sensorsdata/analytics@0.0.2"
,
"@umeng/analytics@^1.0.19"
:
"@umeng/analytics@1.0.19"
,
"@umeng/common@^1.0.21"
:
"@umeng/common@1.0.21"
,
"libcommon.so@../../oh_modules/.ohpm/@umeng+common@1.0.21/oh_modules/@umeng/common/src/main/cpp/types/libcommon"
:
"libcommon.so@../../oh_modules/.ohpm/@umeng+common@1.0.21/oh_modules/@umeng/common/src/main/cpp/types/libcommon"
,
"wdBean@../wdBean"
:
"wdBean@../wdBean"
,
"wdConstant@../../commons/wdConstant"
:
"wdConstant@../../commons/wdConstant"
,
"wdKit@../../commons/wdKit"
:
"wdKit@../../commons/wdKit"
,
"wdNetwork@../../commons/wdNetwork"
:
"wdNetwork@../../commons/wdNetwork"
},
"packages"
:
{
"@ohos/axios@2.2.0"
:
{
"name"
:
"@ohos/axios"
,
"integrity"
:
"sha512-v1QBWk6DfcN8wUW3D0ieFbHTR1taSI5cOgxp5l6B5cegXuNYhSc8ggKlAIXe6h/14LsfM+NW0ZGfSXcNEIM5yA=="
,
"resolved"
:
"https://repo.harmonyos.com/ohpm/@ohos/axios/-/axios-2.2.0.har"
,
"registryType"
:
"ohpm"
},
"@sensorsdata/analytics@0.0.2"
:
{
"name"
:
"@sensorsdata/analytics"
,
"integrity"
:
"sha512-SQCEmOw8ftGJmKtPl/1qUczZqu/yoQ4F2QHpK2Mayk+XctvNDSHn4QWengHj/pg36AopvuVfa0i6KR9c4KiIuQ=="
,
"resolved"
:
"https://ohpm.openharmony.cn/ohpm/@sensorsdata/analytics/-/analytics-0.0.2.har"
,
"registryType"
:
"ohpm"
},
"@umeng/analytics@1.0.19"
:
{
"name"
:
"@umeng/analytics"
,
"integrity"
:
"sha512-0m9z5l8to+POjDl9UkCQC8s4P+e2E1OILwUglC7ME4QwqfH44e59GLJtQdwF0h6kwpsy3YBft4SoWK8MYbuP7g=="
,
"resolved"
:
"https://ohpm.openharmony.cn/ohpm/@umeng/analytics/-/analytics-1.0.19.har"
,
"registryType"
:
"ohpm"
},
"@umeng/common@1.0.21"
:
{
"name"
:
"@umeng/common"
,
"integrity"
:
"sha512-EbXsd4OoRisTQf5egNY/+z1D2bvrYw9VwC2xu3EJA9TiDPSbnaJZ5+yltA/Se6yZ4oCcFvq6e5/AAfPuumunbw=="
,
"resolved"
:
"https://ohpm.openharmony.cn/ohpm/@umeng/common/-/common-1.0.21.har"
,
"registryType"
:
"ohpm"
,
"dependencies"
:
{
"libcommon.so"
:
"./src/main/cpp/types/libcommon"
}
},
"libcommon.so@../../oh_modules/.ohpm/@umeng+common@1.0.21/oh_modules/@umeng/common/src/main/cpp/types/libcommon"
:
{
"name"
:
"libcommon.so"
,
"resolved"
:
"../../oh_modules/.ohpm/@umeng+common@1.0.21/oh_modules/@umeng/common/src/main/cpp/types/libcommon"
,
"registryType"
:
"local"
},
"wdBean@../wdBean"
:
{
"name"
:
"wdbean"
,
"resolved"
:
"../wdBean"
,
"registryType"
:
"local"
},
"wdConstant@../../commons/wdConstant"
:
{
"name"
:
"wdconstant"
,
"resolved"
:
"../../commons/wdConstant"
,
"registryType"
:
"local"
},
"wdKit@../../commons/wdKit"
:
{
"name"
:
"wdkit"
,
"resolved"
:
"../../commons/wdKit"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"@umeng/common"
:
"^1.0.21"
,
"@umeng/analytics"
:
"^1.0.19"
}
},
"wdNetwork@../../commons/wdNetwork"
:
{
"name"
:
"wdnetwork"
,
"resolved"
:
"../../commons/wdNetwork"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdConstant"
:
"file:../wdConstant"
,
"wdKit"
:
"file:../wdKit"
,
"@ohos/axios"
:
"^2.1.1"
}
}
}
}
\ No newline at end of file
sight_harmony/oh-package-lock.json5
deleted
100644 → 0
View file @
2fe43fa
{
"meta"
:
{
"stableOrder"
:
true
},
"lockfileVersion"
:
3
,
"ATTENTION"
:
"THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."
,
"specifiers"
:
{
"@mpaas/compress@^1.0.0"
:
"@mpaas/compress@1.0.0"
,
"@mpaas/fake-island@^1.0.0"
:
"@mpaas/fake-island@1.0.0"
,
"@mpaas/framework@0.0.2"
:
"@mpaas/framework@0.0.2"
,
"@mpaas/framework@^0.0.2"
:
"@mpaas/framework@0.0.2"
,
"@mpaas/fs-ext@^1.0.0"
:
"@mpaas/fs-ext@1.0.0"
,
"@mpaas/lang@^1.0.0"
:
"@mpaas/lang@1.0.0"
,
"@mpaas/path@^1.0.0"
:
"@mpaas/path@1.0.0"
,
"@mpaas/rpc@^0.0.2"
:
"@mpaas/rpc@0.0.2"
,
"@mpaas/shuckle@^1.0.0"
:
"@mpaas/shuckle@1.0.0"
,
"@mpaas/trace-log@^0.0.2"
:
"@mpaas/trace-log@0.0.2"
,
"@mpaas/transport_build@^0.0.2"
:
"@mpaas/transport_build@0.0.2"
,
"@mpaas/udid@0.0.2"
:
"@mpaas/udid@0.0.2"
,
"@mpaas/upgrade@0.0.2"
:
"@mpaas/upgrade@0.0.2"
,
"@ohos/crypto-js@^2.0.2"
:
"@ohos/crypto-js@2.0.3"
,
"@ohos/hypium@1.0.16"
:
"@ohos/hypium@1.0.16"
,
"@ohos/pulltorefresh@^2.0.5"
:
"@ohos/pulltorefresh@2.0.5"
,
"dayjs@^1.11.7"
:
"dayjs@1.11.7"
,
"libcompress.so@oh_modules/.ohpm/@mpaas+compress@1.0.0/oh_modules/@mpaas/compress/src/main/cpp/types/libcompress"
:
"libcompress.so@oh_modules/.ohpm/@mpaas+compress@1.0.0/oh_modules/@mpaas/compress/src/main/cpp/types/libcompress"
,
"libframework_api.so@oh_modules/.ohpm/@mpaas+framework@0.0.2/oh_modules/@mpaas/framework/src/main/cpp/types/libframework_api"
:
"libframework_api.so@oh_modules/.ohpm/@mpaas+framework@0.0.2/oh_modules/@mpaas/framework/src/main/cpp/types/libframework_api"
,
"libgwcli.so@oh_modules/.ohpm/@mpaas+fake-island@1.0.0/oh_modules/@mpaas/fake-island/types"
:
"libgwcli.so@oh_modules/.ohpm/@mpaas+fake-island@1.0.0/oh_modules/@mpaas/fake-island/types"
,
"liblang.so@oh_modules/.ohpm/@mpaas+lang@1.0.0/oh_modules/@mpaas/lang/types"
:
"liblang.so@oh_modules/.ohpm/@mpaas+lang@1.0.0/oh_modules/@mpaas/lang/types"
,
"libmplog.so@oh_modules/.ohpm/@mpaas+trace-log@0.0.2/oh_modules/@mpaas/trace-log/types"
:
"libmplog.so@oh_modules/.ohpm/@mpaas+trace-log@0.0.2/oh_modules/@mpaas/trace-log/types"
,
"libshuckle.so@oh_modules/.ohpm/@mpaas+shuckle@1.0.0/oh_modules/@mpaas/shuckle/src/main/cpp/types/libshuckle"
:
"libshuckle.so@oh_modules/.ohpm/@mpaas+shuckle@1.0.0/oh_modules/@mpaas/shuckle/src/main/cpp/types/libshuckle"
,
"long@^5.2.1"
:
"long@5.2.1"
,
"pako@^2.1.0"
:
"pako@2.1.0"
},
"packages"
:
{
"@mpaas/compress@1.0.0"
:
{
"name"
:
"@mpaas/compress"
,
"integrity"
:
"sha512-x/aUK/zKjoUnd4kYGNAI1JMcEY2n4N6Rn+F+zcIYs8WLgobY6kFXTphLJ/NlSgjJklc2009U8zeStvtjon1zaQ=="
,
"resolved"
:
"https://mpaas-ohpm.oss-cn-hangzhou.aliyuncs.com/dist/@mpaas/compress/compress-1.0.0.har"
,
"registryType"
:
"ohpm"
,
"dependencies"
:
{
"libcompress.so"
:
"file:./src/main/cpp/types/libcompress"
}
},
"@mpaas/fake-island@1.0.0"
:
{
"name"
:
"@mpaas/fake-island"
,
"integrity"
:
"sha512-cEt0Zsie0rwfvnYmqA+6pa93L6NLkJKwiqJCoE9Z2hFjhk9s4RSz7F0AUuj4WobrpdElXuipoCNFPXWLb4ZBlA=="
,
"resolved"
:
"https://mpaas-ohpm.oss-cn-hangzhou.aliyuncs.com/dist/@mpaas/fake-island/fake-island-1.0.0.har"
,
"registryType"
:
"ohpm"
,
"dependencies"
:
{
"libgwcli.so"
:
"file:./types"
}
},
"@mpaas/framework@0.0.2"
:
{
"name"
:
"@mpaas/framework"
,
"integrity"
:
"sha512-nNpCI44zvg4fN9GNM5m31LdqfLrej9mMo/+BMny8QK+/Jvc3m/itE45bWZZ7unfflq40H2t4YOgtNAIW3m8MaA=="
,
"resolved"
:
"https://mpaas-ohpm.oss-cn-hangzhou.aliyuncs.com/dist/@mpaas/framework/framework-0.0.2.har"
,
"registryType"
:
"ohpm"
,
"dependencies"
:
{
"libframework_api.so"
:
"file:./src/main/cpp/types/libframework_api"
,
"@mpaas/udid"
:
"0.0.2"
}
},
"@mpaas/fs-ext@1.0.0"
:
{
"name"
:
"@mpaas/fs-ext"
,
"integrity"
:
"sha512-4TGUdrkmVSFktp1NcRdcs4uLYH6GvN1aTkMD2z8TJLztz5Hq5fMrvuznsmwTsSaRxGfGuyHPER8enMQo8wcfKA=="
,
"resolved"
:
"https://mpaas-ohpm.oss-cn-hangzhou.aliyuncs.com/dist/@mpaas/fs-ext/fs-ext-1.0.0.har"
,
"registryType"
:
"ohpm"
,
"dependencies"
:
{
"@mpaas/path"
:
"^1.0.0"
}
},
"@mpaas/lang@1.0.0"
:
{
"name"
:
"@mpaas/lang"
,
"integrity"
:
"sha512-dcQ2QPrvwZgBhoGUjAbSFfkReDkwqEPMTzy/Xk05dhIB9VVznpLPahlQLVi0Am1FPATCT8J7DDrko9aJLOba+w=="
,
"resolved"
:
"https://mpaas-ohpm.oss-cn-hangzhou.aliyuncs.com/dist/@mpaas/lang/lang-1.0.0.har"
,
"registryType"
:
"ohpm"
,
"dependencies"
:
{
"liblang.so"
:
"file:./types"
}
},
"@mpaas/path@1.0.0"
:
{
"name"
:
"@mpaas/path"
,
"integrity"
:
"sha512-TNjPaVOiq4DTiNFexSeI9isxeJ1H4q9Vieh3Bnv66o0U/e7rwV1qjEUtMvihX3MlsX0VKVkT0Xyf/wm18l4XYw=="
,
"resolved"
:
"https://mpaas-ohpm.oss-cn-hangzhou.aliyuncs.com/dist/@mpaas/path/path-1.0.0.har"
,
"registryType"
:
"ohpm"
},
"@mpaas/rpc@0.0.2"
:
{
"name"
:
"@mpaas/rpc"
,
"integrity"
:
"sha512-BeiXDHW77CpZF5x4nuQc+3A7MfhFfU3+Wc73gac/ZRhIPuAAzfLmlzm5alqdm6oiWAw17ERQydUSG4SQSCHQ4g=="
,
"resolved"
:
"https://mpaas-ohpm.oss-cn-hangzhou.aliyuncs.com/dist/@mpaas/rpc/rpc-0.0.2.har"
,
"registryType"
:
"ohpm"
,
"dependencies"
:
{
"@mpaas/transport_build"
:
"^0.0.2"
,
"@mpaas/lang"
:
"^1.0.0"
,
"@mpaas/framework"
:
"^0.0.2"
}
},
"@mpaas/shuckle@1.0.0"
:
{
"name"
:
"@mpaas/shuckle"
,
"integrity"
:
"sha512-B0MhrNzwG9pIoPxYVBldyenQWtWfTv5twd/0Ur1LbMpbp09AQ5wrZjKgDoeUtsIls9gzL9T8ngDZU6mRn8SYgQ=="
,
"resolved"
:
"https://mpaas-ohpm.oss-cn-hangzhou.aliyuncs.com/dist/@mpaas/shuckle/shuckle-1.0.0.har"
,
"registryType"
:
"ohpm"
,
"dependencies"
:
{
"libshuckle.so"
:
"file:./src/main/cpp/types/libshuckle"
,
"@mpaas/framework"
:
"^0.0.2"
}
},
"@mpaas/trace-log@0.0.2"
:
{
"name"
:
"@mpaas/trace-log"
,
"integrity"
:
"sha512-Llsdnx3L2tJJDg9vwJY01YsK4IOSmCo4SmAIW9yFHTzylrzFSWdFefRhJbNlkQQilXdYygEkBByXVvT1wFSmAg=="
,
"resolved"
:
"https://mpaas-ohpm.oss-cn-hangzhou.aliyuncs.com/dist/@mpaas/trace-log/trace-log-0.0.2.har"
,
"registryType"
:
"ohpm"
,
"dependencies"
:
{
"@mpaas/lang"
:
"^1.0.0"
,
"@mpaas/fs-ext"
:
"^1.0.0"
,
"@mpaas/path"
:
"^1.0.0"
,
"@mpaas/framework"
:
"0.0.2"
,
"libmplog.so"
:
"file:types"
,
"dayjs"
:
"^1.11.7"
}
},
"@mpaas/transport_build@0.0.2"
:
{
"name"
:
"@mpaas/transport_build"
,
"integrity"
:
"sha512-utz9C/cKIWbYrNiTBjk1gUhPH4/M73G64hWlrYKDpkfJHJmdYcQmmYV3v7Jit1z7Qg7hhu0aOaZzShqdQdC7rg=="
,
"resolved"
:
"https://mpaas-ohpm.oss-cn-hangzhou.aliyuncs.com/dist/@mpaas/transport_build/transport_build-0.0.2.har"
,
"registryType"
:
"ohpm"
,
"dependencies"
:
{
"@ohos/crypto-js"
:
"^2.0.2"
,
"dayjs"
:
"^1.11.7"
,
"pako"
:
"^2.1.0"
,
"@mpaas/fake-island"
:
"^1.0.0"
,
"long"
:
"^5.2.1"
,
"@mpaas/framework"
:
"^0.0.2"
,
"@mpaas/shuckle"
:
"^1.0.0"
,
"@mpaas/compress"
:
"^1.0.0"
}
},
"@mpaas/udid@0.0.2"
:
{
"name"
:
"@mpaas/udid"
,
"integrity"
:
"sha512-YFLSgBOrIjjmcFm4Cn2BB1tspHKHdB4qipVl4MUhHHDfiUYbLIVuv7x5xB9xPuPf0gKO8rx0yqUuzkaNDoNsAw=="
,
"resolved"
:
"https://mpaas-ohpm.oss-cn-hangzhou.aliyuncs.com/dist/@mpaas/udid/udid-0.0.2.har"
,
"registryType"
:
"ohpm"
},
"@mpaas/upgrade@0.0.2"
:
{
"name"
:
"@mpaas/upgrade"
,
"integrity"
:
"sha512-VWamULIoJPA6nxUADwwNXd3uOspZeYAsRh05pApVilIdum5ktIMXIFl71jAKsChs3jtrhs9y5EShoZD4MZrGsA=="
,
"resolved"
:
"https://mpaas-ohpm.oss-cn-hangzhou.aliyuncs.com/dist/@mpaas/upgrade/upgrade-0.0.2.har"
,
"registryType"
:
"ohpm"
,
"dependencies"
:
{
"@mpaas/framework"
:
"^0.0.2"
,
"@mpaas/rpc"
:
"^0.0.2"
,
"@mpaas/lang"
:
"^1.0.0"
,
"@mpaas/transport_build"
:
"^0.0.2"
,
"@mpaas/trace-log"
:
"^0.0.2"
}
},
"@ohos/crypto-js@2.0.3"
:
{
"name"
:
"@ohos/crypto-js"
,
"integrity"
:
"sha512-LuHaR1kD5PxnOXnuR1fWvPwGtbed9Q/QGzk6JOh8y5Wdzvi8brPesODZiaWf9scOVRHsbTPOtZw91vWB35p1vQ=="
,
"resolved"
:
"https://ohpm.openharmony.cn/ohpm/@ohos/crypto-js/-/crypto-js-2.0.3.har"
,
"registryType"
:
"ohpm"
},
"@ohos/hypium@1.0.16"
:
{
"name"
:
"@ohos/hypium"
,
"integrity"
:
"sha512-PC3jpwKERg68V+4dmKU+SLjNps9i5JcQH57rQriaTsh62NBgVZs4SceMmNOtrIOyldbEJ5mXSwoZwiG/nkRmTw=="
,
"resolved"
:
"https://repo.harmonyos.com/ohpm/@ohos/hypium/-/hypium-1.0.16.har"
,
"registryType"
:
"ohpm"
},
"@ohos/pulltorefresh@2.0.5"
:
{
"name"
:
"@ohos/pulltorefresh"
,
"integrity"
:
"sha512-mgBvJ6Ga70LmAoPKTOEPLFJluHUEAaBt2+7wF7R6223Vw6UEbZrof1MyvVOLEHk8Uc64ASIMW/TNQ8AHraTV5A=="
,
"resolved"
:
"https://repo.harmonyos.com/ohpm/@ohos/pulltorefresh/-/pulltorefresh-2.0.5.har"
,
"registryType"
:
"ohpm"
},
"dayjs@1.11.7"
:
{
"name"
:
"dayjs"
,
"integrity"
:
"sha512-+Yw9U6YO5TQohxLcIkrXBeY73WP3ejHWVvx8XCk3gxvQDCTEmS48ZrSZCKciI7Bhl/uCMyxYtE9UqRILmFphkQ=="
,
"resolved"
:
"https://ohpm.openharmony.cn/ohpm/dayjs/-/dayjs-1.11.7.tgz"
,
"shasum"
:
"4b296922642f70999544d1144a2c25730fce63e2"
,
"registryType"
:
"ohpm"
},
"libcompress.so@oh_modules/.ohpm/@mpaas+compress@1.0.0/oh_modules/@mpaas/compress/src/main/cpp/types/libcompress"
:
{
"name"
:
"libcompress.so"
,
"resolved"
:
"oh_modules/.ohpm/@mpaas+compress@1.0.0/oh_modules/@mpaas/compress/src/main/cpp/types/libcompress"
,
"registryType"
:
"local"
},
"libframework_api.so@oh_modules/.ohpm/@mpaas+framework@0.0.2/oh_modules/@mpaas/framework/src/main/cpp/types/libframework_api"
:
{
"name"
:
"libframework_api.so"
,
"resolved"
:
"oh_modules/.ohpm/@mpaas+framework@0.0.2/oh_modules/@mpaas/framework/src/main/cpp/types/libframework_api"
,
"registryType"
:
"local"
},
"libgwcli.so@oh_modules/.ohpm/@mpaas+fake-island@1.0.0/oh_modules/@mpaas/fake-island/types"
:
{
"name"
:
"libgwcli.so"
,
"resolved"
:
"oh_modules/.ohpm/@mpaas+fake-island@1.0.0/oh_modules/@mpaas/fake-island/types"
,
"registryType"
:
"local"
},
"liblang.so@oh_modules/.ohpm/@mpaas+lang@1.0.0/oh_modules/@mpaas/lang/types"
:
{
"name"
:
"liblang.so"
,
"resolved"
:
"oh_modules/.ohpm/@mpaas+lang@1.0.0/oh_modules/@mpaas/lang/types"
,
"registryType"
:
"local"
},
"libmplog.so@oh_modules/.ohpm/@mpaas+trace-log@0.0.2/oh_modules/@mpaas/trace-log/types"
:
{
"name"
:
"libmplog.so"
,
"resolved"
:
"oh_modules/.ohpm/@mpaas+trace-log@0.0.2/oh_modules/@mpaas/trace-log/types"
,
"registryType"
:
"local"
},
"libshuckle.so@oh_modules/.ohpm/@mpaas+shuckle@1.0.0/oh_modules/@mpaas/shuckle/src/main/cpp/types/libshuckle"
:
{
"name"
:
"lishuckle.so"
,
"resolved"
:
"oh_modules/.ohpm/@mpaas+shuckle@1.0.0/oh_modules/@mpaas/shuckle/src/main/cpp/types/libshuckle"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"@mpaas/framework"
:
"^0.0.2"
}
},
"long@5.2.1"
:
{
"name"
:
"long"
,
"integrity"
:
"sha512-GKSNGeNAtw8IryjjkhZxuKB3JzlcLTwjtiQCHKvqQet81I93kXslhDQruGI/QsddO83mcDToBVy7GqGS/zYf/A=="
,
"resolved"
:
"https://ohpm.openharmony.cn/ohpm/long/-/long-5.2.1.tgz"
,
"shasum"
:
"e27595d0083d103d2fa2c20c7699f8e0c92b897f"
,
"registryType"
:
"ohpm"
},
"pako@2.1.0"
:
{
"name"
:
"pako"
,
"integrity"
:
"sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug=="
,
"resolved"
:
"https://ohpm.openharmony.cn/ohpm/pako/-/pako-2.1.0.tgz"
,
"shasum"
:
"266cc37f98c7d883545d11335c00fbd4062c9a86"
,
"registryType"
:
"ohpm"
}
}
}
\ No newline at end of file
sight_harmony/products/phone/oh-package-lock.json5
deleted
100644 → 0
View file @
2fe43fa
{
"meta"
:
{
"stableOrder"
:
true
},
"lockfileVersion"
:
3
,
"ATTENTION"
:
"THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."
,
"specifiers"
:
{
"@ohos/axios@^2.1.1"
:
"@ohos/axios@2.2.0"
,
"@ohos/lottie@2.0.0"
:
"@ohos/lottie@2.0.0"
,
"wdBean@../../features/wdBean"
:
"wdBean@../../features/wdBean"
,
"wdComponent@../../features/wdComponent"
:
"wdComponent@../../features/wdComponent"
,
"wdConstant@../../commons/wdConstant"
:
"wdConstant@../../commons/wdConstant"
,
"wdDetailPlayApi@../../features/wdDetailPlayApi"
:
"wdDetailPlayApi@../../features/wdDetailPlayApi"
,
"wdDetailPlayShortVideo@../../features/wdDetailPlayShortVideo"
:
"wdDetailPlayShortVideo@../../features/wdDetailPlayShortVideo"
,
"wdHwAbility@../../features/wdHwAbility"
:
"wdHwAbility@../../features/wdHwAbility"
,
"wdJsBridge@../../commons/wdJsBridge"
:
"wdJsBridge@../../commons/wdJsBridge"
,
"wdKit@../../commons/wdKit"
:
"wdKit@../../commons/wdKit"
,
"wdLogin@../../features/wdLogin"
:
"wdLogin@../../features/wdLogin"
,
"wdNetwork@../../commons/wdNetwork"
:
"wdNetwork@../../commons/wdNetwork"
,
"wdPlayer@../../features/wdPlayer"
:
"wdPlayer@../../features/wdPlayer"
,
"wdRouter@../../commons/wdRouter"
:
"wdRouter@../../commons/wdRouter"
,
"wdWebComponent@../../commons/wdWebComponent"
:
"wdWebComponent@../../commons/wdWebComponent"
},
"packages"
:
{
"@ohos/axios@2.2.0"
:
{
"name"
:
"@ohos/axios"
,
"integrity"
:
"sha512-v1QBWk6DfcN8wUW3D0ieFbHTR1taSI5cOgxp5l6B5cegXuNYhSc8ggKlAIXe6h/14LsfM+NW0ZGfSXcNEIM5yA=="
,
"resolved"
:
"https://repo.harmonyos.com/ohpm/@ohos/axios/-/axios-2.2.0.har"
,
"registryType"
:
"ohpm"
},
"@ohos/lottie@2.0.0"
:
{
"name"
:
"@ohos/lottie"
,
"integrity"
:
"sha512-jFEFYfuqGO323aMiwtzHmDGRJI0qTxjZD2Lzbn+LxRdoHSfu5OVu22I8gVm5ej019tCw3WOk547NHZ2GuWiNSg=="
,
"resolved"
:
"https://repo.harmonyos.com/ohpm/@ohos/lottie/-/lottie-2.0.0.har"
,
"registryType"
:
"ohpm"
},
"wdBean@../../features/wdBean"
:
{
"name"
:
"wdbean"
,
"resolved"
:
"../../features/wdBean"
,
"registryType"
:
"local"
},
"wdComponent@../../features/wdComponent"
:
{
"name"
:
"wdcomponent"
,
"resolved"
:
"../../features/wdComponent"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"@ohos/lottie"
:
"2.0.0"
,
"wdConstant"
:
"file:../../commons/wdConstant"
,
"wdPlayer"
:
"file:../../features/wdPlayer"
,
"wdLogin"
:
"file:../../features/wdLogin"
,
"wdKit"
:
"file:../../commons/wdKit"
,
"wdWebComponent"
:
"file:../../commons/wdWebComponent"
,
"wdBean"
:
"file:../../features/wdBean"
,
"wdDetailPlayShortVideo"
:
"file:../../features/wdDetailPlayShortVideo"
,
"wdRouter"
:
"file:../../commons/wdRouter"
,
"wdNetwork"
:
"file:../../commons/wdNetwork"
,
"wdJsBridge"
:
"file:../../commons/wdJsBridge"
}
},
"wdConstant@../../commons/wdConstant"
:
{
"name"
:
"wdconstant"
,
"resolved"
:
"../../commons/wdConstant"
,
"registryType"
:
"local"
},
"wdDetailPlayApi@../../features/wdDetailPlayApi"
:
{
"name"
:
"wddetailplayapi"
,
"resolved"
:
"../../features/wdDetailPlayApi"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdPlayer"
:
"file:../../features/wdPlayer"
,
"wdKit"
:
"file:../../commons/wdKit"
,
"wdBean"
:
"file:../../features/wdBean"
,
"wdRouter"
:
"file:../../commons/wdRouter"
,
"wdNetwork"
:
"file:../../commons/wdNetwork"
}
},
"wdDetailPlayShortVideo@../../features/wdDetailPlayShortVideo"
:
{
"name"
:
"wddetailplayshortvideo"
,
"resolved"
:
"../../features/wdDetailPlayShortVideo"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"@ohos/lottie"
:
"2.0.0"
,
"wdPlayer"
:
"file:../../features/wdPlayer"
,
"wdKit"
:
"file:../../commons/wdKit"
,
"wdBean"
:
"file:../../features/wdBean"
,
"wdRouter"
:
"file:../../commons/wdRouter"
,
"wdNetwork"
:
"file:../../commons/wdNetwork"
,
"wdDetailPlayApi"
:
"file:../../features/wdDetailPlayApi"
}
},
"wdHwAbility@../../features/wdHwAbility"
:
{
"name"
:
"wdhwability"
,
"resolved"
:
"../../features/wdHwAbility"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdConstant"
:
"file:../../commons/wdConstant"
,
"wdLogin"
:
"file:../../features/wdLogin"
,
"wdKit"
:
"file:../../commons/wdKit"
,
"wdBean"
:
"file:../../features/wdBean"
,
"wdNetwork"
:
"file:../../commons/wdNetwork"
},
"packageType"
:
"InterfaceHar"
},
"wdJsBridge@../../commons/wdJsBridge"
:
{
"name"
:
"wdjsbridge"
,
"resolved"
:
"../../commons/wdJsBridge"
,
"registryType"
:
"local"
},
"wdKit@../../commons/wdKit"
:
{
"name"
:
"wdkit"
,
"resolved"
:
"../../commons/wdKit"
,
"registryType"
:
"local"
},
"wdLogin@../../features/wdLogin"
:
{
"name"
:
"wdlogin"
,
"resolved"
:
"../../features/wdLogin"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdConstant"
:
"file:../../commons/wdConstant"
,
"wdKit"
:
"file:../../commons/wdKit"
,
"wdWebComponent"
:
"file:../../commons/wdWebComponent"
,
"wdBean"
:
"file:../../features/wdBean"
,
"wdRouter"
:
"file:../../commons/wdRouter"
,
"wdNetwork"
:
"file:../../commons/wdNetwork"
}
},
"wdNetwork@../../commons/wdNetwork"
:
{
"name"
:
"wdnetwork"
,
"resolved"
:
"../../commons/wdNetwork"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdConstant"
:
"file:../wdConstant"
,
"wdKit"
:
"file:../wdKit"
,
"@ohos/axios"
:
"^2.1.1"
}
},
"wdPlayer@../../features/wdPlayer"
:
{
"name"
:
"wdplayer"
,
"resolved"
:
"../../features/wdPlayer"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdKit"
:
"file:../../commons/wdKit"
}
},
"wdRouter@../../commons/wdRouter"
:
{
"name"
:
"wdrouter"
,
"resolved"
:
"../../commons/wdRouter"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdKit"
:
"file:../wdKit"
,
"wdBean"
:
"file:../../features/wdBean"
}
},
"wdWebComponent@../../commons/wdWebComponent"
:
{
"name"
:
"wdwebcomponent"
,
"resolved"
:
"../../commons/wdWebComponent"
,
"registryType"
:
"local"
,
"dependencies"
:
{
"wdConstant"
:
"file:../wdConstant"
,
"wdKit"
:
"file:../wdKit"
,
"wdJsBridge"
:
"file:../wdJsBridge"
,
"wdBean"
:
"file:../../features/wdBean"
,
"wdRouter"
:
"file:../wdRouter"
}
}
}
}
\ No newline at end of file
sight_harmony/products/phone/src/main/ets/pages/view/AudioComponent.ets
View file @
a4c79e9
...
...
@@ -151,7 +151,7 @@ struct Index {
TapGesture()
.onAction((event: GestureEvent) => {
if (this.AudioSuspension.playerController) {
this.AudioSuspension.playerController.get().
switchPlayOrP
ause()
this.AudioSuspension.playerController.get().
p
ause()
this.AudioSuspension.minimize()
}
}))
...
...
sight_harmony/products/phone/src/main/ets/utils/InsightIntentExecutorImpl.ets
View file @
a4c79e9
import { insightIntent, InsightIntentExecutor } from '@kit.AbilityKit';
import { window } from '@kit.ArkUI';
import { BusinessError } from '@kit.BasicServicesKit';
import { NetworkUtil, SPHelper, ToastUtils } from 'wdKit';
import { NetworkUtil, SPHelper, ToastUtils
, FastClickUtil
} from 'wdKit';
import { ProcessUtils } from 'wdRouter';
import DailyPaperTopicModel from 'wdComponent/src/main/ets/model/DailyPaperTopicModel'
...
...
@@ -79,8 +79,11 @@ export default class InsightIntentExecutorImpl extends InsightIntentExecutor {
pageLoader: window.WindowStage): Promise<insightIntent.ExecuteResult> {
return new Promise((resolve, reject) => {
pageLoader.loadContent('pages/MainPage')
.then(() => {
.then(
async
() => {
if (NetworkUtil.isNetConnected()) {
if (await FastClickUtil.isMinDelayTime()) {
return
}
DailyPaperTopicModel.getDailyPaperTopic().then(dailyPaperTopicBean => {
if (dailyPaperTopicBean && dailyPaperTopicBean.id > 0) {
SPHelper.default.saveSync('dailyPaperTopicPageId', dailyPaperTopicBean.id);
...
...
Please
register
or
login
to post a comment