From 475a6813009c8ec898eff0abcd8cbdf0c452ef42 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 19 Aug 2023 23:12:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=85=A5=E5=AF=86=E7=A0=81=E6=89=BE?= =?UTF-8?q?=E5=9B=9E=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/member/auth.js | 2 + api/member/user.js | 12 ++ pages.json | 6 - pages/retrieve_password/index.vue | 157 ++++++++++++----------- pages/users/retrievePassword/index.vue | 161 ------------------------ pages/users/user_phone/index.vue | 2 +- pages/users/user_pwd_edit/index.vue | 164 ++++++++----------------- 7 files changed, 152 insertions(+), 352 deletions(-) delete mode 100644 pages/users/retrievePassword/index.vue diff --git a/api/member/auth.js b/api/member/auth.js index 9f8a8824..4a33d850 100644 --- a/api/member/auth.js +++ b/api/member/auth.js @@ -5,6 +5,8 @@ export function sendSmsCode(mobile, scene) { return request.post('app-api/member/auth/send-sms-code', { mobile, scene + }, { + noAuth: true // TODO 芋艿:后续要做调整 }); } diff --git a/api/member/user.js b/api/member/user.js index cf160503..0ee5251b 100644 --- a/api/member/user.js +++ b/api/member/user.js @@ -14,3 +14,15 @@ export function updateUser(data) { export function updateUserMobile(data) { return request.put('app-api/member/user/update-mobile', data); } + +// 修改用户密码 +export function updateUserPassword(data) { + return request.put('app-api/member/user/update-password', data); +} + +// 重置密码 +export function resetUserPassword(data) { + return request.put('app-api/member/user/reset-password', data, { + noAuth: true // TODO 芋艿:后续要做调整 + }); +} diff --git a/pages.json b/pages.json index 2d31ffed..cf3f956c 100644 --- a/pages.json +++ b/pages.json @@ -130,12 +130,6 @@ "style": { } }, - { - "path": "retrievePassword/index", - "style": { - "navigationBarTitleText": "忘记密码" - } - }, { "path": "user_info/index", "style": { diff --git a/pages/retrieve_password/index.vue b/pages/retrieve_password/index.vue index 21d89f70..19f3fae5 100644 --- a/pages/retrieve_password/index.vue +++ b/pages/retrieve_password/index.vue @@ -1,8 +1,8 @@ diff --git a/pages/users/retrievePassword/index.vue b/pages/users/retrievePassword/index.vue deleted file mode 100644 index e9937e6a..00000000 --- a/pages/users/retrievePassword/index.vue +++ /dev/null @@ -1,161 +0,0 @@ - - - - diff --git a/pages/users/user_phone/index.vue b/pages/users/user_phone/index.vue index 7748e3f3..d811fd29 100644 --- a/pages/users/user_phone/index.vue +++ b/pages/users/user_phone/index.vue @@ -122,7 +122,7 @@ oldCode: this.captcha }).then(res => { return this.$util.Tips({ - title: res.message, + title: '手机修改成功', icon: 'success' }, { tab: 5, diff --git a/pages/users/user_pwd_edit/index.vue b/pages/users/user_pwd_edit/index.vue index 68cafe2a..15fed304 100644 --- a/pages/users/user_pwd_edit/index.vue +++ b/pages/users/user_pwd_edit/index.vue @@ -2,16 +2,18 @@
- 当前手机号:{{phone}} + 当前手机号:{{ userInfo.mobile }} - + - + - + @@ -20,105 +22,41 @@ - - -
-