fix |> 通过桌面组件进入早晚报详情页后返回上一级未能返回到早晚报专题页
http://192.168.1.3:8080/zentao/bug-view-18834.html Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
Showing
1 changed file
with
7 additions
and
5 deletions
| @@ -5,6 +5,8 @@ import { NewspaperWidgetCommon } from "../common/NewspaperWidgetCommon" | @@ -5,6 +5,8 @@ import { NewspaperWidgetCommon } from "../common/NewspaperWidgetCommon" | ||
| 5 | const TAG = "DailyNewspaperWidgetCard" | 5 | const TAG = "DailyNewspaperWidgetCard" |
| 6 | let storageWidgetImageUpdate = new LocalStorage(); | 6 | let storageWidgetImageUpdate = new LocalStorage(); |
| 7 | 7 | ||
| 8 | +const DAILY_NEWSPAPER_DEEP_LINK = "rmrbapp://rmrb.app/openwith?type=topic&subType=moring_evening_news&pageId=&relId=&skipType=1" | ||
| 9 | + | ||
| 8 | @Entry(storageWidgetImageUpdate) | 10 | @Entry(storageWidgetImageUpdate) |
| 9 | @Component | 11 | @Component |
| 10 | struct DailyNewspaperWidgetCard { | 12 | struct DailyNewspaperWidgetCard { |
| @@ -12,8 +14,6 @@ struct DailyNewspaperWidgetCard { | @@ -12,8 +14,6 @@ struct DailyNewspaperWidgetCard { | ||
| 12 | @LocalStorageProp('paperInfo') paperInfo: FormNewspaperPaperInfo = {} as FormNewspaperPaperInfo; | 14 | @LocalStorageProp('paperInfo') paperInfo: FormNewspaperPaperInfo = {} as FormNewspaperPaperInfo; |
| 13 | @LocalStorageProp('paperContents') paperContents: FormNewspaperPaperContent[] = []; | 15 | @LocalStorageProp('paperContents') paperContents: FormNewspaperPaperContent[] = []; |
| 14 | 16 | ||
| 15 | - private DAILY_NEWSPAPER_DEEP_LINK = "rmrbapp://rmrb.app/openwith?type=topic&subType=moring_evening_news&pageId=&relId=&skipType=1" | ||
| 16 | - | ||
| 17 | build() { | 17 | build() { |
| 18 | 18 | ||
| 19 | Column() { | 19 | Column() { |
| @@ -23,7 +23,7 @@ struct DailyNewspaperWidgetCard { | @@ -23,7 +23,7 @@ struct DailyNewspaperWidgetCard { | ||
| 23 | .width("100%").height(36) | 23 | .width("100%").height(36) |
| 24 | // .margin({top: 3}) | 24 | // .margin({top: 3}) |
| 25 | .onClick(() => { | 25 | .onClick(() => { |
| 26 | - jumpWithDeepLink(this.DAILY_NEWSPAPER_DEEP_LINK, this) | 26 | + jumpWithDeepLink(DAILY_NEWSPAPER_DEEP_LINK, this) |
| 27 | }) | 27 | }) |
| 28 | 28 | ||
| 29 | Row() { | 29 | Row() { |
| @@ -51,7 +51,8 @@ struct DailyNewspaperWidgetCard { | @@ -51,7 +51,8 @@ struct DailyNewspaperWidgetCard { | ||
| 51 | .autoResize(true) | 51 | .autoResize(true) |
| 52 | .borderRadius(6) | 52 | .borderRadius(6) |
| 53 | .onClick(() => { | 53 | .onClick(() => { |
| 54 | - jumpWithDeepLink(this.paperInfo.leftDeepLink || "", this) | 54 | + // jumpWithDeepLink(this.paperInfo.leftDeepLink || "", this) |
| 55 | + jumpWithDeepLink(DAILY_NEWSPAPER_DEEP_LINK, this) | ||
| 55 | }) | 56 | }) |
| 56 | 57 | ||
| 57 | Text(this.paperInfo.leftTitle) | 58 | Text(this.paperInfo.leftTitle) |
| @@ -123,7 +124,8 @@ struct ContentCellView { | @@ -123,7 +124,8 @@ struct ContentCellView { | ||
| 123 | } | 124 | } |
| 124 | .justifyContent(FlexAlign.Start) | 125 | .justifyContent(FlexAlign.Start) |
| 125 | .onClick(() => { | 126 | .onClick(() => { |
| 126 | - jumpWithDeepLink(this.content.deepLink || "", this) | 127 | + // jumpWithDeepLink(this.content.deepLink || "", this) |
| 128 | + jumpWithDeepLink(DAILY_NEWSPAPER_DEEP_LINK, this) | ||
| 127 | }) | 129 | }) |
| 128 | } | 130 | } |
| 129 | } | 131 | } |
-
Please register or login to post a comment