diff --git a/src/api/platformCommission.js b/src/api/platformCommission.js new file mode 100644 index 0000000..c167c13 --- /dev/null +++ b/src/api/platformCommission.js @@ -0,0 +1,12 @@ +import request from './request' +// 平台抽成 - 配置获取/配置编辑 +export function platformCommissionConfig(data = {}) { + if(Object.keys(data).length > 0) return request.post(`user/platformCommission/config`, data) + else return request.get(`user/platformCommission/config`) +} + + + + + + diff --git a/src/router/modules/marketing.js b/src/router/modules/marketing.js index d1fbc58..a23708f 100644 --- a/src/router/modules/marketing.js +++ b/src/router/modules/marketing.js @@ -1,8 +1,7 @@ - import Layout from '@/layout' import { roterPre } from '@/settings' -const marketingRouter = -{ + +const marketingRouter = { path: `${roterPre}/marketing`, name: 'marketing', meta: { @@ -229,48 +228,48 @@ const marketingRouter = noCache: true }, component: () => import('@/views/marketing/assist/assist_list/index') - }, + } ] }, { - path: 'combination', - name: 'combinAtion', - meta: { - title: '拼团', - noCache: true - }, - redirect: 'noRedirect', - component: () => import('@/views/marketing/combination/index'), - children: [ - { - path: 'combination_goods', - name: `combinationGoods`, - meta: { - title: '拼团商品', - noCache: true - }, - component: () => import('@/views/marketing/combination/combination_goods/index') - }, - { - path: 'combination_list', - name: `combinationList`, - meta: { - title: '拼团活动', - noCache: true - }, - component: () => import('@/views/marketing/combination/store_combination/index') - }, - { - path: 'combination_set', - name: `combinationSet`, - meta: { - title: '拼团设置', - noCache: true - }, - component: () => import('@/views/marketing/combination/combination_set/index') - }, - ] + path: 'combination', + name: 'combinAtion', + meta: { + title: '拼团', + noCache: true }, + redirect: 'noRedirect', + component: () => import('@/views/marketing/combination/index'), + children: [ + { + path: 'combination_goods', + name: `combinationGoods`, + meta: { + title: '拼团商品', + noCache: true + }, + component: () => import('@/views/marketing/combination/combination_goods/index') + }, + { + path: 'combination_list', + name: `combinationList`, + meta: { + title: '拼团活动', + noCache: true + }, + component: () => import('@/views/marketing/combination/store_combination/index') + }, + { + path: 'combination_set', + name: `combinationSet`, + meta: { + title: '拼团设置', + noCache: true + }, + component: () => import('@/views/marketing/combination/combination_set/index') + } + ] + }, { path: 'integral', name: 'Integral', @@ -361,94 +360,123 @@ const marketingRouter = noCache: true }, component: () => import('@/views/marketing/integral/give/index') - }, + } ] }, - { - path: 'discounts', - name: 'discounts', - meta: { - title: '套餐', - noCache: true - }, - redirect: 'noRedirect', - component: () => import('@/views/marketing/integral/index'), - children: [ - { - path: 'list', - name: `discountsList`, - meta: { - title: '套餐列表', - noCache: true - }, - component: () => import('@/views/marketing/discounts/index') - } - ] + { + path: 'discounts', + name: 'discounts', + meta: { + title: '套餐', + noCache: true }, - { - path: 'atmosphere', - name: 'atmosphere', - meta: { - title: '活动氛围', - noCache: true - }, - redirect: 'noRedirect', - component: () => import('@/views/marketing/atmosphere/index'), - children: [ - { - path: 'list', - name: `atmosphereList`, - meta: { - title: '氛围列表', - noCache: true - }, - component: () => import('@/views/marketing/atmosphere/atmosphereList/index') + redirect: 'noRedirect', + component: () => import('@/views/marketing/integral/index'), + children: [ + { + path: 'list', + name: `discountsList`, + meta: { + title: '套餐列表', + noCache: true }, - { - path: 'add/:id?', - name: `addAtmosphere`, - meta: { - title: '添加活动氛围', - noCache: true, - activeMenu: `${roterPre}/marketing/atmosphere/list` - }, - component: () => import('@/views/marketing/atmosphere/atmosphereList/addAtmosphere') - } - ] + component: () => import('@/views/marketing/discounts/index') + } + ] + }, + { + path: 'atmosphere', + name: 'atmosphere', + meta: { + title: '活动氛围', + noCache: true }, - { - path: 'border', - name: 'border', - meta: { - title: '活动边框', - noCache: true - }, - redirect: 'noRedirect', - component: () => import('@/views/marketing/border/index'), - children: [ - { - path: 'list', - name: `borderList`, - meta: { - title: '活动边框', - noCache: true - }, - component: () => import('@/views/marketing/border/borderList/index') + redirect: 'noRedirect', + component: () => import('@/views/marketing/atmosphere/index'), + children: [ + { + path: 'list', + name: `atmosphereList`, + meta: { + title: '氛围列表', + noCache: true }, - { - path: 'add/:id?', - name: `addBorder`, - meta: { - title: '添加活动边框', - noCache: true, - activeMenu: `${roterPre}/marketing/border/list` - }, - component: () => import('@/views/marketing/border/borderList/addBorder') - } - ] - } - ], - + component: () => import('@/views/marketing/atmosphere/atmosphereList/index') + }, + { + path: 'add/:id?', + name: `addAtmosphere`, + meta: { + title: '添加活动氛围', + noCache: true, + activeMenu: `${roterPre}/marketing/atmosphere/list` + }, + component: () => import('@/views/marketing/atmosphere/atmosphereList/addAtmosphere') + } + ] + }, + { + path: 'border', + name: 'border', + meta: { + title: '活动边框', + noCache: true + }, + redirect: 'noRedirect', + component: () => import('@/views/marketing/border/index'), + children: [ + { + path: 'list', + name: `borderList`, + meta: { + title: '活动边框', + noCache: true + }, + component: () => import('@/views/marketing/border/borderList/index') + }, + { + path: 'add/:id?', + name: `addBorder`, + meta: { + title: '添加活动边框', + noCache: true, + activeMenu: `${roterPre}/marketing/border/list` + }, + component: () => import('@/views/marketing/border/borderList/addBorder') + } + ] + }, + { + path: 'platformCommission', + name: 'PlatformCommission', + meta: { + title: '平台抽成', + noCache: true + }, + redirect: 'noRedirect', + component: () => import('@/views/marketing/platformCommission/index'), + children: [ + { + path: 'commissionRecord', + name: `platformCommissionRecord`, + meta: { + title: '抽成记录', + noCache: true + }, + component: () => import('@/views/marketing/platformCommission/commissionRecord/index') + }, + { + path: 'config', + name: `platformCommissionConfig`, + meta: { + title: '基本设置', + noCache: true + }, + component: () => import('@/views/marketing/platformCommission/config/index') + } + ] + } + ] } export default marketingRouter diff --git a/src/views/marketing/platformCommission/config/index.vue b/src/views/marketing/platformCommission/config/index.vue new file mode 100644 index 0000000..99d76ae --- /dev/null +++ b/src/views/marketing/platformCommission/config/index.vue @@ -0,0 +1,140 @@ + + + + diff --git a/src/views/marketing/platformCommission/index.vue b/src/views/marketing/platformCommission/index.vue new file mode 100644 index 0000000..98240ae --- /dev/null +++ b/src/views/marketing/platformCommission/index.vue @@ -0,0 +1,3 @@ +