1
0

2 Commity 9442ed8cc7 ... 71a17a749c

Autor SHA1 Správa Dátum
  LiChengjin 71a17a749c bugfix:修复步骤名错误的问题 1 mesiac pred
  LiChengjin 4972c74873 bugfix:修复确认订单页面先点击确定后添加同住人之后创建订单失败的问题 1 mesiac pred

+ 1 - 1
subpkg_checkin/addGuest/addGuest.vue

@@ -1310,7 +1310,7 @@
 			}
 			//是主入住人且姓名和身份证号为空,判断为新用户,直接跳转至上传身份证照片页面
 			if (this.isMainCustomer && (!this.userInfo.name || !this.userInfo.idNumber)) {
-				this.step = 1
+				this.step = 'uploadCard'
 			}
 			// #ifdef MP-WEIXIN
 			this.isVKSupport = wx.isVKSupport('v1')

+ 7 - 5
subpkg_checkin/confirmOrder/confirmOrder.vue

@@ -176,12 +176,14 @@
 			async confirmOrder() {
 				//小程序创建的订单,先在后台创建订单,创建成功后跳转至支付页面
 				if (this.order.orderSource === 'MINI_APP') {
-					let createOrderRes = await uni.$http.post('/hotelOrder', this.order)
-					if (createOrderRes.data.code !== 200) {
-						uni.$showMsg('订单创建失败,请重试')
-						return
+					if (!this.order.orderId) {
+						let createOrderRes = await uni.$http.post('/hotelOrder', this.order)
+						if (createOrderRes.data.code !== 200) {
+							uni.$showMsg('订单创建失败,请重试')
+							return
+						}
+						this.updateOrder(createOrderRes.data.data)
 					}
-					this.updateOrder(createOrderRes.data.data)
 					this.confirmDone = true
 					this.title = '订单支付'
 				} else {