diff --git a/src/api/shop/goods/cate.js b/src/api/shop/goods/cate.js index 8f76579..942fcd3 100644 --- a/src/api/shop/goods/cate.js +++ b/src/api/shop/goods/cate.js @@ -32,7 +32,14 @@ export function cateUpdate(params) { } export function cateInsert(params) { return httpService({ - url: `/user/shopCategory/insertCategory`, + url: `/user/shopCategory/insert`, + method: 'post', + data: params, + }) +} +export function cateDel(params) { + return httpService({ + url: `/user/shopCategory/delete`, method: 'post', data: params, }) diff --git a/src/api/shop/score/index.js b/src/api/shop/score/index.js new file mode 100644 index 0000000..b84cb2d --- /dev/null +++ b/src/api/shop/score/index.js @@ -0,0 +1,18 @@ +import httpService from "@/request" + +// 获取任务设置 +export function getSetting(params) { + return httpService({ + url: `/user/pointsSetting/earnPointsSettingInfo`, + method: 'get', + params: params, + }) +} +// 保存任务设置 +export function Setting(params) { + return httpService({ + url: `/user/pointsSetting/savePintsSetting`, + method: 'post', + data: params, + }) +} \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 8881258..cf2a5c7 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -57,7 +57,7 @@ const router = [ name: "payment", title: "缴费管理", component: Layout, - redirect: '/', + redirect: '/ChargeStandardManage', meta: {title: '缴费管理'}, children: [ ...payment, diff --git a/src/router/payment.js b/src/router/payment.js index 232ab70..be2ae77 100644 --- a/src/router/payment.js +++ b/src/router/payment.js @@ -6,4 +6,42 @@ * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @FilePath: /LittleBeeSaas/src/router/payment.js */ -export default [] \ No newline at end of file +export default [ + { + path: '/ChargeStandardManage', + name: "ChargeStandardManage", + title: "收费标准管理", + icon: 'form', + hide: false, + component: resolve => require(['@/views/Payment/ChargeStandardManage'], resolve), + meta: {title: '收费标准管理'}, + }, + // { + // path: '/Activity', + // name: "Activity", + // title: "活动", + // icon: 'notification', + // hide: false, + // component: resolve => require(['@/views/Operation/Activity'], resolve), + // redirect: '/Activity/ActivityManage', + // meta: {title: '活动'}, + // children: [ + // { + // path: '/Activity/ActivityManage', + // name: "ActivityManage", + // title: "活动管理", + // hide: false, + // component: resolve => require(['@/views/Operation/Activity/_activityManage'], resolve), + // meta: {title: '活动管理'}, + // }, + // { + // path: '/Activity/Organizers', + // name: "Organizers", + // title: "活动主办方", + // hide: false, + // component: resolve => require(['@/views/Operation/Activity/_organizers'], resolve), + // meta: {title: '活动主办方'}, + // }, + // ] + // }, +] \ No newline at end of file diff --git a/src/router/shop.js b/src/router/shop.js index 93584f0..cd25dde 100644 --- a/src/router/shop.js +++ b/src/router/shop.js @@ -104,13 +104,13 @@ export default [ component: resolve => require(['@/views/Shop/SwiperManage'], resolve), meta: {title: '商城轮播图管理'} }, - // { - // path: '/ScoreSetting', - // name: "ScoreSetting", - // title: "积分设置", - // hide: false, - // icon: 'crown', - // component: resolve => require(['@/views/Shop/ScoreSetting'], resolve), - // meta: {title: '积分设置'} - // }, + { + path: '/ScoreSetting', + name: "ScoreSetting", + title: "积分设置", + hide: false, + icon: 'crown', + component: resolve => require(['@/views/Shop/ScoreSetting'], resolve), + meta: {title: '积分设置'} + }, ] \ No newline at end of file diff --git a/src/views/Payment/ChargeStandardManage/depend/config.js b/src/views/Payment/ChargeStandardManage/depend/config.js new file mode 100644 index 0000000..7f27d9c --- /dev/null +++ b/src/views/Payment/ChargeStandardManage/depend/config.js @@ -0,0 +1,46 @@ +export const formItem = [ + { + type: 'input', + label:'费用名称', + prop:'name', + placeholder:'请输入' + }, +] +export const columns = [ + { + title: "费用名称", + dataIndex: "name", + }, + { + title: "计费方式", + dataIndex: "type", + }, + { + title: "计量方式", + dataIndex: "name", + }, + { + title: "单价", + dataIndex: "price", + }, + { + title: "单价", + dataIndex: "unit", + }, + { + title: "操作", + dataIndex: "action", + key: "action", + width: "180", + fixed: "right", + scopedSlots: { customRender: "action" }, + }, +] +export const pagination = { + current: 1, + total: 0, + pageSize: 10, + showTotal: (total) => `共 ${total} 条`, + showSizeChanger: true, + showQuickJumper: true, +} \ No newline at end of file diff --git a/src/views/Payment/ChargeStandardManage/depend/form.js b/src/views/Payment/ChargeStandardManage/depend/form.js new file mode 100644 index 0000000..f3fd958 --- /dev/null +++ b/src/views/Payment/ChargeStandardManage/depend/form.js @@ -0,0 +1,7 @@ +export const form = { + id:null, + brandName: undefined, +} +export const rules = { + brandName:[{required:true,message:'请输入品牌名',trigger:'blur'}], +} \ No newline at end of file diff --git a/src/views/Payment/ChargeStandardManage/index.vue b/src/views/Payment/ChargeStandardManage/index.vue new file mode 100644 index 0000000..17b8ae1 --- /dev/null +++ b/src/views/Payment/ChargeStandardManage/index.vue @@ -0,0 +1,230 @@ + + + + diff --git a/src/views/Shop/GoodsManage/_goodsCate/depend/config.js b/src/views/Shop/GoodsManage/_goodsCate/depend/config.js index c8f7c74..40fc75a 100644 --- a/src/views/Shop/GoodsManage/_goodsCate/depend/config.js +++ b/src/views/Shop/GoodsManage/_goodsCate/depend/config.js @@ -40,3 +40,7 @@ export const pagination = { showSizeChanger: true, showQuickJumper: true, } +export const rules = { + name:[{required:true,message:'请输入名称',trigger:'blur'}], + parentId:[{required:true,message:'请选择',trigger:'change',type:'array'}], +} \ No newline at end of file diff --git a/src/views/Shop/GoodsManage/_goodsCate/index.vue b/src/views/Shop/GoodsManage/_goodsCate/index.vue index ae1f4a7..98a9efb 100644 --- a/src/views/Shop/GoodsManage/_goodsCate/index.vue +++ b/src/views/Shop/GoodsManage/_goodsCate/index.vue @@ -1,103 +1,165 @@ - - diff --git a/src/views/Shop/ScoreSetting/index.vue b/src/views/Shop/ScoreSetting/index.vue index aeb3241..51419f8 100644 --- a/src/views/Shop/ScoreSetting/index.vue +++ b/src/views/Shop/ScoreSetting/index.vue @@ -1,163 +1,171 @@ +