Showing
2 changed files
with
2 additions
and
2 deletions
| @@ -20,7 +20,7 @@ struct MorningEveningPaperPage { | @@ -20,7 +20,7 @@ struct MorningEveningPaperPage { | ||
| 20 | 20 | ||
| 21 | pageTransition() { | 21 | pageTransition() { |
| 22 | // 定义页面进入时的效果,从底侧滑入 | 22 | // 定义页面进入时的效果,从底侧滑入 |
| 23 | - PageTransitionEnter({ type: RouteType.Push, duration: 300 }) | 23 | + PageTransitionEnter({ type: RouteType.Push, duration: 200 }) |
| 24 | .slide(SlideEffect.Bottom).onEnter((type: RouteType, progress: number) => { | 24 | .slide(SlideEffect.Bottom).onEnter((type: RouteType, progress: number) => { |
| 25 | if (progress >= 0.99) { | 25 | if (progress >= 0.99) { |
| 26 | // WindowModel.shared.setWindowLayoutFullScreen(true) | 26 | // WindowModel.shared.setWindowLayoutFullScreen(true) |
| @@ -4,7 +4,7 @@ import Router from '@system.router' | @@ -4,7 +4,7 @@ import Router from '@system.router' | ||
| 4 | import router from '@ohos.router' | 4 | import router from '@ohos.router' |
| 5 | import common from '@ohos.app.ability.common' | 5 | import common from '@ohos.app.ability.common' |
| 6 | import CustomDialogComponent from '../view/CustomDialogComponent' | 6 | import CustomDialogComponent from '../view/CustomDialogComponent' |
| 7 | -import preferences from '@ohos.data.preferences' | 7 | +import { preferences } from '@kit.ArkData'; |
| 8 | import { GlobalContext } from '../../utils/GlobalContext' | 8 | import { GlobalContext } from '../../utils/GlobalContext' |
| 9 | import { WDRouterRule } from 'wdRouter'; | 9 | import { WDRouterRule } from 'wdRouter'; |
| 10 | import { WDRouterPage } from 'wdRouter'; | 10 | import { WDRouterPage } from 'wdRouter'; |
-
Please register or login to post a comment