From ea89482012521dfadaf912ab1231ae2ee3a0e8bd Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 19 Aug 2023 17:47:46 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=B8=AA=E4=BA=BA=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=9A=84=E4=BF=AE=E6=94=B9=E3=80=91=201=E3=80=81=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E6=8E=A5=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/member/auth.js | 6 ++ api/member/user.js | 7 +- pages/users/user_info/index.vue | 149 ++++++++++---------------------- utils/util.js | 2 - 4 files changed, 59 insertions(+), 105 deletions(-) create mode 100644 api/member/auth.js diff --git a/api/member/auth.js b/api/member/auth.js new file mode 100644 index 00000000..4642c173 --- /dev/null +++ b/api/member/auth.js @@ -0,0 +1,6 @@ +import request from "@/utils/request.js"; + +// 登出系统 +export function logout() { + return request.post('app-api/member/auth/logout'); +} diff --git a/api/member/user.js b/api/member/user.js index f8480b18..942cf396 100644 --- a/api/member/user.js +++ b/api/member/user.js @@ -1,6 +1,11 @@ import request from "@/utils/request.js"; -// 获得用户收件地址 +// 获得基本信息 export function getUserInfo() { return request.get('app-api/member/user/get'); } + +// 修改基本信息 +export function updateUser(data) { + return request.put('app-api/member/user/update', data); +} diff --git a/pages/users/user_info/index.vue b/pages/users/user_info/index.vue index 6e48153b..b4764613 100644 --- a/pages/users/user_info/index.vue +++ b/pages/users/user_info/index.vue @@ -12,36 +12,22 @@ 昵称 - - + + + 手机号码 - 点击绑定手机号 + v-if="!userInfo.mobile"> + 点击绑定手机号 - + - - - - ID号 - - - - @@ -51,7 +37,7 @@ - + 密码 点击修改密码 @@ -65,57 +51,30 @@ - - - -