Browse Source

修复一些已知问题

程志平 3 years ago
parent
commit
4bb1968e50
1 changed files with 2 additions and 11 deletions
  1. 2 11
      pagesAir/shareAir/shareAir.vue

+ 2 - 11
pagesAir/shareAir/shareAir.vue

@@ -538,7 +538,8 @@
 				var reg =
 					/^[1-9]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])\s+(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d$/;
 				var regExp = new RegExp(reg);
-				if (regExp.test(time) || time == this.time_string) {
+				// if (regExp.test(time) || time == this.time_string) {
+				if (regExp.test(time)) {
 					uni.showToast({
 						title: '使用中不能解绑',
 						icon: 'error',
@@ -603,16 +604,6 @@
 			btn_click(index, air_ip, name, info, order_num, time) {
 				// console.log(index, air_ip, name, info, order_num, time);
 				var _this = this;
-				// if (time === this.time_string) {
-				// 	uni.showModal({
-				// 		title: '提示',
-				// 		content: '其他人员使用中,你不能关闭!',
-				// 		confirmText: '好的',
-				// 		showCancel: false
-				// 	})
-				// 	return;
-				// }
-
 				let tmp = name.split('-');
 				let build = tmp[1],
 					floors = tmp[2],