Explorar el Código

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

LiChengjin hace 3 meses
padre
commit
9aa3641752
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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)