|
@@ -634,17 +634,17 @@
|
|
|
|
|
|
|
|
// console.log(res.data)
|
|
// console.log(res.data)
|
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
|
- // 等待12s
|
|
|
|
|
|
|
+ // 等待4s
|
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
|
title: '关闭中...',
|
|
title: '关闭中...',
|
|
|
mask: true
|
|
mask: true
|
|
|
});
|
|
});
|
|
|
- // 延时12s看关闭状态
|
|
|
|
|
|
|
+ // 延时4s看关闭状态
|
|
|
let _this = this;
|
|
let _this = this;
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
// 查询是否关闭成功
|
|
// 查询是否关闭成功
|
|
|
_this.selectAirCloseState(index, air_ip, order_num)
|
|
_this.selectAirCloseState(index, air_ip, order_num)
|
|
|
- }, 12000);
|
|
|
|
|
|
|
+ }, 4000);
|
|
|
} else {
|
|
} else {
|
|
|
if (res.data.message == '该订单已结算,请勿重复结算') {
|
|
if (res.data.message == '该订单已结算,请勿重复结算') {
|
|
|
// 显示已经关闭图标
|
|
// 显示已经关闭图标
|
|
@@ -733,7 +733,7 @@
|
|
|
|
|
|
|
|
// console.log(res.data);
|
|
// console.log(res.data);
|
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
|
- // 等待12s
|
|
|
|
|
|
|
+ // 等待4s
|
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
|
title: '开启中...',
|
|
title: '开启中...',
|
|
|
mask: true
|
|
mask: true
|
|
@@ -741,11 +741,11 @@
|
|
|
let _this = this;
|
|
let _this = this;
|
|
|
// 获取订单号
|
|
// 获取订单号
|
|
|
this.airs[index].order_num = res.data.order_num
|
|
this.airs[index].order_num = res.data.order_num
|
|
|
- // 延时12s看开启状态
|
|
|
|
|
|
|
+ // 延时4s看开启状态
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
// 查询是否开启成功
|
|
// 查询是否开启成功
|
|
|
_this.selectAirOpenState(index, air_ip)
|
|
_this.selectAirOpenState(index, air_ip)
|
|
|
- }, 12000);
|
|
|
|
|
|
|
+ }, 4000);
|
|
|
} else {
|
|
} else {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
icon: 'none',
|
|
icon: 'none',
|