2025年4月2日17:58:50

This commit is contained in:
17792275749
2025-04-02 17:58:52 +08:00
parent a706b0ecbb
commit cb50138e38
5 changed files with 32 additions and 16 deletions
@@ -42,8 +42,9 @@ Page({
title: "正在同步用户信息,请稍等...",
mask: true
});
setSubUser();
this.setSubUser();
} else {
this.resetDevice();
app.globalData.ppScale.plugin.Blue.stop();
wx.switchTab({
url: "/pages/home/home"
@@ -75,8 +76,9 @@ Page({
this.setData({
['subUser.i']: i + 1
})
setSubUser();
this.setSubUser();
} else {
this.resetDevice();
app.globalData.ppScale.plugin.Blue.stop();
wx.hideLoading();
wx.switchTab({
@@ -86,6 +88,16 @@ Page({
})
},
resetDevice() {
app.globalData.ppScale.device = {
setting: [],
list: [],
mac: null,
name: "",
connection: null
}
},
// 获取家庭成员列表
getSubUser() {
let params = {};