Newer
Older
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams, AlertController, ToastController } from 'ionic-angular';
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
@IonicPage()
@Component({
selector: 'page-joinPersons',
templateUrl: 'joinPersons.html',
})
export class JoinPersonsPage {
items:object[];
//批次id
batchid:string;
//批次
batch = {};
img = "./assets/imgs/logo.png"; //目前
constructor(public navCtrl: NavController,
public navParams: NavParams,
public alertCtrl: AlertController,
public http: Http,
public appService: AppService, public toast: ToastController) {
this.batchid = this.navParams.get("batchid");
console.log("选择的批次id:"+this.batchid);
this.batch = this.navParams.get("batch");
console.log("批次信息:"+this.batch);
}
ngOnInit():void{
this.appService.ObserverHttpGet("/wisdomgroup/modules/order/batchParticipantsInfo",{"id":this.batchid})
.subscribe((res: Response) => {
let data = res.json();
console.log("canyurenyuan :"+data);
this.items = data;
}, error => {
this.appService.alert('网络异常!');
}
);
}
}