From 5360916d93895cca89959058f1f81cf5e3b4689f Mon Sep 17 00:00:00 2001 From: fanpeng <438123081@qq.com> Date: Tue, 15 Jul 2025 11:24:54 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=E9=87=8D=E5=91=BD=E5=90=8D?= =?UTF-8?q?=E9=82=AE=E7=AE=B1=E7=9B=B8=E5=85=B3=E9=A1=B5=E9=9D=A2=E4=B8=BA?= =?UTF-8?q?=E8=B4=A6=E6=88=B7=E7=9B=B8=E5=85=B3=EF=BC=8C=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=89=8B=E6=9C=BA=E5=8F=B7=E7=BB=91=E5=AE=9A=E5=92=8C=E8=A7=A3?= =?UTF-8?q?=E7=BB=91=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/user.js | 18 +++ pages.json | 4 +- .../{updateEmail.vue => updateAccount.vue} | 119 ++++++++++++++---- pages/user/userInfo.vue | 32 ++++- .../{verifyEmail.vue => verifyAccount.vue} | 27 ++-- stores/basic.js | 8 +- 6 files changed, 165 insertions(+), 43 deletions(-) rename pages/user/{updateEmail.vue => updateAccount.vue} (56%) rename pages/user/{verifyEmail.vue => verifyAccount.vue} (82%) diff --git a/api/user.js b/api/user.js index a160ff4..a1f1916 100644 --- a/api/user.js +++ b/api/user.js @@ -38,6 +38,15 @@ export function unbindEmailTokenRequest(data) { }) } +// 获取解绑手机号token +export function unbindPhoneTokenRequest(data) { + return request({ + url: '/user/unbindPhoneToken', + method: 'POST', + data + }) +} + // 修改绑定邮箱 export function updateEmailRequest(data) { return request({ @@ -47,6 +56,15 @@ export function updateEmailRequest(data) { }) } +// 修改绑定手机号 +export function updatePhoneRequest(data) { + return request({ + url: '/user/bindPhone', + method: 'POST', + data + }) +} + // 获取邮箱验证码 export function getEmailCodeRequest(data) { return request({ diff --git a/pages.json b/pages.json index fbf61bb..ec3235c 100644 --- a/pages.json +++ b/pages.json @@ -107,13 +107,13 @@ } }, { - "path": "updateEmail", + "path": "updateAccount", "style": { "navigationBarTitleText": "修改邮箱" } }, { - "path": "verifyEmail", + "path": "verifyAccount", "style": { "navigationBarTitleText": "验证邮箱" } diff --git a/pages/user/updateEmail.vue b/pages/user/updateAccount.vue similarity index 56% rename from pages/user/updateEmail.vue rename to pages/user/updateAccount.vue index daea8a1..edd506c 100644 --- a/pages/user/updateEmail.vue +++ b/pages/user/updateAccount.vue @@ -1,10 +1,30 @@