优化小秤的稳定性
This commit is contained in:
@@ -91,7 +91,7 @@ Component({
|
||||
status: true
|
||||
});
|
||||
} else {
|
||||
app.globalData.ppScale.plugin.Blue.disconnect();
|
||||
app.globalData.ppScale.plugin.Blue.stop();
|
||||
wx.showToast({
|
||||
title: "绑定失败,请重试。",
|
||||
icon: "none"
|
||||
@@ -104,7 +104,7 @@ Component({
|
||||
}
|
||||
})
|
||||
} else {
|
||||
app.globalData.ppScale.plugin.Blue.disconnect();
|
||||
app.globalData.ppScale.plugin.Blue.stop();
|
||||
wx.showToast({
|
||||
icon: "none",
|
||||
title: res.message
|
||||
@@ -116,7 +116,7 @@ Component({
|
||||
}, 1500)
|
||||
}
|
||||
}).catch(err => {
|
||||
app.globalData.ppScale.plugin.Blue.disconnect();
|
||||
app.globalData.ppScale.plugin.Blue.stop();
|
||||
wx.showToast({
|
||||
icon: "none",
|
||||
title: err.message
|
||||
@@ -128,7 +128,7 @@ Component({
|
||||
}, 1500)
|
||||
})
|
||||
} else {
|
||||
app.globalData.ppScale.plugin.Blue.disconnect();
|
||||
app.globalData.ppScale.plugin.Blue.stop();
|
||||
wx.showToast({
|
||||
icon: "none",
|
||||
title: "Mac 地址与 deviceId 获取失败,请重新绑定"
|
||||
@@ -140,7 +140,7 @@ Component({
|
||||
}, 1500)
|
||||
}
|
||||
} else {
|
||||
app.globalData.ppScale.plugin.Blue.disconnect();
|
||||
app.globalData.ppScale.plugin.Blue.stop();
|
||||
wx.showToast({
|
||||
icon: "none",
|
||||
title: "配网失败,错误码:" + res
|
||||
|
||||
Reference in New Issue
Block a user