wupengfei
2 天以前 7eb002b8aa27e616b8b98074bee97861ea922451
apps/cMiniApp/src/subpackages/login/registerForm/registerForm.vue
@@ -62,6 +62,7 @@
import Taro from '@tarojs/taro';
import { ResponseCode } from '@12333/constants';
import * as authServices from '@12333/services/apiV2/auth';
import { APP_ENV } from '@/constants';
defineOptions({
  name: 'registerForm',
@@ -88,12 +89,13 @@
});
async function onGetCaptcha() {
  await authServices.sendLoginOrRegisterVerifyCode(
  const res = await authServices.sendLoginOrRegisterVerifyCode(
    {
      phoneNumber: form.phoneNumber,
    },
    {
      showLoading: false,
      getResponse: true,
      // customErrorHandler(error) {
      //   if (error?.response?.data?.error?.code === ResponseCode.RegisterExistsPhoneNumber) {
      //     Message.confirm({
@@ -107,6 +109,11 @@
      // },
    }
  );
  if (res && APP_ENV === 'staging') {
    // @ts-ignore
    form.verificationCode = res?.data?.extras?.code ?? '';
  }
}
async function handleRegister() {