1
0

3 Commits 17eca34da6 ... 75d1bda96c

Autor SHA1 Mensagem Data
  LiChengjin 75d1bda96c opt:添加顾客信息页面将判断顾客信息是否已添加放在检查顾客是否在当前酒店入住前 há 1 mês atrás
  LiChengjin 8d29d80ad7 opt:支付时房间被占用弹出框不显示取消按钮 há 1 mês atrás
  LiChengjin b6fe1fcbd6 opt:删除选择入住类型页面的按钮样式 há 1 mês atrás

+ 9 - 10
subpkg_checkin/addGuest/addGuest.vue

@@ -241,6 +241,15 @@
 					uni.$showMsg('手机号格式错误!')
 					return
 				}
+				//判断此顾客信息是否已添加
+				if (JSON.stringify(this.checkinInfo) !== '{}' && this.checkinInfo.length > 0) {
+					for (let info of this.checkinInfo) {
+						if (info.idNumber === this.idNumber) {
+							uni.$showMsg('已添加此顾客,请检查填写信息')
+							return
+						}
+					}
+				}
 				//检查该顾客是否在当前酒店入住
 				let res = await uni.$http.post('/checkinInfo/queryByCondition', {
 					userIdNumber: this.idNumber,
@@ -257,16 +266,6 @@
 				let pages = getCurrentPages()
 				let beforePage = pages[pages.length - 2]
 
-				//判断此顾客信息是否已添加
-				if (JSON.stringify(this.checkinInfo) !== '{}' && this.checkinInfo.length > 0) {
-					for (let info of this.checkinInfo) {
-						if (info.idNumber === this.idNumber) {
-							uni.$showMsg('已添加此顾客,请检查填写信息')
-							return
-						}
-					}
-				}
-
 				//判断本地缓存是否有顾客身份证信息,有则跳转step 2
 				for (const info of this.idCardInfo) {
 					if (info.idNumber === this.idNumber && info.name === this.name) {

+ 1 - 0
subpkg_checkin/confirmOrder/confirmOrder.vue

@@ -221,6 +221,7 @@
 				} else {
 					uni.showModal({
 						content: '房间已被占用,请重新选房',
+						showCancel: false,
 						success: (res) => {
 							if (res.confirm) {
 								uni.navigateTo({

+ 0 - 5
subpkg_checkin/selectCheckinType/selectCheckinType.vue

@@ -163,11 +163,6 @@
 				background-color: #9e97c3;
 				margin: 0 60rpx 60rpx;
 				font-size: 33rpx;
-
-				&:hover {
-					color: #FFFFFF;
-					background-color: #CECBE1;
-				}
 			}
 		}
 	}