Commit fb059952 by 姜雷

付款成功后10s后释放蓝牙及socket资源

parent 3118a781
...@@ -766,26 +766,23 @@ class Pay extends Component { ...@@ -766,26 +766,23 @@ class Pay extends Component {
} }
gobackHandle() { gobackHandle() {
// if (this.checkIsShower()) { if (this.checkIsShower()) {
// // this.sendStartShower(); setTimeout(() => {
// Taro.showModal({ Taro.navigateTo({
// title: '提示', url: '/pages/index/index?', // 需要问号不然回到首页可以取到业务参数
// content: '开启洗浴设备', });
// success: res => { }, 2000);
// if (res.confirm) { setTimeout(() => {
// console.log('用户点击确定'); this.closeBluetooth();
// } else if (res.cancel) { this.closeDeviceSocket();
// console.log('用户点击取消'); }, 10000);
// } } else {
// }, setTimeout(() => {
// }); Taro.navigateTo({
// } else { url: '/pages/index/index?', // 需要问号不然回到首页可以取到业务参数
setTimeout(() => { });
Taro.navigateTo({ }, 2000);
url: '/pages/index/index?', // 需要问号不然回到首页可以取到业务参数 }
});
}, 2000);
// }
} }
render() { render() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment