fix: 问题修复
This commit is contained in:
parent
dc7d1b082a
commit
94c09366bc
@ -64,7 +64,7 @@ function change({ title, value }) {
|
||||
if (title) {
|
||||
form.value[title] = value;
|
||||
}
|
||||
if (title !== 'idCard') return;
|
||||
if (title == 'idCard') {
|
||||
const [isIdCard, birthday, gender] = validate.isChinaId(value);
|
||||
if (isIdCard) {
|
||||
form.value.birthday = birthday;
|
||||
@ -72,6 +72,11 @@ function change({ title, value }) {
|
||||
const age = dayjs().diff(birthday, 'year');
|
||||
form.value.age = Math.max(1, age);
|
||||
}
|
||||
} else if (title === 'birthday' && formItems.value.some(i => i.title === 'age')) {
|
||||
const age = dayjs().diff(birthday, 'year');
|
||||
form.value.age = Math.max(1, age);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function confirm() {
|
||||
|
||||
@ -61,6 +61,7 @@ async function bindTeam() {
|
||||
url: "/pages/home/home",
|
||||
});
|
||||
} else {
|
||||
set('home-invite-teamId', team.value.teamId);
|
||||
uni.redirectTo({
|
||||
url: `/pages/archive/edit-archive?teamId=${team.value.teamId}&corpId=${team.value.corpId}`
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user