提交代码

master
胡锐 6 months ago
parent b703a36969
commit 2a0bfec1df
  1. 6
      src/app/app.routes.ts
  2. 2
      src/app/pages/goods/goods-type/goods-type.component.ts
  3. 1
      src/app/pages/trade/comp-order/comp-order.component.html
  4. 0
      src/app/pages/trade/comp-order/comp-order.component.less
  5. 12
      src/app/pages/trade/comp-order/comp-order.component.ts
  6. 12
      src/app/pages/trade/trade.module.ts
  7. 6
      src/app/pages/trade/trade.routes.ts
  8. 8
      src/environments/environment.ts

@ -1,6 +1,7 @@
import { Routes } from '@angular/router'; import { Routes } from '@angular/router';
import {IndexComponent} from "./pages/body/index/index.component"; import {IndexComponent} from "./pages/body/index/index.component";
import {InitGuardService} from "./utils/initGuard.service"; import {InitGuardService} from "./utils/initGuard.service";
import {TRADE_ROUTES} from "./pages/trade/trade.routes";
export const routes: Routes = [ export const routes: Routes = [
{path: '', pathMatch: 'full', redirectTo: 'admin/index'}, {path: '', pathMatch: 'full', redirectTo: 'admin/index'},
{ {
@ -29,6 +30,11 @@ export const routes: Routes = [
loadChildren: () => import('./pages/merchant/merchant.routes').then(m => m.MERCHANT_ROUTES), loadChildren: () => import('./pages/merchant/merchant.routes').then(m => m.MERCHANT_ROUTES),
canActivate: [InitGuardService] canActivate: [InitGuardService]
}, },
{
path: 'trade',
loadChildren: () => import('./pages/trade/trade.routes').then(m => m.TRADE_ROUTES),
canActivate: [InitGuardService]
},
{ {
path: 'goods', path: 'goods',
loadChildren: () => import('./pages/goods/goods.routes').then(m => m.GOODS_ROUTES), loadChildren: () => import('./pages/goods/goods.routes').then(m => m.GOODS_ROUTES),

@ -4,8 +4,6 @@ import {NzButtonComponent} from "ng-zorro-antd/button";
import {NzColDirective, NzRowDirective} from "ng-zorro-antd/grid"; import {NzColDirective, NzRowDirective} from "ng-zorro-antd/grid";
import {NzFormControlComponent, NzFormDirective, NzFormItemComponent, NzFormLabelComponent} from "ng-zorro-antd/form"; import {NzFormControlComponent, NzFormDirective, NzFormItemComponent, NzFormLabelComponent} from "ng-zorro-antd/form";
import {NzInputDirective} from "ng-zorro-antd/input"; import {NzInputDirective} from "ng-zorro-antd/input";
import {NzMessageService} from "ng-zorro-antd/message";
import {NzModalService} from "ng-zorro-antd/modal";
import {NgForOf} from "@angular/common"; import {NgForOf} from "@angular/common";
import {goodsTypeSearch} from "../../../data/goods/goods.namespace"; import {goodsTypeSearch} from "../../../data/goods/goods.namespace";
import {NzOptionComponent, NzSelectComponent} from "ng-zorro-antd/select"; import {NzOptionComponent, NzSelectComponent} from "ng-zorro-antd/select";

@ -0,0 +1,12 @@
import { Component } from '@angular/core';
@Component({
selector: 'app-comp-order',
standalone: true,
imports: [],
templateUrl: './comp-order.component.html',
styleUrl: './comp-order.component.less'
})
export class CompOrderComponent {
}

@ -0,0 +1,12 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
@NgModule({
declarations: [],
imports: [
CommonModule
]
})
export class TradeModule { }

@ -0,0 +1,6 @@
import { Routes } from '@angular/router';
import {CompOrderComponent} from "./comp-order/comp-order.component";
export const TRADE_ROUTES: Routes = [
{ path: 'comp-order', component: CompOrderComponent },
];

@ -4,10 +4,10 @@
export const environment = { export const environment = {
production: false, production: false,
baseUrl: 'http://localhost:9502/brest/', // 测试环境服务器地址(请求数据地址) baseUrl: 'https://phgcs.dctpay.com/brest/', // 测试环境服务器地址(请求数据地址)
orderUrl: 'http://localhost:9304/order/', // 测试环境服务器地址(请求数据地址) orderUrl: 'https://phgcs.dctpay.com/order/', // 测试环境服务器地址(请求数据地址)
userUrl: 'http://localhost:9504/user/', // 测试环境服务器地址(请求数据地址) userUrl: 'https://phgcs.dctpay.com/user/', // 测试环境服务器地址(请求数据地址)
imageUrl: 'https://hsgcs.dctpay.com/filesystem/', imageUrl: 'https://phgcs.dctpay.com/filesystem/',
}; };

Loading…
Cancel
Save