Pārlūkot izejas kodu

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

LiChengjin 1 mēnesi atpakaļ
vecāks
revīzija
ff23a923a0
1 mainītis faili ar 12 papildinājumiem un 3 dzēšanām
  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;
 		}
 	}