diff --git a/api/service.js b/api/service.js new file mode 100644 index 0000000..d8838dc --- /dev/null +++ b/api/service.js @@ -0,0 +1,31 @@ +import request from "@/utils/request.js"; + +// 员工管理 - 获取员工列表 +export function getStaffList(data) { + return request.get('staff/staff_list',data); +} +// 员工管理 - 员工编辑 +export function editStaff(data) { + return request.get('staff/staff_edit',data); +} +// 员工管理 - 获取员工信息 +export function getStaffInfo(data) { + return request.get('staff/staff_info',data); +} +// 员工管理 - 员工删除 +export function delStaff(data) { + return request.get('staff/staff_del',data); +} + + + + + + + + + + + + + diff --git a/config/app.js b/config/app.js index e76d97b..6a45260 100644 --- a/config/app.js +++ b/config/app.js @@ -6,13 +6,13 @@ let VUE_APP_WS_URL = `ws://${location.hostname}?type=user` let openPlantGrass = '-openPlantGrass-' // 网络接口修改此字符 小程序域名要求https -let httpApi = 'https://bt.test.cdlfjy.com/' // 开发 -// let httpApi = 'https://mp.scwmbh.cn/' // 生产 +// let httpApi = 'https://bt.test.cdlfjy.com/' // 开发 +let httpApi = 'https://mp.scwmbh.cn/' // 生产 // 聊天接口修改此字符 小程序聊天要求wss 例如: -let wsApi = 'wss://bt.test.cdlfjy.com' -// let wsApi = 'wss://mp.scwmbh.cn' +// let wsApi = 'wss://bt.test.cdlfjy.com' +let wsApi = 'wss://mp.scwmbh.cn' module.exports = { diff --git a/pages.json b/pages.json index 6d1bfdd..6e557c0 100644 --- a/pages.json +++ b/pages.json @@ -680,6 +680,18 @@ "navigationBarTitleText": "商家管理" } }, + { + "path": "business/staff", + "style": { + "navigationBarTitleText": "员工管理" + } + }, + { + "path": "business/edit_staff", + "style": { + "navigationBarTitleText": "编辑员工" + } + }, { "path": "orderDetail/index", "style": { diff --git a/pages/admin/business/edit_staff.vue b/pages/admin/business/edit_staff.vue new file mode 100644 index 0000000..16e8132 --- /dev/null +++ b/pages/admin/business/edit_staff.vue @@ -0,0 +1,597 @@ + + + + + diff --git a/pages/admin/business/index.vue b/pages/admin/business/index.vue index eed856c..8b95fd9 100644 --- a/pages/admin/business/index.vue +++ b/pages/admin/business/index.vue @@ -4,45 +4,54 @@ {{service.merchant.mer_name || '暂无店铺'}} - - + - + {{item.title}} + + + + diff --git a/pages/admin/custom/index.vue b/pages/admin/custom/index.vue index da7a123..677983f 100644 --- a/pages/admin/custom/index.vue +++ b/pages/admin/custom/index.vue @@ -21,7 +21,7 @@ 积分:{{ item.merchant_integral }} - 赠送积分 +