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-08-29 19:14:30 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3ab37aa3641bb852266c130f5a989b903cdeab59
3ab37aa3
1 parent
233cf2eb
fix |> 屏蔽代码修复专题详情页点击稿件无法跳转详情页的问题
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
sight_harmony/commons/wdWebComponent/src/main/ets/pages/WdWebComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/SpacialTopicPageComponent.ets
sight_harmony/commons/wdWebComponent/src/main/ets/pages/WdWebComponent.ets
View file @
3ab37aa
...
...
@@ -55,9 +55,10 @@ export struct WdWebComponent {
let url: string = event.data.getRequestUrl().toString()
return this.onLoadIntercept(url);
})
.onControllerAttached(() => {
this.webviewControl.setCustomUserAgent(this.userAgent);
})
// 添加之后影响了专题详情页中 点击稿件进详情的操作,这里先临时注释
// .onControllerAttached(() => {
// this.webviewControl.setCustomUserAgent(this.userAgent);
// })
}
}
...
...
@@ -119,7 +120,7 @@ export struct WdWebComponent {
this.isPageEnd = true
}
onLoadIntercept: (url: string) => boolean = (url: string) => {
Logger.debug(TAG, 'onLoadIntercept');
Logger.debug(TAG, 'onLoadIntercept'
+ url
);
url = url.replace("%(?![0-9a-fA-F]{2})", "%25")
.replace("\\+", "%2B");
url = decodeURIComponent(url)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/SpacialTopicPageComponent.ets
View file @
3ab37aa
...
...
@@ -168,10 +168,10 @@ export struct SpacialTopicPageComponent {
.height(CommonConstants.FULL_HEIGHT)
.padding({ bottom: this.action?.params?.backVisibility ? 115 : 75 })
RelativeContainer() {
// 挂角广告
this.pageHornAd()
}
// RelativeContainer() {
// // 挂角广告
// this.pageHornAd()
// }
if (!this.isNetConnected) {
Column() {
...
...
Please
register
or
login
to post a comment