浏览代码

feat: bug

2912631854@qq.com 8 月之前
父节点
当前提交
cb25c42243
共有 3 个文件被更改,包括 33 次插入7 次删除
  1. 19 0
      pages/house/createOrder.vue
  2. 11 4
      pages/house/orderInfo.vue
  3. 3 3
      pages/my/roomType.vue

+ 19 - 0
pages/house/createOrder.vue

@@ -19,6 +19,20 @@
 							placeholder="请输入手机号码" v-model="dataForm.guestPhone"></u--input>
 					</view>
 				</u-cell>
+				<u-cell customStyle="height:88rpx">
+					<text slot="icon" class="label">成人</text>
+					<view slot="title" class="title">
+						<u--input border="none" class="input" inputAlign="right" placeholderStyle="font-size:26rpx"
+							placeholder="请输入成人人数" v-model="dataForm.checkinGuests"></u--input>
+					</view>
+				</u-cell>
+				<u-cell customStyle="height:88rpx">
+					<text slot="icon" class="label">儿童</text>
+					<view slot="title" class="title">
+						<u--input border="none" class="input" inputAlign="right" placeholderStyle="font-size:26rpx"
+							placeholder="请输入儿童人数" v-model="dataForm.childCheckinNums"></u--input>
+					</view>
+				</u-cell>
 				<u-cell :isLink="true" @click="showLaiyuan=true">
 					<text slot="icon" class="label">订单来源</text>
 					<view slot="title" class="title">
@@ -210,6 +224,9 @@
 					num: 0,
 					orderStatus: null,
 					remarks: "",
+					checkinGuests: null,
+					childCheckinNums: null
+
 				},
 				checkInType: [
 					[{
@@ -425,6 +442,8 @@
 					this.$showToast('请输入正确手机号');
 					return
 				}
+
+
 				if (!this.dataForm.guestSourceName) {
 					this.$showToast('请选择来源');
 					return

+ 11 - 4
pages/house/orderInfo.vue

@@ -23,12 +23,19 @@
 					<text style="font-size: 30rpx; color: #777;">{{orderInfo.arriveDate}}入住 {{orderInfo.num}}晚</text>
 					<text style="font-size: 30rpx;font-weight: bold; color: #111;">¥{{orderInfo.orderAmount}}</text>
 				</view>
-				<!-- 入住人数 -->
+				<!-- 入住成人人数 -->
 				<view class="house-person">
-					<text style="font-size: 30rpx; color: #777;">入住人数量</text>
+					<text style="font-size: 30rpx; color: #777;">入住人数量</text>
 					<view class="right">
-						<text
-							style="font-size: 30rpx;font-weight: bold; color: #111; ">{{orderInfo.detailFormList[0].checkInPersonList.length}}人
+						<text style="font-size: 30rpx;font-weight: bold; color: #111; ">{{orderInfo.checkinGuests}}人
+						</text>
+					</view>
+				</view>
+				<!-- 入住儿童人数 -->
+				<view class="house-person">
+					<text style="font-size: 30rpx; color: #777;">入住儿童数量</text>
+					<view class="right">
+						<text style="font-size: 30rpx;font-weight: bold; color: #111; ">{{orderInfo.childCheckinNums}}人
 						</text>
 					</view>
 				</view>

+ 3 - 3
pages/my/roomType.vue

@@ -315,7 +315,7 @@
 				this.typeIndex = type;
 			},
 
-			// 
+			// 
 			piliangxiajia() {
 				let obj = {
 					isPutaway: 0,
@@ -336,7 +336,7 @@
 				})
 			},
 
-			// 
+			// 
 			piliangshangjia() {
 
 				let obj = {
@@ -347,7 +347,7 @@
 					console.log(res);
 					if (res.data.code == 0) {
 
-						this.$showToast('架成功')
+						this.$showToast('架成功')
 						setTimeout(() => {
 							this.showPricing = false
 							this.getHomestayId()