Commit 8bde77b4 authored by youjie's avatar youjie

no message

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