Newer
Older
1
2
3
4
5
6
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
import {Component} from '@angular/core';
import {IonicPage, NavController, NavParams} from 'ionic-angular';
import {AppGlobal} from "../../../../service/http.service";
import {ServeService} from "../../serve.service";
@Component({
selector: 'page-order-detail',
templateUrl: 'order-detail.html',
})
export class OrderDetailPage {
orderId;
orderList;
picture = AppGlobal.picture;
constructor(public navCtrl: NavController, public navParams: NavParams,
private serveSer:ServeService) {
}
ionViewDidLoad() {
this.orderId = this.navParams.get('id');
this.getDetail();
}
getDetail(){
const data = {
type:0,
parentId:this.orderId
}
this.serveSer.searchSubmited(data).subscribe(
(res)=>{
this.orderList = res.list;
}
)
}
}