소스 검색

opt:续住、退房页面增加显示早餐数量

LiChengjin 3 달 전
부모
커밋
ff23a923a0
1개의 변경된 파일12개의 추가작업 그리고 3개의 파일을 삭제
  1. 12 3
      subpkg/extend/extend.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;
 		}
 	}