修改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
+2 -2
View File
@@ -31,7 +31,7 @@ App({
"deviceCalcuteType": 3,
"deviceConnectType": 2,
"deviceFuncType": 223,
"deviceName": "CF568_G",
"deviceName": "YX-B4-568-BW",
"devicePowerType": 3,
"deviceProtocolType": 3,
"deviceType": 1,
@@ -52,7 +52,7 @@ App({
"deviceCalcuteType": 4,
"deviceConnectType": 2,
"deviceFuncType": 65759,
"deviceName": "CF636_G",
"deviceName": "YX-B8-636-BW",
"devicePowerType": 3,
"deviceProtocolType": 3,
"deviceType": 1,

Before

Width:  |  Height:  |  Size: 236 KiB

After

Width:  |  Height:  |  Size: 236 KiB

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB

+12
View File
@@ -26,6 +26,7 @@ Page({
deviceId: deviceId
};
$.ajax("weighingScale/binding/device", params, "POST").then(res => {
if (res.success) {
app.globalData.ppScale.activeProtocol.codeSetBindingState((res) => {
console.log("setNetwork.js codeSetBindingState", res);
@@ -33,6 +34,17 @@ Page({
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",
+1 -1
View File
@@ -195,7 +195,7 @@ Page({
})
let seviceList = [];
app.globalData.ppScale.device.setting.map(item => {
if(this.data.deviceInfo.type === item.deviceName) {
if(this.data.deviceInfo && this.data.deviceInfo.type === item.deviceName) {
seviceList.push(item);
}
})