소스 검색

opt:订单详情页面房间号后增加早餐数量显示

LiChengjin 3 달 전
부모
커밋
9aa3641752
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      subpkg/orderDetail/orderDetail.vue

+ 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)