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 @@ 编辑
-
品牌名称:
-
品牌ID:
-
品牌LOGO:
-
品牌背景:
-
品牌首页:
-
宣传语:
-
宣传视频:
+
品牌名称:{{ list.name }}
+
品牌ID: {{ list.id }}
+
+
品牌LOGO:
+
+ + +
+
+
+
品牌背景:
+
+ + +
+
+
+ 品牌首页: {{ list.homepageStatus == 0 ? "禁用" : "启用" }} +
+
宣传语: {{ list.tagline }}
+
+
宣传视频:
+
+ +
+
@@ -24,11 +62,13 @@
- 管理员账号: + 管理员账号:{{ list.administrator.substr(0, 3) }}****{{ + list.administrator.substr(7) + }} 修改
- 管理员密码: + 管理员密码: ****** 修改 @@ -39,8 +79,8 @@ 其他信息
-
品牌联系人:
-
联系方式:
+
品牌联系人:{{ list.contact }}
+
联系方式: {{ list.contactPhone }}
@@ -58,19 +98,29 @@
-