Browse Source

feat: 房态

2912631854@qq.com 3 months ago
parent
commit
c4b3d007bf
1 changed files with 4 additions and 4 deletions
  1. 4 4
      pages/house/index.vue

+ 4 - 4
pages/house/index.vue

@@ -31,18 +31,18 @@
 			</view>
 		</view>
 		<view>
-			<view class="content" v-if="xdata.length!=0">
+			<view class="content">
 				<view class="tj" :style="{'top':mt+'px'}">
 					<view class="item">
-						<text class="label">{{info.bookRooms}}</text>
+						<text class="label">{{info.bookRooms||0}}</text>
 						<text>待入住</text>
 					</view>
 					<view class="item">
-						<text class="label">{{info.checkinRooms}}</text>
+						<text class="label">{{info.checkinRooms||0}}</text>
 						<text>已入住</text>
 					</view>
 					<view class="item">
-						<text class="label">{{info.checkoutRooms}}</text>
+						<text class="label">{{info.checkoutRooms||0}}</text>
 						<text>已退房</text>
 					</view>
 				</view>