import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AccountLogComponent } from './account-log/account-log.component';
import { BankcardComponent } from './bankcard/bankcard.component';
import { DetailComponent } from './order/detail/detail.component';
import { OrderComponent } from './order/order.component';
import { RechargeComponent } from './recharge/recharge.component';
import { WattleComponent } from './wattle/wattle.component';
const routes: Routes = [
  {
    path: '',
    redirectTo:'wattle',
    pathMatch: "full",
  },
  {
    path: 'wattle', //钱包
    component: WattleComponent,
  },
  {
    path: 'bankcard',
    component: BankcardComponent,
  },
  {
    path: 'recharge',
    component: RechargeComponent,
  },
  {
    path: 'log',
    component: AccountLogComponent,
  },
  {
    path: 'order',
    component: OrderComponent,
  },
  {
    path: 'order/detail/:id',
    component: DetailComponent,
  }
]
@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class AccountRoutingModule { }
