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 @@ + + + + 收费标准管理 + + + 房屋收费标准 + + + 仪表收费标准 + + + 车位收费标准 + + + 临时收费标准 + + + + + 添加费用 + + + + 修改 + 删除 + + + + + + + 批量删除 + + 批量操作 + + + + {{ `已选择 ${selectedRowKeys.length} 条` }} + + + + + + 基本信息 + + + + + + + + + + + + + + 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 @@ 商品分类 - - + + + 新增商品分类 - - + + + + + - - - - - - - - 显示 - 隐藏 - 修改分类信息 - - - - - 无图片 - - - - + + + 修改 + 显示 + 隐藏 + 删除 + + + + + 无图片 + + + + + + 批量删除 + + 批量操作 + + + + {{ `已选择 ${selectedRowKeys.length} 条` }} + + + + - + + + + + + + + + + + + + + - - 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 @@ - 公告 - - 新增公告任务设置 + - - + 首次登录设置 + + + 开启 + 关闭 + + + + + + 签到奖励设置 + + + 开启 + 关闭 + + + - 修改 - 删除 + {{ setForm.signType === 1 ? "一周每日签到模式" : "" }} + + + + 一周签到模式:在后台设置每周累计1天至 + 累计7天不同的签到积分奖励,用户签到时按照 + 实际累计登陆天数签到。例:A用户周一签到, + 周二缺签,周三签到时可领取累计2天的签到奖励, + 每周一的凌晨00:00将会重置所有累计签到次数, + 用户将由第一天起重新签到。 + + + + - - - - - - 批量删除 - - 批量操作 - - - - {{ `已选择 ${selectedRowKeys.length} 条` }} - - - - + + + + + + {{ setForm.signReward === 1 ? "商城积分" : "" }} + + + + + + + {{ item.label + }} + + + + 保存 + 重置 + + +
+ 一周签到模式:在后台设置每周累计1天至 + 累计7天不同的签到积分奖励,用户签到时按照 + 实际累计登陆天数签到。例:A用户周一签到, + 周二缺签,周三签到时可领取累计2天的签到奖励, + 每周一的凌晨00:00将会重置所有累计签到次数, + 用户将由第一天起重新签到。 +