Showing
1 changed file
with
9 additions
and
0 deletions
| @@ -3,6 +3,7 @@ import { GlobalContext } from '../../utils/GlobalContext' | @@ -3,6 +3,7 @@ import { GlobalContext } from '../../utils/GlobalContext' | ||
| 3 | import { NavigatorModel } from '../viewModel/NavigatorModel'; | 3 | import { NavigatorModel } from '../viewModel/NavigatorModel'; |
| 4 | import { WDRouterRule } from 'wdRouter'; | 4 | import { WDRouterRule } from 'wdRouter'; |
| 5 | import { WDRouterPage } from 'wdRouter'; | 5 | import { WDRouterPage } from 'wdRouter'; |
| 6 | +import { Params } from 'wdBean'; | ||
| 6 | @CustomDialog | 7 | @CustomDialog |
| 7 | export default struct CustomDialogComponent { | 8 | export default struct CustomDialogComponent { |
| 8 | 9 | ||
| @@ -81,6 +82,10 @@ export default struct CustomDialogComponent { | @@ -81,6 +82,10 @@ export default struct CustomDialogComponent { | ||
| 81 | .width('40%') | 82 | .width('40%') |
| 82 | .fontColor(Color.Red) | 83 | .fontColor(Color.Red) |
| 83 | .onClick(() => { | 84 | .onClick(() => { |
| 85 | + | ||
| 86 | + let bean={contentId:"1",pageID:""} as Params | ||
| 87 | + WDRouterRule.jumpWithPage(WDRouterPage.loginProtocolPage,bean) | ||
| 88 | + | ||
| 84 | //GlobalContext.getContext().setObject('isJumpPrivacy', true); | 89 | //GlobalContext.getContext().setObject('isJumpPrivacy', true); |
| 85 | //WDRouterRule.jumpWithPage(WDRouterPage.privacyPage) | 90 | //WDRouterRule.jumpWithPage(WDRouterPage.privacyPage) |
| 86 | // router.pushUrl({ | 91 | // router.pushUrl({ |
| @@ -94,6 +99,10 @@ export default struct CustomDialogComponent { | @@ -94,6 +99,10 @@ export default struct CustomDialogComponent { | ||
| 94 | .width('40%') | 99 | .width('40%') |
| 95 | .fontColor(Color.Red) | 100 | .fontColor(Color.Red) |
| 96 | .onClick(() => { | 101 | .onClick(() => { |
| 102 | + | ||
| 103 | + let bean={contentId:"2",pageID:""} as Params | ||
| 104 | + WDRouterRule.jumpWithPage(WDRouterPage.loginProtocolPage,bean) | ||
| 105 | + | ||
| 97 | //GlobalContext.getContext().setObject('isJumpPrivacy', true); | 106 | //GlobalContext.getContext().setObject('isJumpPrivacy', true); |
| 98 | //WDRouterRule.jumpWithPage(WDRouterPage.privacyPage) | 107 | //WDRouterRule.jumpWithPage(WDRouterPage.privacyPage) |
| 99 | // router.pushUrl({ | 108 | // router.pushUrl({ |
-
Please register or login to post a comment