fix(addMember): 查无此人时提示未查询到用户信息,接口开启 loading

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
17792275749
2026-05-28 14:37:13 +08:00
co-authored by Claude Sonnet 4.6
parent 5f0f8ae9d0
commit 9960a17cac
+5 -1
View File
@@ -220,11 +220,15 @@ Page({
sn: lefuService.deviceInfo?.serialNumber ?? '',
idCard,
realname: name
}, { loading: false })
}, { loading: true })
.then(res => {
const serverResult = res.result
if (!serverResult) {
// 查无此人:用本地身份证解析补偿性别年龄
wx.showToast({
title: res.message || '未查询到用户信息',
icon: 'none'
})
const parsed = this.parseIdCard(idCard)
this.setData({
hasQueried: true,