[AI Generated]: feat(member,home): addMember 接入身份证联动校验;OTA 升级 15s 后自动重连

- addMember: 姓名+身份证输入联动调 getUserInfoByIdcard,result 非 null 时以服务端身份证重算性别年龄
- addMember: 新增 hasQueried 标记,result 为 null 视为合法新人允许提交;payload 以 serverResult 做底再用表单覆盖
- home: OTA 升级 setTimeout 到点后清 connected 状态并触发 lefuService.autoConnect() 重新扫连

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
17792275749
2026-05-21 22:02:56 +08:00
co-authored by Claude Opus 4.7
parent b979771650
commit 0a05fde0ba
2 changed files with 109 additions and 5 deletions
+6 -3
View File
@@ -152,9 +152,12 @@ Page({
lefuService.checkAndUpgrade()
.then(() => {
wx.showLoading({ title: '固件升级中...', mask: true })
setTimeout(() => {
wx.hideLoading()
}, 15000)
setTimeout(() => {
wx.hideLoading()
// 升级完成后设备重启,旧连接与订阅失效,重新扫描连接
this.setData({ 'device.connected': false })
lefuService.autoConnect()
}, 15000)
})
.catch(() => {})
},