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-14 17:45:42 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e7265c09dea51457c0c1730e5a6e58b65833748e
e7265c09
1 parent
fc03bddc
feat:优化桌面组件点击早晚报逻辑
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
5 deletions
sight_harmony/commons/wdRouter/src/main/ets/utils/AppInnerLink.ets
sight_harmony/commons/wdWebComponent/src/main/ets/pages/JsBridgeBiz.ets
sight_harmony/products/phone/src/main/ets/dailynewspaperformability/NewspaperDataFetcher.ets
sight_harmony/products/phone/src/main/ets/dailynewspaperwidget/common/NewspaperWidgetData.ets
sight_harmony/products/phone/src/main/ets/dailynewspaperwidget/pages/DailyNewspaperWidgetCard.ets
sight_harmony/commons/wdRouter/src/main/ets/utils/AppInnerLink.ets
View file @
e7265c0
...
...
@@ -128,7 +128,7 @@ export class AppInnerLink {
}
if (params.type == "topic" && params.subType == "moring_evening_news") {
///解决早晚报切换不更新问题,内部更新id
SPHelper.default.
deleteSync('dailyPaperTopicPageId'
);
SPHelper.default.
saveSync('dailyPaperTopicPageId', params.pageId + ""
);
ProcessUtils.gotoMorningEveningPaper()
}
...
...
sight_harmony/commons/wdWebComponent/src/main/ets/pages/JsBridgeBiz.ets
View file @
e7265c0
...
...
@@ -198,7 +198,7 @@ function handleJsCallAppInnerLinkMethod(data: Message) {
}
if (urlParams.get('subType') === 'moring_evening_news') {
///解决早晚报切换不更新问题,内部更新id
SPHelper.default.
deleteSync('dailyPaperTopicPageId'
);
SPHelper.default.
saveSync('dailyPaperTopicPageId', content.pageId + ""
);
ProcessUtils.gotoMorningEveningPaper()
}
if (urlParams.get('subType') === 'electronic_newspapers') {
...
...
sight_harmony/products/phone/src/main/ets/dailynewspaperformability/NewspaperDataFetcher.ets
View file @
e7265c0
...
...
@@ -35,6 +35,7 @@ export class NewspaperDataFetcher {
)
if (page.topicInfo?.frontFlag && page.topicInfo.frontLinkObject) {
data.paperInfo.pageId = page.id
data.paperInfo.showLeftImage = true
data.paperInfo.leftImageUrl = page.topicInfo.frontLinkObject.coverUrl
data.paperInfo.leftTitle = page.topicInfo.frontLinkObject.title
...
...
sight_harmony/products/phone/src/main/ets/dailynewspaperwidget/common/NewspaperWidgetData.ets
View file @
e7265c0
...
...
@@ -17,6 +17,8 @@ export class FormNewspaperPaperInfo {
leftTitle?: string
leftDeepLink?: string
pageId?: number //早晚报id
rightContentHasAnyImage?: boolean = false
}
...
...
sight_harmony/products/phone/src/main/ets/dailynewspaperwidget/pages/DailyNewspaperWidgetCard.ets
View file @
e7265c0
...
...
@@ -35,7 +35,7 @@ struct DailyNewspaperWidgetCard {
.width("100%").height(36)
// .margin({top: 3})
.onClick(() => {
jumpWithDeepLink(
DAILY_NEWSPAPER_DEEP_LINK
, this)
jumpWithDeepLink(
`rmrbapp://rmrb.app/openwith?type=topic&subType=moring_evening_news&pageId=${this.paperInfo.pageId}&relId=&skipType=1`
, this)
})
Row() {
...
...
@@ -64,7 +64,7 @@ struct DailyNewspaperWidgetCard {
.borderRadius(6)
.onClick(() => {
// jumpWithDeepLink(this.paperInfo.leftDeepLink || "", this)
jumpWithDeepLink(
DAILY_NEWSPAPER_DEEP_LINK
, this)
jumpWithDeepLink(
`rmrbapp://rmrb.app/openwith?type=topic&subType=moring_evening_news&pageId=${this.paperInfo.pageId}&relId=&skipType=1`
, this)
})
Text(this.paperInfo.leftTitle)
...
...
@@ -88,6 +88,7 @@ struct DailyNewspaperWidgetCard {
ContentCellView({
content: item,
index: index,
pageId:this.paperInfo.pageId,
needShowNumber: this.needShowNumber,
hasImage: (item.coverUrl && item.coverUrl.length > 0 ? true : false)
})
...
...
@@ -109,6 +110,8 @@ struct DailyNewspaperWidgetCard {
struct ContentCellView {
@Prop needShowNumber: boolean = false
@Prop content: FormNewspaperPaperContent
private pageId : number = 0
private index : number = 0
private hasImage: boolean = false
build() {
...
...
@@ -148,7 +151,7 @@ struct ContentCellView {
.justifyContent(FlexAlign.Start)
.onClick(() => {
// jumpWithDeepLink(this.content.deepLink || "", this)
jumpWithDeepLink(
DAILY_NEWSPAPER_DEEP_LINK
, this)
jumpWithDeepLink(
`rmrbapp://rmrb.app/openwith?type=topic&subType=moring_evening_news&pageId=${this.pageId}&relId=&skipType=1`
, this)
})
}
}
...
...
Please
register
or
login
to post a comment