2 커밋 6cbfa7a77b ... ff23a923a0

작성자 SHA1 메시지 날짜
  LiChengjin ff23a923a0 opt:续住、退房页面增加显示早餐数量 3 달 전
  LiChengjin 9aa3641752 opt:订单详情页面房间号后增加早餐数量显示 3 달 전
2개의 변경된 파일15개의 추가작업 그리고 4개의 파일을 삭제
  1. 12 3
      subpkg/extend/extend.vue
  2. 3 1
      subpkg/orderDetail/orderDetail.vue

+ 12 - 3
subpkg/extend/extend.vue

@@ -47,7 +47,12 @@
 					</view>
 				</view>
 				<view class="day-num">
-					<u-text :text="dayNumText" color="#333333" size="15" bold></u-text>
+					<view>
+						<u-text :text="dayNumText" color="#333333" size="15" bold></u-text>
+					</view>
+					<view>
+						<u-text :text="breakfastNumText" color="#333333" size="15" bold></u-text>
+					</view>
 				</view>
 			</view>
 			<view class="guest-info">
@@ -131,7 +136,10 @@
 		},
 		computed: {
 			...mapState('m_user', ['userInfo']),
-			...mapState('m_business', ['currentHotel'])
+			...mapState('m_business', ['currentHotel']),
+			breakfastNumText() {
+				return this.checkinInfo.breakfastNum ? `含${this.checkinInfo.breakfastNum}早` : '不含早'
+			}
 		},
 		methods: {
 			...mapMutations('m_business', ['updateCheckinInfo']),
@@ -517,8 +525,9 @@
 
 		.day-num {
 			display: flex;
+			flex-direction: column;
 			align-items: center;
-			justify-content: space-between;
+			justify-content: space-around;
 		}
 	}
 

+ 3 - 1
subpkg/orderDetail/orderDetail.vue

@@ -39,7 +39,7 @@
 		</view>
 		<view class="info-item">
 			<u-text text="房间号:"></u-text>
-			<u-text :text="orderInfo.room" align="right"></u-text>
+			<u-text :text="orderInfo.room+'('+orderInfo.breakfastNum+')'" align="right"></u-text>
 		</view>
 		<view class="info-item">
 			<u-text text="开始日期:"></u-text>
@@ -121,6 +121,8 @@
 					.paymentTime).format('YYYY-MM-DD HH:mm:ss')
 				this.orderInfo.status = this.status[this.orderInfo.status]
 				this.orderInfo.paymentStatus = this.paymentStatus[this.orderInfo.paymentStatus]
+				this.orderInfo.breakfastNum = this.orderInfo.breakfastNum === undefined ? 0 : this.orderInfo
+					.breakfastNum
 			},
 			async deleteOrder() {
 				let res = await uni.$http.delete('/hotelOrder/' + this.orderInfo.id)