From df41a8657247c0c08e9d065b139bec3f97d9a2a4 Mon Sep 17 00:00:00 2001 From: yuanteng <1876787513@qq.com> Date: Sun, 3 Nov 2024 12:40:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E6=B7=BB=E5=8A=A0=EF=BC=8C?= =?UTF-8?q?=E5=95=86=E5=93=81=E4=BF=AE=E6=94=B9=EF=BC=8C=E7=B1=BB=E5=88=AB?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Aside.vue | 20 +- src/router/routes.ts | 15 +- src/store/userStore.ts | 2 - src/views/Commodity/AddProduct.vue | 366 ++++++---------- src/views/Commodity/MerchandiseCenter.vue | 490 +++++++++------------- src/views/Commodity/TypeManagement.vue | 75 ++-- src/views/Login.vue | 6 - src/views/Orders/OrderList.vue | 13 + src/views/test.vue | 101 +++-- 9 files changed, 481 insertions(+), 607 deletions(-) create mode 100644 src/views/Orders/OrderList.vue diff --git a/src/layout/components/Aside.vue b/src/layout/components/Aside.vue index 3e3d5c5..01dd813 100644 --- a/src/layout/components/Aside.vue +++ b/src/layout/components/Aside.vue @@ -21,15 +21,16 @@ 用户管理 + + + 个人中心 + + 用户列表 - - - 个人中心 - @@ -54,6 +55,17 @@ + + + + + + 订单列表 + + diff --git a/src/router/routes.ts b/src/router/routes.ts index 453b754..25ffd85 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -13,16 +13,16 @@ export const routes = [ path: '/manage', component: () => import("@/layout/Manage.vue"), children:[ - { - path: '/UserManagement', - name:'用户列表', - component: ()=> import("../views/User/UserManagement.vue") - }, { path: '/PersonalCenter', name:'个人中心', component: ()=> import("../views/User/PersonalCenter.vue") }, + { + path: '/UserManagement', + name:'用户列表', + component: ()=> import("../views/User/UserManagement.vue") + }, { path: '/AddProduct', name: '添加商品', @@ -37,6 +37,11 @@ export const routes = [ path: '/TypeManagement', name: '类别管理', component: ()=> import("../views/Commodity/TypeManagement.vue") + }, + { + path: '/OrderList', + name: '订单列表', + component: ()=> import("../views/Orders/OrderList.vue") } ] }, diff --git a/src/store/userStore.ts b/src/store/userStore.ts index ef749c2..eb4ade1 100644 --- a/src/store/userStore.ts +++ b/src/store/userStore.ts @@ -1,5 +1,4 @@ import { defineStore } from "pinia"; -import myAxios from '../api/myAxios' export const userStore = defineStore( 'user' , { //state是应用的核心数据,通常用于管理用户信息、应用设置、数据列表等。 @@ -26,7 +25,6 @@ export const userStore = defineStore( 'user' , { //更新state updateUser(payLoad : any) { this.loginUser = payLoad - console.log(payLoad,2654615165) } } }) \ No newline at end of file diff --git a/src/views/Commodity/AddProduct.vue b/src/views/Commodity/AddProduct.vue index 1a9ea12..f677fb5 100644 --- a/src/views/Commodity/AddProduct.vue +++ b/src/views/Commodity/AddProduct.vue @@ -1,260 +1,172 @@ - --> - - - - - - - - - - -
- - - - - - - - - - - - - - - - + + + + + + - + - - + + - - - - + + + + + + + - + + + + + - - - 材料包 - 手持物 - 头饰 - 定制 - + + - - - - - + + 上架 + + 重置 +
\ No newline at end of file diff --git a/src/views/Commodity/MerchandiseCenter.vue b/src/views/Commodity/MerchandiseCenter.vue index 6baf5f4..5462ee3 100644 --- a/src/views/Commodity/MerchandiseCenter.vue +++ b/src/views/Commodity/MerchandiseCenter.vue @@ -1,7 +1,9 @@