Commit 8bde77b4 authored by youjie's avatar youjie

no message

parent 97337284
......@@ -200,6 +200,8 @@ export default {
basicInfo: '基础资料',
accountInfor: '账户信息',
commonPassenger: '常用旅客',
firstName: '名',
lastName: '姓'
},
// HTTP 错误状态码
httpError: {
......
......@@ -584,7 +584,7 @@ class UserService {
}
/**
* 更新密码
* 修改密码
* @param email 邮箱地址
* @param code 验证码
* @param newPassword 新密码
......@@ -601,8 +601,8 @@ class UserService {
oldPassword,
newPassword,
}
const response = await OtaRequest.put(
'/member-auth/password',
const response = await OtaRequest.post(
'/member-auth/update-password',
data,
{
headers: tenantId ? {
......
......@@ -5,9 +5,9 @@
<a-form :model="formData" :rules="rules" layout="vertical" class="w-full">
<a-row class="w-full">
<a-col :span="8">
<a-form-item field="email" :label="t('login.emailLogin')">
<a-input class="formData-input"
v-model="formData.email"
<a-form-item field="firstName" :label="t('personal.firstName')">
<a-input class="formData-input !w-[319px]"
v-model="formData.firstName"
:placeholder="t('login.emailRequired')"
size="large"
@blur="handleEmailBlur" @input="handleEmailChange">
......@@ -15,14 +15,14 @@
</a-form-item>
</a-col>
<a-col :span="8">
<a-form-item field="verificationCode" :label="t('login.verifyCode')" class="">
<a-input class="formData-input"
v-model="formData.verificationCode"
<a-form-item field="lastName" :label="t('personal.lastName')" class="">
<a-input class="formData-input !w-[319px]"
v-model="formData.lastName"
size="large"
:placeholder="t('login.verifyCodeRequired')"
:maxLength="6"
@input="handleCodeInput"
>
>
<template #suffix>
</template>
......@@ -114,19 +114,19 @@ const AreaCodeList = ref([
const formData = reactive({
tenantId: systemConfigStore.tenantId,// 必需
temporaryToken: "",//临时token
email: "",
verificationCode: "",//验证码 必需
password: "",//密码 必需 >= 6 字符 yj950815
newPassword: "",//确认密码 必需 与密码一致
scene: 'register',//注册register 登录login 重置密码ResetPassword
firstName: '',
lastName: '',
})
// 验证规则调整
const rules = computed(() => ({
email: [
firstName: [
{ required: true, message: t('login.emailRequired') },
{ type: 'email', message: t('login.emailInvalid') }
],
lastName: [
{ required: true, message: t('login.emailRequired') },
{ type: 'email', message: t('login.emailInvalid') }
],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment