增加友好提示

This commit is contained in:
18796357645 2025-07-19 16:54:34 +08:00
parent 2303d3e193
commit 13cd1c300b

View File

@ -101,15 +101,18 @@ export default {
duration: 1500
});
//
// 1500ms1.5
setTimeout(() => {
this.bindDevice();
}, 1500); // toast duration
}
},
fail: (err) => {
console.error('扫码失败:', err);
// uni.showToast({
// title: '',
// icon: 'none'
// });
uni.showToast({
title: '扫码失败,请重试',
icon: 'none'
});
}
});
},
@ -134,9 +137,9 @@ export default {
});
// console.log('res', res);
// if (res.statusCode === 200) {
// uni.showToast({ title: "" });
// }
if (res.statusCode === 200) {
uni.showToast({ title: "绑定成功" });
}
} catch (error) {
console.error("设备绑定失败:", error);
uni.showToast({ title: "设备绑定失败", icon: "none" });