From 037fb36aaf4123ef143ac48038a0b171418a20e5 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 11 八月 2025 10:00:18 +0800
Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/flexJobMiniApp

---
 apps/bMiniApp/src/subpackages/login/registerForm/registerForm.vue |   28 +++++++++++++---------------
 1 files changed, 13 insertions(+), 15 deletions(-)

diff --git a/apps/bMiniApp/src/subpackages/login/registerForm/registerForm.vue b/apps/bMiniApp/src/subpackages/login/registerForm/registerForm.vue
index 8342306..b68561a 100644
--- a/apps/bMiniApp/src/subpackages/login/registerForm/registerForm.vue
+++ b/apps/bMiniApp/src/subpackages/login/registerForm/registerForm.vue
@@ -54,7 +54,6 @@
 <script setup lang="ts">
 import LoginPageLayout from '../components/LoginPageLayout/LoginPageLayout.vue';
 import { Policy } from '@/components';
-import * as commonServices from '@12333/services/api/Common';
 import { FormRules } from '@nutui/nutui-taro/dist/types/__VUE/form/types';
 import { FormValidator, Message } from '@12333/utils';
 import { LargeButton } from '@/components';
@@ -62,7 +61,7 @@
 import { VerificationCodeBusinessType } from '@12333/constants';
 import Taro from '@tarojs/taro';
 import { ResponseCode } from '@12333/constants';
-import * as accountServices from '@12333/services/api/Account';
+import * as authServices from '@12333/services/apiV2/auth';
 
 defineOptions({
   name: 'registerForm',
@@ -89,24 +88,23 @@
 });
 
 async function onGetCaptcha() {
-  await commonServices.sendVerificationCode(
+  await authServices.sendLoginOrRegisterVerifyCode(
     {
       phoneNumber: form.phoneNumber,
-      businessType: VerificationCodeBusinessType.PhoneMesssageCodeRegister,
     },
     {
       showLoading: false,
-      customErrorHandler(error) {
-        if (error?.response?.data?.error?.code === ResponseCode.RegisterExistsPhoneNumber) {
-          Message.confirm({
-            message: '璇ユ墜鏈哄彿宸叉敞鍐岋紝璇峰幓鐧诲綍椤电櫥褰�',
-            confirmText: '鍘荤櫥褰�',
-          }).then(() => {
-            goLogin();
-          });
-          return true;
-        }
-      },
+      // customErrorHandler(error) {
+      //   if (error?.response?.data?.error?.code === ResponseCode.RegisterExistsPhoneNumber) {
+      //     Message.confirm({
+      //       message: '璇ユ墜鏈哄彿宸叉敞鍐岋紝璇峰幓鐧诲綍椤电櫥褰�',
+      //       confirmText: '鍘荤櫥褰�',
+      //     }).then(() => {
+      //       goLogin();
+      //     });
+      //     return true;
+      //   }
+      // },
     }
   );
 }

--
Gitblit v1.9.1