Commit a3d481e3 by 姜雷

Merge branch 'test'

parents 6ea9e8ee bf2d5a54
...@@ -689,6 +689,18 @@ class Pay extends Component { ...@@ -689,6 +689,18 @@ class Pay extends Component {
}); });
} }
showerPayHandle() {
this.closeBluetooth();
return Taro.showModal({
title: '提示',
content: '设备蓝牙连接失败...请稍后再试',
showCancel: false,
}).then(res => {
console.log(res);
this.openBluetooth();
});
}
payHandle() { payHandle() {
const { const {
device, device,
...@@ -699,10 +711,7 @@ class Pay extends Component { ...@@ -699,10 +711,7 @@ class Pay extends Component {
if (this.checkIsShower()) { if (this.checkIsShower()) {
console.log(deviceDone, sockedDone); console.log(deviceDone, sockedDone);
if (!deviceDone || !sockedDone) { if (!deviceDone || !sockedDone) {
return Taro.showModal({ return this.showerPayHandle();
title: '提示',
content: '设备连接中...请稍后再试',
});
} }
} }
getPayOrder({ getPayOrder({
......
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