修改636 和 568的配置信息、配图,添加体重秤校验

This commit is contained in:
17792275749
2025-05-07 09:27:02 +08:00
parent 2fc1f423bd
commit ade0ef8034
5 changed files with 21 additions and 9 deletions
+18 -6
View File
@@ -26,13 +26,25 @@ Page({
deviceId: deviceId
};
$.ajax("weighingScale/binding/device", params, "POST").then(res => {
app.globalData.ppScale.activeProtocol.codeSetBindingState((res) => {
console.log("setNetwork.js codeSetBindingState", res);
wx.navigateTo({
url: "/pages/setNetworkSuccessful/setNetworkSuccessful"
if (res.success) {
app.globalData.ppScale.activeProtocol.codeSetBindingState((res) => {
console.log("setNetwork.js codeSetBindingState", res);
wx.navigateTo({
url: "/pages/setNetworkSuccessful/setNetworkSuccessful"
})
})
})
} else {
wx.showToast({
icon: "none",
title: res.message
})
setTimeout(() => {
wx.switchTab({
url: "/pages/home/home"
})
}, 1500)
}
}).catch(err => {
wx.showToast({
icon: "none",