Newer
Older
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { AppService } from "../../../service/appHttpService";
@IonicPage()
@Component({
selector: 'page-duty-apply',
templateUrl: 'duty-apply.html',
})
export class DutyApplyPage {
constructor(public navCtrl: NavController, public navParams: NavParams,
public appService: AppService) {
}
ionViewDidLoad() {
this.appService.alert('确定提交该申请?',res=>{
this.appService.ObserverHttpPost('/wisdomgroup/changeApply/app/apply',data)
.subscribe((res )=>{
this.appService.popToastView('提交该申请成功!','middle',1000);
this.navCtrl.pop();
})
});