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
wangliang_wd
2024-10-16 11:05:35 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c0e649643bd891e94993e318187dcd737cbe8712
c0e64964
1 parent
fdc2eb82
feat:优化桌面组件跳转早晚报逻辑
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
sight_harmony/commons/wdRouter/src/main/ets/utils/AppInnerLink.ets
sight_harmony/commons/wdWebComponent/src/main/ets/pages/JsBridgeBiz.ets
sight_harmony/commons/wdRouter/src/main/ets/utils/AppInnerLink.ets
View file @
c0e6496
...
...
@@ -8,6 +8,7 @@ import { ContentType } from '../common/ContentType'
import { WDRouterRule } from '../router/WDRouterRule'
import HomeChannelUtils from './HomeChannelUtils'
import { ProcessUtils } from './ProcessUtils'
import { router } from '@kit.ArkUI'
const TAG = "AppInnerLink"
...
...
@@ -129,8 +130,11 @@ export class AppInnerLink {
if (params.type == "topic" && params.subType == "moring_evening_news") {
///解决早晚报切换不更新问题,内部更新id
SPHelper.default.saveSync('dailyPaperTopicPageId', params.pageId + "");
///如果当前界面已经是早晚报,暂不跳转
if (router.getState().name !== 'MorningEveningPaperPage') {
ProcessUtils.gotoMorningEveningPaper()
}
}
if (params.type == "channel") {
if (params.subType == "electronic_newspapers") {
...
...
sight_harmony/commons/wdWebComponent/src/main/ets/pages/JsBridgeBiz.ets
View file @
c0e6496
...
...
@@ -199,8 +199,11 @@ function handleJsCallAppInnerLinkMethod(data: Message) {
if (urlParams.get('subType') === 'moring_evening_news') {
///解决早晚报切换不更新问题,内部更新id
SPHelper.default.saveSync('dailyPaperTopicPageId', content.pageId + "");
///如果当前界面已经是早晚报,暂不跳转
if (router.getState().name !== 'MorningEveningPaperPage') {
ProcessUtils.gotoMorningEveningPaper()
}
}
if (urlParams.get('subType') === 'electronic_newspapers') {
ProcessUtils.gotoENewsPaper()
}
...
...
Please
register
or
login
to post a comment