Parcourir la source

opt:在入住时根据订单来源传入isResv

LiChengjin il y a 3 mois
Parent
commit
7fcd65c52b

+ 0 - 6
pages/order/order.vue

@@ -123,12 +123,6 @@
 					return
 				}
 				let order = this.orderList[index]
-				if (order.orderSource == 'MINI_APP') {
-					this.orderList[index].isResv = false
-				} else {
-					this.orderList[index].isResv = true
-				}
-
 				this.updateOrder(this.orderList[index])
 				this.updateCheckinInfo([])
 				uni.navigateTo({

+ 1 - 1
subpkg_checkin/checkin/checkin.vue

@@ -62,7 +62,7 @@
 						cardId: '0',
 						userType: 1,
 						orderId: this.order.orderId,
-						isResv: this.order.isResv
+						isResv: this.order.orderSource !== 'MINI_APP'
 					}
 					let checkinResult = new Array(this.checkinInfo.length).fill(false)
 					for (let i = 0; i < this.checkinInfo.length; i++) {

+ 0 - 3
subpkg_checkin/queryOrder/queryOrder.vue

@@ -66,9 +66,6 @@
 
 				this.orderList = res.data.data.records
 				if (this.orderList.length > 0) {
-					this.orderList.forEach((order) => {
-						order.isResv = true
-					})
 					this.updateQueryOrderResult(this.orderList)
 					uni.navigateTo({
 						url: '/subpkg_checkin/queryOrderResult/queryOrderResult'