[AI Generated]: feat(*): 对接数据页/测量报告真实接口,完善成员管理、蓝牙连接及成员选择抽屉逻辑

This commit is contained in:
17792275749
2026-05-15 14:10:27 +08:00
parent 5f9232572f
commit e0573857e0
16 changed files with 612 additions and 283 deletions
+2 -4
View File
@@ -108,8 +108,7 @@ Page({
wx.showLoading({ title: '连接中...', mask: true })
wx.openBluetoothAdapter({
success: () => {
const target = { name: cachedRaw.scaleDeviceName ?? cachedRaw.name ?? '', raw: cachedRaw, model: {} }
lefuService.connect(target)
lefuService.connect(cachedRaw)
lefuService.onDeviceConnect(() => {
wx.hideLoading()
})
@@ -150,8 +149,7 @@ Page({
wx.showLoading({ title: '连接中...', mask: true })
wx.openBluetoothAdapter({
success: () => {
const target = { name: rawDevice!.scaleDeviceName ?? rawDevice!.name ?? '', raw: rawDevice!, model: {} }
lefuService.connect(target)
lefuService.connect(rawDevice!)
lefuService.onDeviceConnect(() => {
wx.hideLoading()
wx.setStorageSync('connectDeviceInfo', rawDevice)