Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
appPasture
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
WitCloud
appPasture
Commits
349ce0d3
Commit
349ce0d3
authored
Apr 03, 2019
by
van.chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改了页面退出重进home页不会刷新的问题
parent
880f7bdf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
package.json
package.json
+1
-1
toLeftAndBack.ts
src/app/animations/toLeftAndBack.ts
+2
-2
toRightAndBack.ts
src/app/animations/toRightAndBack.ts
+2
-2
app.component.ts
src/app/app.component.ts
+3
-1
No files found.
package.json
View file @
349ce0d3
...
...
@@ -90,4 +90,4 @@
"ios"
]
}
}
}
\ No newline at end of file
src/app/animations/toLeftAndBack.ts
View file @
349ce0d3
...
...
@@ -7,6 +7,6 @@ export const toLeft = trigger('toLeft', [
state
(
'backLeft'
,
style
({
'transform'
:
'translateX(0)'
})),
transition
(
'toLeft => backLeft'
,
animate
(
'
2
50ms'
)),
transition
(
'backLeft => toLeft'
,
animate
(
'
2
50ms'
))
transition
(
'toLeft => backLeft'
,
animate
(
'
1
50ms'
)),
transition
(
'backLeft => toLeft'
,
animate
(
'
1
50ms'
))
]);
src/app/animations/toRightAndBack.ts
View file @
349ce0d3
...
...
@@ -7,6 +7,6 @@ export const toRight = trigger('toRight', [
state
(
'backRight'
,
style
({
'transform'
:
'translateX(0)'
})),
transition
(
'toRight => backRight'
,
animate
(
'
2
50ms'
)),
transition
(
'backRight => toRight'
,
animate
(
'
2
50ms'
))
transition
(
'toRight => backRight'
,
animate
(
'
1
50ms'
)),
transition
(
'backRight => toRight'
,
animate
(
'
1
50ms'
))
]);
src/app/app.component.ts
View file @
349ce0d3
...
...
@@ -32,7 +32,9 @@ export class AppComponent {
initializeApp
()
{
this
.
platform
.
ready
().
then
(()
=>
{
this
.
statusBar
.
styleDefault
();
this
.
statusBar
.
backgroundColorByHexString
(
'#ffffffff'
);
this
.
statusBar
.
backgroundColorByHexString
(
'#6B7072'
);
this
.
statusBar
.
show
();
this
.
statusBar
.
overlaysWebView
(
false
);
this
.
splashScreen
.
hide
();
this
.
registerBackButtonAction
();
// 注册返回按键事件
this
.
platform
.
resume
.
subscribe
();
// 弹出框
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment