From a98bd216738ae62bb95f3c47f672fabbb7f62851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com> Date: Tue, 19 Nov 2024 18:33:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=AA=8C=E8=AF=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/mer_admin.js | 12 + src/views/modules/brand/config/index.vue | 37 +-- .../brand/config/popup/add-or-update.vue | 2 +- .../brand/config/popup/change-password.vue | 287 ++++++++---------- .../brand/config/popup/to-configure.vue | 153 +++++++++- 5 files changed, 312 insertions(+), 179 deletions(-) diff --git a/src/api/modules/mer_admin.js b/src/api/modules/mer_admin.js index 41a0e3d..c4afa2b 100644 --- a/src/api/modules/mer_admin.js +++ b/src/api/modules/mer_admin.js @@ -178,4 +178,16 @@ export const mer_admin = { changePassword: (data) => { return $http.put(`/merchant-api/brand/admin_password`, data); }, + //修改管理员 + editAdmin: (data) => { + return $http.put(`/merchant-api/brand/change/administrator`, data); + }, + //获取验证码 + getCaptcha: (data) => { + return $http.request({ + method: "get", + url: `/merchant-api/brand/sms_code`, + params: data, + }); + }, }; diff --git a/src/views/modules/brand/config/index.vue b/src/views/modules/brand/config/index.vue index 43c6c45..3ae92df 100644 --- a/src/views/modules/brand/config/index.vue +++ b/src/views/modules/brand/config/index.vue @@ -35,7 +35,7 @@
- 品牌首页: {{ list.homepageStatus == 0 ? "禁用" : "启用" }} + 品牌首页: {{ list.homepageStatus == 1 ? "启用" : "禁用" }}
宣传语: {{ list.tagline }}
@@ -43,8 +43,8 @@