Newer
Older
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import {AppMainService} from "../../../app/app.service";
import {TabsService} from "../tabs.service";
@IonicPage()
@Component({
selector: 'page-key',
templateUrl: 'key.html',
})
export class KeyPage {
constructor(public navCtrl: NavController, public navParams: NavParams,
private appMainSer:AppMainService,private tabSer:TabsService) {
//获取当前登录人信息
this.tabSer.getUserIntegral().subscribe(
(res) => {
this.appMainSer.setInfo(res.data);
}
);
//拨打电话
call(){
window.location.href = "tel:24021812";
}