修改636 和 568的配置信息、配图,添加体重秤校验
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user