Skip to content
order-detail.ts 896 B
Newer Older
wangqinghua's avatar
wangqinghua committed
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;
            }
        )
    }

}