From 46b666b45ff1cca29a962008b54ee4b0636c2356 Mon Sep 17 00:00:00 2001
From: wuhui_zzw <1760308791@qq.com>
Date: Mon, 22 Jan 2024 19:16:22 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=EF=BC=9A=E7=A7=BB=E5=8A=A8?=
=?UTF-8?q?=E7=AB=AF=E5=91=98=E5=B7=A5=E7=AE=A1=E7=90=86=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/service.js | 31 ++
config/app.js | 8 +-
pages.json | 12 +
pages/admin/business/edit_staff.vue | 597 ++++++++++++++++++++++++++++
pages/admin/business/index.vue | 50 ++-
pages/admin/business/staff.vue | 280 +++++++++++++
pages/admin/custom/index.vue | 2 +-
7 files changed, 960 insertions(+), 20 deletions(-)
create mode 100644 api/service.js
create mode 100644 pages/admin/business/edit_staff.vue
create mode 100644 pages/admin/business/staff.vue
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 @@
+
+
+
+ 添加员工
+
+
+
+
+ 用户
+
+ 选择用户
+
+
+
+
+
+ {{ consume_info.nickname}}
+ UID:{{ consume_info.uid}}
+
+
+
+
+
+ 员工头像
+
+
+
+
+
+
+
+
+
+ 上传凭证
+
+
+
+
+
+
+
+ 员工名称
+
+
+
+
+
+ 员工账号
+
+
+
+
+
+ 员工密码
+
+
+
+
+
+ 确认密码
+
+
+
+
+
+ 账号状态
+
+
+
+
+
+
+ 客服功能
+
+
+
+
+
+ 订单管理
+
+
+
+
+
+ 商品管理
+
+
+
+
+
+ 开启核销
+
+
+
+
+
+ 客户管理
+
+
+
+
+
+ 员工管理
+
+
+
+
+
+ 订单通知
+
+
+
+
+
+ 通知电话
+
+
+
+
+
+ 推广二维码
+
+
+
+
+
+
+ 提交
+
+
+
+
+
+
+
+
+ 搜索
+ 取消
+
+
+
+
+
+
+
+ {{ item.nickname || item.real_name }}
+ 已成为员工
+
+ UID:{{ item.uid }}
+
+
+ 选中
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
-
+
{{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 }}
- 赠送积分
+