From 16e6a0238ef9c7784b07e425fd4ec374286a76ce Mon Sep 17 00:00:00 2001 From: fanfan Date: Tue, 18 Jun 2024 17:18:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E5=91=98=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/user/order.js | 15 +++ src/config/router.config.js | 8 +- src/views/goods/Index.vue | 39 ++++++-- src/views/user/order/Index.vue | 178 +++++++++++++++++++++++++++++++++ 4 files changed, 232 insertions(+), 8 deletions(-) create mode 100644 src/api/user/order.js create mode 100644 src/views/user/order/Index.vue diff --git a/src/api/user/order.js b/src/api/user/order.js new file mode 100644 index 0000000..c4153d2 --- /dev/null +++ b/src/api/user/order.js @@ -0,0 +1,15 @@ +import { axios } from '@/utils/request' + +// api接口列表 +const api = { + order: '/user.order/order' +} + +// 列表记录 +export function order (params) { + return axios({ + url: api.order, + method: 'get', + params + }) +} diff --git a/src/config/router.config.js b/src/config/router.config.js index 16baf99..8f3a36d 100644 --- a/src/config/router.config.js +++ b/src/config/router.config.js @@ -512,9 +512,15 @@ export const asyncRouterMap = [ { path: '/user/identity/index', component: () => import(/* webpackChunkName: "user" */ '@/views/user/identity/Index'), - meta: { title: '身份价格', keepAlive: false, permission: ['/user/identity/index'] }, + meta: { title: '会员价格', keepAlive: false, permission: ['/user/identity/index'] }, moduleKey: 'user-grade', }, + // { + // path: '/user/order/Index', + // component: () => import(/* webpackChunkName: "user" */ '@/views/user/order/Index'), + // meta: { title: '会员订单', keepAlive: false, permission: ['/user/order/Index'] }, + // moduleKey: 'user-grade', + // }, { path: '/user/balance', component: RouteView, diff --git a/src/views/goods/Index.vue b/src/views/goods/Index.vue index 44266e0..4b72fe8 100644 --- a/src/views/goods/Index.vue +++ b/src/views/goods/Index.vue @@ -47,7 +47,7 @@ - + {{ item.name }} @@ -134,7 +134,13 @@ - 商品图片 + + + + + @@ -148,6 +154,11 @@ {{ text == 10 ? '上架' : '下架' }} + +

+ {{ text == 0 ? '待处理' : '已归类' }} +

+

@@ -265,6 +276,13 @@ const columns = [ dataIndex: 'status', scopedSlots: { customRender: 'status' }, }, + { + title: '类别', + width: '80px', + dataIndex: 'cate_status', + sorter: true, + scopedSlots: { customRender: 'cate_status' }, + }, { title: '比同款下架', width: '80px', @@ -316,10 +334,10 @@ export default { channel: '', merchant_id: '', is_jd_remove: '', - is_brand:'', - is_new:'', - is_in_store:'', - is_paihang:'' + is_brand: '', + is_new: '', + is_in_store: '', + is_paihang: '' }, setupIndex: 0, setupValue: 1, @@ -437,7 +455,7 @@ export default { }, handleSetup(type) { this.setupValue = 1; - this.paihang=''; + this.paihang = ''; this.setupIndex = type; this.batchVisible = true; }, @@ -652,6 +670,13 @@ export default { }, } + + \ No newline at end of file