bing_mac to controlDevice
This commit is contained in:
parent
3ffd4c9ed1
commit
bd42b3e2b1
|
|
@ -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 || "绑定失败");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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: "测试",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user