From 8d83be7cb33f75e88fc3c58545fbd1411dd6db4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8?= Date: Thu, 25 Jun 2026 16:38:55 +0800 Subject: [PATCH] =?UTF-8?q?k=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/capital/transfer/index.vue | 6 +++--- src/views/profile/business/index.vue | 4 ++-- src/views/profile/business/options.ts | 2 +- src/views/profile/personalCenter/index.vue | 8 ++++---- src/views/user/Register.vue | 13 ++++++++++++- 5 files changed, 22 insertions(+), 11 deletions(-) diff --git a/src/views/capital/transfer/index.vue b/src/views/capital/transfer/index.vue index 0e4cdf0..db6d36d 100644 --- a/src/views/capital/transfer/index.vue +++ b/src/views/capital/transfer/index.vue @@ -295,9 +295,9 @@ const sendCodeApi = async (receiver: string) => { params.email = receiver } else { params.mobile = receiver - // 从手机号中提取区号 - const match = receiver.match(/^\+(\d{1,4})/) - params.mobile_area = match ? '+' + match[1] : '+86' + // 手机区号取缓存 foreign_userInfo 的 mobile_area + const foreignUserInfo = getStorage('foreign_userInfo') + params.mobile_area = foreignUserInfo?.mobile_area || '+86' } return userStore.sendCode(params) } diff --git a/src/views/profile/business/index.vue b/src/views/profile/business/index.vue index 359eb54..4a12f76 100644 --- a/src/views/profile/business/index.vue +++ b/src/views/profile/business/index.vue @@ -36,9 +36,9 @@ -