import { Component, OnInit } from '@angular/core';
import {NavController} from '@ionic/angular';


@Component({
  selector: 'app-dingdan',
  templateUrl: './dingdan.page.html',
  styleUrls: ['./dingdan.page.scss'],
})
export class DingdanPage implements OnInit {
  orders: any[] = [
    { orderNumber: '123456', status: '已送达', fromAddress: '地址A', toAddress: '地址B', shippingCost: '$50' },
    { orderNumber: '789012', status: '运输中', fromAddress: '地址C', toAddress: '地址D', shippingCost: '$60' },
    // 其他订单数据
  ];


  deleteOrder(order: any) {
    // 处理删除订单逻辑
  }
  ngOnInit() {
  }
  constructor(private navCtrl:NavController) {
    
  }

 
 back(){
   this.navCtrl.back()
 }
}
