Explorar el Código

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

LiChengjin hace 3 meses
padre
commit
ff23a923a0
Se han modificado 1 ficheros con 12 adiciones y 3 borrados
  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;
 		}
 	}