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
yuzhilin
2024-04-18 18:01:26 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
57b7cd8188d06a2f2702e9a33e9a609163c32a59
57b7cd81
1 parent
c434d16b
详情推荐优化
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
sight_harmony/commons/wdWebComponent/src/main/ets/pages/WdWebLocalComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/CompParser.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/RecommendList.ets
sight_harmony/products/phone/src/main/resources/base/profile/main_pages.json
sight_harmony/commons/wdWebComponent/src/main/ets/pages/WdWebLocalComponent.ets
View file @
57b7cd8
...
...
@@ -82,7 +82,6 @@ export struct WdWebLocalComponent {
//webview 高度设置
private setCurrentPageOperate: (data: Message) => void = (data) => {
console.log("setCurrentPageOperate", JSON.stringify(data))
if (data.handlerName === H5CallNativeType.jsCall_currentPageOperate && data?.data?.operateType === '8') {
if (typeof this.webHeight === 'number') {
if (Number(data?.data?.webViewHeight) > this.webHeight) {
...
...
sight_harmony/features/wdComponent/src/main/ets/components/CompParser.ets
View file @
57b7cd8
...
...
@@ -30,7 +30,10 @@ export struct CompParser {
compIndex: number = 0;
build() {
this.componentBuilder(this.compDTO, this.compIndex);
Column(){
this.componentBuilder(this.compDTO, this.compIndex);
Divider().strokeWidth(1).color('#f5f5f5').padding({left:16,right:16})
}
}
@Builder
...
...
sight_harmony/features/wdComponent/src/main/ets/components/view/RecommendList.ets
View file @
57b7cd8
...
...
@@ -30,10 +30,10 @@ export struct RecommendList {
ForEach(this.recommendList, (item: ContentDTO, index: number) => {
Row() {
CardParser({ contentDTO: item });
}.border({
width: { bottom: this.recommendList.length === index + 1 ? 0 : 1 },
color: '#f5f5f5'
})
}
if (this.recommendList.length !== index + 1) {
Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 })
}
}, (item: ContentDTO) => JSON.stringify(item))
}.width('100%')
}
...
...
sight_harmony/products/phone/src/main/resources/base/profile/main_pages.json
View file @
57b7cd8
...
...
@@ -7,6 +7,7 @@
"pages/MorningEveningPaperPage"
,
"pages/detail/AudioDetail"
,
"pages/detail/MultiPictureDetailPage"
,
"pages/detail/DynamicDetailPage"
,
"pages/launchPage/PrivacyPage"
,
"pages/launchPage/LaunchPage"
,
"pages/launchPage/LaunchAdvertisingPage"
,
...
...
Please
register
or
login
to post a comment