[AI Generated]: feat(*): 对接登录token存储、设备列表自动连接及成员管理蓝牙状态实时同步

This commit is contained in:
17792275749
2026-05-15 10:57:20 +08:00
parent 422d645c00
commit 5f9232572f
8 changed files with 175 additions and 58 deletions
@@ -171,7 +171,14 @@ Page({
wx.showLoading({ title: '连接中...', mask: true })
lefuService.connect(raw)
lefuService.onConnectState((state) => {
if (state === lefuService.BLUE_STATE.CONNECTFAILED) {
wx.hideLoading()
wx.showToast({ title: '连接失败,请重试', icon: 'none' })
}
})
lefuService.onDeviceConnect(() => {
wx.setStorageSync('connectDeviceInfo', { ...raw.raw, scaleDeviceName: raw.raw.name })
const list = this.data.deviceList.map((item, i) => ({
...item,
connected: i === index,