Commit f8f7580d authored by van.chen's avatar van.chen

状态栏黑底白字 + 出入的时候内组件刷新

parent 3d860d1b
...@@ -31,8 +31,8 @@ export class AppComponent { ...@@ -31,8 +31,8 @@ export class AppComponent {
initializeApp() { initializeApp() {
this.platform.ready().then(() => { this.platform.ready().then(() => {
this.statusBar.styleDefault(); this.statusBar.styleLightContent();
this.statusBar.backgroundColorByHexString('#ffffff00'); this.statusBar.backgroundColorByHexString('#000000');
this.statusBar.show(); this.statusBar.show();
this.statusBar.overlaysWebView(false); this.statusBar.overlaysWebView(false);
this.splashScreen.hide(); this.splashScreen.hide();
......
...@@ -4,7 +4,7 @@ import 'web-animations-js/web-animations.min'; ...@@ -4,7 +4,7 @@ import 'web-animations-js/web-animations.min';
import { toLeft } from '../animations/toLeftAndBack'; import { toLeft } from '../animations/toLeftAndBack';
import { toRight } from '../animations/toRightAndBack'; import { toRight } from '../animations/toRightAndBack';
import { fadeIn } from '../animations/fade-in'; import { fadeIn } from '../animations/fade-in';
import { Router, ActivatedRoute } from '@angular/router'; import { Router } from '@angular/router';
@Component({ @Component({
selector: 'app-home', selector: 'app-home',
...@@ -14,6 +14,10 @@ import { Router, ActivatedRoute } from '@angular/router'; ...@@ -14,6 +14,10 @@ import { Router, ActivatedRoute } from '@angular/router';
}) })
export class HomePage implements OnInit { export class HomePage implements OnInit {
@ViewChild(IonSlides) slides; @ViewChild(IonSlides) slides;
@ViewChild('page_one') page_one;
@ViewChild('page_two') page_two;
@ViewChild('page_three') page_three;
@ViewChild('page_four') page_four;
options = { options = {
speed: 1000, speed: 1000,
allowTouchMove: false allowTouchMove: false
...@@ -45,6 +49,13 @@ export class HomePage implements OnInit { ...@@ -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() { slideOnChange() {
this.slides.getActiveIndex().then((index) => { this.slides.getActiveIndex().then((index) => {
this.changeIndex(index); this.changeIndex(index);
......
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { ApiService } from '../../service/api.service'; import {ApiService} from '../../service/api.service';
import { TransferService } from '../../service/transfer.service'; import {TransferService} from '../../service/transfer.service';
@Component({ @Component({
selector: 'app-page-four', selector: 'app-page-four',
...@@ -10,7 +10,9 @@ import { TransferService } from '../../service/transfer.service'; ...@@ -10,7 +10,9 @@ import { TransferService } from '../../service/transfer.service';
export class PageFourComponent implements OnInit { export class PageFourComponent implements OnInit {
user: any = {}; user: any = {};
constructor(private api: ApiService, private tf: TransferService) { }
constructor(private api: ApiService, private tf: TransferService) {
}
ngOnInit() { ngOnInit() {
this.getSelfInfo(); this.getSelfInfo();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment