Selaa lähdekoodia

opt:pms预订单支付时若房间已入住则跳转至查询订单页面

LiChengjin 3 kuukautta sitten
vanhempi
commit
c8f150b224
1 muutettua tiedostoa jossa 26 lisäystä ja 11 poistoa
  1. 26 11
      subpkg_checkin/confirmOrder/confirmOrder.vue

+ 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