From f905b98c3530310d5ab58c656101b5e0095a84ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com> Date: Fri, 15 Nov 2024 16:34:50 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/mer_admin.js | 10 ++- src/views/common/login.vue | 2 +- src/views/modules/brand/config/index.vue | 78 +++++++++++++++++++----- 3 files changed, 74 insertions(+), 16 deletions(-) diff --git a/src/api/modules/mer_admin.js b/src/api/modules/mer_admin.js index b7e7607..ad3bcd0 100644 --- a/src/api/modules/mer_admin.js +++ b/src/api/modules/mer_admin.js @@ -15,7 +15,7 @@ export const mer_admin = { * @returns */ loginByAccount: (params) => { - return $http.post(`/admin-api/auth/login`, { + return $http.post(`/merchant-api/auth/login`, { ...params, }); }, @@ -154,4 +154,12 @@ export const mer_admin = { params: { id }, }); }, + //获取品牌信息 + getBrandInfo: () => { + return $http.request({ + method: "get", + url: `/merchant-api/brand/info`, + params: {}, + }); + }, }; diff --git a/src/views/common/login.vue b/src/views/common/login.vue index 8b921b9..ab04ccd 100644 --- a/src/views/common/login.vue +++ b/src/views/common/login.vue @@ -315,7 +315,7 @@ export default { this.$api.mer_admin .loginByAccount({ // role: _loginTypeMapper[this.loginType], - userName: this.dataForm.userName, + mobile: this.dataForm.userName, password: this.dataForm.password, }) .then(({ data }) => { diff --git a/src/views/modules/brand/config/index.vue b/src/views/modules/brand/config/index.vue index 9b9989d..97e8367 100644 --- a/src/views/modules/brand/config/index.vue +++ b/src/views/modules/brand/config/index.vue @@ -10,13 +10,51 @@ 编辑