fix(addMember): 查无此人时提示未查询到用户信息,接口开启 loading
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
5f0f8ae9d0
commit
9960a17cac
@@ -220,11 +220,15 @@ Page({
|
|||||||
sn: lefuService.deviceInfo?.serialNumber ?? '',
|
sn: lefuService.deviceInfo?.serialNumber ?? '',
|
||||||
idCard,
|
idCard,
|
||||||
realname: name
|
realname: name
|
||||||
}, { loading: false })
|
}, { loading: true })
|
||||||
.then(res => {
|
.then(res => {
|
||||||
const serverResult = res.result
|
const serverResult = res.result
|
||||||
if (!serverResult) {
|
if (!serverResult) {
|
||||||
// 查无此人:用本地身份证解析补偿性别年龄
|
// 查无此人:用本地身份证解析补偿性别年龄
|
||||||
|
wx.showToast({
|
||||||
|
title: res.message || '未查询到用户信息',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
const parsed = this.parseIdCard(idCard)
|
const parsed = this.parseIdCard(idCard)
|
||||||
this.setData({
|
this.setData({
|
||||||
hasQueried: true,
|
hasQueried: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user