fix(addMember): serverResult 为 null 时本地解析身份证补偿性别年龄
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
2827869801
commit
5f0f8ae9d0
@@ -224,7 +224,13 @@ Page({
|
||||
.then(res => {
|
||||
const serverResult = res.result
|
||||
if (!serverResult) {
|
||||
this.setData({ hasQueried: true })
|
||||
// 查无此人:用本地身份证解析补偿性别年龄
|
||||
const parsed = this.parseIdCard(idCard)
|
||||
this.setData({
|
||||
hasQueried: true,
|
||||
'form.gender': parsed.gender,
|
||||
'form.age': parsed.age,
|
||||
})
|
||||
return
|
||||
}
|
||||
if (serverResult.flag == 101) {
|
||||
|
||||
Reference in New Issue
Block a user