|
@@ -728,12 +728,6 @@
|
|
|
duration: 2000
|
|
duration: 2000
|
|
|
});
|
|
});
|
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
|
- // 延时15s看关闭状态
|
|
|
|
|
- // let _this = this;
|
|
|
|
|
- // setTimeout(() => {
|
|
|
|
|
- // // 查询是否关闭成功
|
|
|
|
|
- // _this.selectAirCloseState(index, air_ip, order_num)
|
|
|
|
|
- // }, 15000);
|
|
|
|
|
} else {
|
|
} else {
|
|
|
if (res.data.message == '该订单已结算,请勿重复结算') {
|
|
if (res.data.message == '该订单已结算,请勿重复结算') {
|
|
|
// 显示已经关闭图标
|
|
// 显示已经关闭图标
|
|
@@ -749,52 +743,6 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
- * 查询是否关闭成功
|
|
|
|
|
- * @param {Object} index
|
|
|
|
|
- * @param {Object} air_ip
|
|
|
|
|
- */
|
|
|
|
|
- // async selectAirCloseState(index, air_ip, order_num) {
|
|
|
|
|
- // // console.log(index, air_ip);
|
|
|
|
|
- // const res = await this.$myRequest({
|
|
|
|
|
- // host: this.ceshi,
|
|
|
|
|
- // url: '/airManage/consumeairoffStatus.action',
|
|
|
|
|
- // method: 'POST',
|
|
|
|
|
- // header: {
|
|
|
|
|
- // 'content-type': 'application/x-www-form-urlencoded'
|
|
|
|
|
- // },
|
|
|
|
|
- // data: {
|
|
|
|
|
- // air_ip: air_ip,
|
|
|
|
|
- // order_num: order_num
|
|
|
|
|
- // }
|
|
|
|
|
- // })
|
|
|
|
|
-
|
|
|
|
|
- // // console.log(res.data);
|
|
|
|
|
- // if (res.data.code == 200) {
|
|
|
|
|
- // if (res.data.is_on == 0) {
|
|
|
|
|
- // // 显示已经关闭图标
|
|
|
|
|
- // this.airs[index].on = false
|
|
|
|
|
- // this.airs[index].time = '未启动'
|
|
|
|
|
- // uni.showToast({
|
|
|
|
|
- // title: '关闭成功!',
|
|
|
|
|
- // duration: 2000
|
|
|
|
|
- // });
|
|
|
|
|
- // } else {
|
|
|
|
|
- // uni.showToast({
|
|
|
|
|
- // icon: 'none',
|
|
|
|
|
- // title: '关闭失败!',
|
|
|
|
|
- // duration: 2000
|
|
|
|
|
- // });
|
|
|
|
|
- // }
|
|
|
|
|
- // uni.hideLoading();
|
|
|
|
|
- // } else {
|
|
|
|
|
- // uni.showToast({
|
|
|
|
|
- // icon: 'none',
|
|
|
|
|
- // title: res.data.message,
|
|
|
|
|
- // duration: 2000
|
|
|
|
|
- // });
|
|
|
|
|
- // }
|
|
|
|
|
- // },
|
|
|
|
|
- /**
|
|
|
|
|
* 启动空调
|
|
* 启动空调
|
|
|
* @param {Object} code
|
|
* @param {Object} code
|
|
|
* @param {Object} index
|
|
* @param {Object} index
|
|
@@ -850,11 +798,6 @@
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
|
- // 延时15s看开启状态
|
|
|
|
|
- // setTimeout(() => {
|
|
|
|
|
- // // 查询是否开启成功
|
|
|
|
|
- // _this.selectAirOpenState(index, air_ip)
|
|
|
|
|
- // }, 150000);
|
|
|
|
|
} else {
|
|
} else {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
icon: 'none',
|
|
icon: 'none',
|
|
@@ -866,54 +809,6 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
- * 查询是否开启成功
|
|
|
|
|
- * @param {Object} index
|
|
|
|
|
- * @param {Object} air_ip
|
|
|
|
|
- */
|
|
|
|
|
- // async selectAirOpenState(index, air_ip) {
|
|
|
|
|
- // // console.log(index, air_ip);
|
|
|
|
|
- // const res = await this.$myRequest({
|
|
|
|
|
- // host: this.ceshi,
|
|
|
|
|
- // url: '/airManage/consumeairStatus.action',
|
|
|
|
|
- // method: 'POST',
|
|
|
|
|
- // header: {
|
|
|
|
|
- // 'content-type': 'application/x-www-form-urlencoded'
|
|
|
|
|
- // },
|
|
|
|
|
- // data: {
|
|
|
|
|
- // air_ip: air_ip,
|
|
|
|
|
- // order_num: this.airs[index].order_num
|
|
|
|
|
- // }
|
|
|
|
|
- // })
|
|
|
|
|
-
|
|
|
|
|
- // // console.log(res.data);
|
|
|
|
|
- // if (res.data.code == 200) {
|
|
|
|
|
- // if (res.data.is_on === '1') {
|
|
|
|
|
- // let _this = this
|
|
|
|
|
- // uni.showToast({
|
|
|
|
|
- // title: '开启成功!',
|
|
|
|
|
- // duration: 2000,
|
|
|
|
|
- // success() {
|
|
|
|
|
- // // 将开启按钮变成关闭按钮
|
|
|
|
|
- // _this.airs[index].on = true;
|
|
|
|
|
- // _this.airs[index].time = res.data.start_time;
|
|
|
|
|
- // }
|
|
|
|
|
- // });
|
|
|
|
|
- // } else {
|
|
|
|
|
- // uni.showToast({
|
|
|
|
|
- // title: '开启失败!',
|
|
|
|
|
- // duration: 2000
|
|
|
|
|
- // });
|
|
|
|
|
- // }
|
|
|
|
|
- // uni.hideLoading();
|
|
|
|
|
- // } else {
|
|
|
|
|
- // uni.showToast({
|
|
|
|
|
- // icon: 'none',
|
|
|
|
|
- // title: res.data.message,
|
|
|
|
|
- // duration: 2000
|
|
|
|
|
- // });
|
|
|
|
|
- // }
|
|
|
|
|
- // },
|
|
|
|
|
- /**
|
|
|
|
|
* 滚动到顶部提示
|
|
* 滚动到顶部提示
|
|
|
*/
|
|
*/
|
|
|
scroll_to_upper() {
|
|
scroll_to_upper() {
|