bing_mac to controlDevice

This commit is contained in:
WindowBird 2025-10-14 09:02:17 +08:00
parent 3ffd4c9ed1
commit bd42b3e2b1
2 changed files with 11 additions and 10 deletions

View File

@ -324,12 +324,12 @@ export default {
duration: 2000,
});
// //
// setTimeout(() => {
// uni.navigateTo({
// url: `/page_user/luru/controlDevice?sn=${encodeURIComponent(this.sn)}`,
// })
// }, 2000)
//
setTimeout(() => {
uni.navigateTo({
url: `/page_user/luru/controlDevice?sn=${encodeURIComponent(this.mac)}`,
});
}, 2000);
} else {
throw new Error(res.msg || "绑定失败");
}

View File

@ -99,8 +99,9 @@ export default {
};
},
onLoad(options) {
if (options.sn) {
this.storeId = options.sn;
if (options.mac) {
this.storeId = options.mac;
this.mac = options.mac;
this.getsn();
}
},
@ -297,7 +298,7 @@ export default {
try {
const res = await sendCommand({
command: "11open",
mac: "44D6DA263B38",
mac: this.mac,
tryCount: "2",
timeout: "10",
reason: "测试",