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
f8f7580d
Commit
f8f7580d
authored
Apr 04, 2019
by
van.chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
状态栏黑底白字 + 出入的时候内组件刷新
parent
3d860d1b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
38 deletions
+51
-38
app.component.ts
src/app/app.component.ts
+2
-2
home.page.ts
src/app/home/home.page.ts
+12
-1
page-four.component.ts
src/app/main/page-four/page-four.component.ts
+37
-35
No files found.
src/app/app.component.ts
View file @
f8f7580d
...
...
@@ -31,8 +31,8 @@ export class AppComponent {
initializeApp
()
{
this
.
platform
.
ready
().
then
(()
=>
{
this
.
statusBar
.
style
Defaul
t
();
this
.
statusBar
.
backgroundColorByHexString
(
'#
ffffff
00'
);
this
.
statusBar
.
style
LightConten
t
();
this
.
statusBar
.
backgroundColorByHexString
(
'#
0000
00'
);
this
.
statusBar
.
show
();
this
.
statusBar
.
overlaysWebView
(
false
);
this
.
splashScreen
.
hide
();
...
...
src/app/home/home.page.ts
View file @
f8f7580d
...
...
@@ -4,7 +4,7 @@ import 'web-animations-js/web-animations.min';
import
{
toLeft
}
from
'../animations/toLeftAndBack'
;
import
{
toRight
}
from
'../animations/toRightAndBack'
;
import
{
fadeIn
}
from
'../animations/fade-in'
;
import
{
Router
,
ActivatedRoute
}
from
'@angular/router'
;
import
{
Router
}
from
'@angular/router'
;
@
Component
({
selector
:
'app-home'
,
...
...
@@ -14,6 +14,10 @@ import { Router, ActivatedRoute } from '@angular/router';
})
export
class
HomePage
implements
OnInit
{
@
ViewChild
(
IonSlides
)
slides
;
@
ViewChild
(
'page_one'
)
page_one
;
@
ViewChild
(
'page_two'
)
page_two
;
@
ViewChild
(
'page_three'
)
page_three
;
@
ViewChild
(
'page_four'
)
page_four
;
options
=
{
speed
:
1000
,
allowTouchMove
:
false
...
...
@@ -45,6 +49,13 @@ export class HomePage implements OnInit {
});
}
ionViewWillEnter
()
{
this
.
page_one
.
ngOnInit
();
this
.
page_two
.
ngOnInit
();
this
.
page_three
.
ngOnInit
();
this
.
page_four
.
ngOnInit
();
}
slideOnChange
()
{
this
.
slides
.
getActiveIndex
().
then
((
index
)
=>
{
this
.
changeIndex
(
index
);
...
...
src/app/main/page-four/page-four.component.ts
View file @
f8f7580d
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
ApiService
}
from
'../../service/api.service'
;
import
{
TransferService
}
from
'../../service/transfer.service'
;
import
{
ApiService
}
from
'../../service/api.service'
;
import
{
TransferService
}
from
'../../service/transfer.service'
;
@
Component
({
selector
:
'app-page-four'
,
...
...
@@ -10,7 +10,9 @@ import { TransferService } from '../../service/transfer.service';
export
class
PageFourComponent
implements
OnInit
{
user
:
any
=
{};
constructor
(
private
api
:
ApiService
,
private
tf
:
TransferService
)
{
}
constructor
(
private
api
:
ApiService
,
private
tf
:
TransferService
)
{
}
ngOnInit
()
{
this
.
getSelfInfo
();
...
...
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