2 次代碼提交 6cc1eb2af7 ... 551142a36f

作者 SHA1 備註 提交日期
  LiChengjin 551142a36f opt:修改入住失败的提示 3 月之前
  LiChengjin c8f150b224 opt:pms预订单支付时若房间已入住则跳转至查询订单页面 3 月之前
共有 2 個文件被更改,包括 27 次插入12 次删除
  1. 1 1
      subpkg_checkin/checkin/checkin.vue
  2. 26 11
      subpkg_checkin/confirmOrder/confirmOrder.vue

+ 1 - 1
subpkg_checkin/checkin/checkin.vue

@@ -105,7 +105,7 @@
 						let failName = this.checkinInfo[falsePos].name
 						uni.showModal({
 							showCancel: false,
-							content: '办理失败,请至 订单->已入住 处重新办理;若仍失败,请至联系前台',
+							content: '办理失败,请重新选择订单',
 							success: (res) => {
 								if (res.confirm) {
 									uni.switchTab({

+ 26 - 11
subpkg_checkin/confirmOrder/confirmOrder.vue

@@ -223,18 +223,33 @@
 						uni.$http.post(`/hotelOrder/cancelPayment/${this.order.id}`)
 					}
 				} else {
-					uni.showModal({
-						content: '房间已被占用,请重新选房',
-						showCancel: false,
-						success: (res) => {
-							if (res.confirm) {
-								uni.navigateTo({
-									url: '/subpkg_checkin/selectRoom/selectRoom?roomType=' +
-										this.order.roomType
-								})
+					//小程序创建的订单跳转至选择房间,pms预订单跳转至查询订单
+					if (this.order.orderSource === 'MINI_APP') {
+						uni.showModal({
+							content: '房间已被占用,请重新选房',
+							showCancel: false,
+							success: (res) => {
+								if (res.confirm) {
+									uni.navigateTo({
+										url: '/subpkg_checkin/selectRoom/selectRoom?roomType=' +
+											this.order.roomType
+									})
+								}
 							}
-						}
-					})
+						})
+					} else {
+						uni.showModal({
+							content: '订单不可用,请重新选择订单',
+							showCancel: false,
+							success: (res) => {
+								if (res.confirm) {
+									uni.navigateTo({
+										url: '/subpkg_checkin/queryOrder/queryOrder?'
+									})
+								}
+							}
+						})
+					}
 				}
 				// #endif