Showing
1 changed file
with
14 additions
and
0 deletions
| @@ -441,6 +441,20 @@ struct LoginPage { | @@ -441,6 +441,20 @@ struct LoginPage { | ||
| 441 | cancelProtocol(): void { | 441 | cancelProtocol(): void { |
| 442 | this.isProtocol = false | 442 | this.isProtocol = false |
| 443 | } | 443 | } |
| 444 | + | ||
| 445 | + pageTransition() { | ||
| 446 | + // 为目标页面时,进入:从右边侧滑入,退出:是右侧划出;跳转别的页面:左侧划出,返回:左侧划入。 | ||
| 447 | + PageTransitionEnter({ type: RouteType.Push, duration: 300 }) | ||
| 448 | + .slide(SlideEffect.Right) | ||
| 449 | + PageTransitionEnter({ type: RouteType.Pop, duration: 300 }) | ||
| 450 | + .slide(SlideEffect.Left) | ||
| 451 | + PageTransitionExit({ type: RouteType.Push, duration: 300 }) | ||
| 452 | + .slide(SlideEffect.Left) | ||
| 453 | + PageTransitionExit({ type: RouteType.Pop, duration: 300 }) | ||
| 454 | + .slide(SlideEffect.Right) | ||
| 455 | + } | ||
| 456 | + | ||
| 457 | + | ||
| 444 | } | 458 | } |
| 445 | 459 | ||
| 446 | 460 |
-
Please register or login to post a comment