2 次代碼提交 90acb388f4 ... 451d5fec41

作者 SHA1 備註 提交日期
  LiChengjin 451d5fec41 opt:入住成功返回主页前清除定时器 3 月之前
  LiChengjin 7fcd65c52b opt:在入住时根据订单来源传入isResv 3 月之前
共有 3 個文件被更改,包括 2 次插入10 次删除
  1. 0 6
      pages/order/order.vue
  2. 2 1
      subpkg_checkin/checkin/checkin.vue
  3. 0 3
      subpkg_checkin/queryOrder/queryOrder.vue

+ 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({

+ 2 - 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++) {
@@ -121,6 +121,7 @@
 				}
 			},
 			gotoHome() {
+				clearInterval(this.countDownTimer)
 				uni.switchTab({
 					url: '/pages/home/home'
 				})

+ 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'